http://llvm.org/bugs/show_bug.cgi?id=22571
Bug ID: 22571
Summary: Crash in instruction selection when using
_addcarry_u64 intrinsic
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
The following program causes clang (svn228909) to crash during instruction
selection (x86_64 target, -O1 and higher) for add3 but not add2:
#include <immintrin.h>
typedef unsigned long long u64;
void add2(u64 x[4], const u64 y[4]) {
unsigned char cy = 0;
for(int i = 0; i < 4; ++i) {
cy = _addcarry_u64(cy, x[i], y[i], &x[i]);
}
}
void add3(u64 z[4], const u64 x[4], const u64 y[4]) {
unsigned char cy = 0;
for(int i = 0; i < 4; ++i) {
cy = _addcarry_u64(cy, x[i], y[i], &z[i]);
}
}
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs