[LLVMbugs] [Bug 22571] New: Crash in instruction selection when using _addcarry_u64 intrinsic
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Feb 12 13:35:36 PST 2015
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: unassignedbugs at nondot.org
Reporter: sneves at dei.uc.pt
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150212/e770e723/attachment.html>
More information about the llvm-bugs
mailing list