https://bugs.llvm.org/show_bug.cgi?id=38751
Arnaud de Grandmaison <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Fixed By Commit(s)| |344439
--- Comment #4 from Arnaud de Grandmaison <[email protected]> ---
Closing this bug as commit r344439 fixed this issue :
$ cat pr38751.c
#include <stdint.h>
void g(int a, int b, int *c, int *o, int *v) {
*o = __builtin_add_overflow((int16_t)a, (int16_t)b, (int16_t *)c);
}
$ bin/clang -target arm64 -c -O3 -o - -S pr38751.c
...
g:
sxth w8, w0
add w8, w8, w1, sxth
cmp w8, w8, sxth
cset w9, ne
strh w8, [x2]
str w9, [x3]
ret
...
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs