mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
implement vector addition with safety checking
this would work if @llvm.sadd.with.overflow supported vectors, which it does in trunk. but it does not support them in llvm 7 or even in llvm 8 release branch. so the next commit after this will have to do a different strategy, but when llvm 9 comes out it may be worth coming back to this one.
This commit is contained in:
parent
a8a63feba7
commit
0a7bdc0077
3 changed files with 95 additions and 68 deletions
154
src/codegen.cpp
154
src/codegen.cpp
Loading…
Add table
Add a link
Reference in a new issue