[PATCH] D16596: AVX512: store mask patterns.
Igor Breger via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 26 12:12:50 PST 2016
igorb created this revision.
igorb added a reviewer: delena.
igorb added a subscriber: llvm-commits.
igorb set the repository for this revision to rL LLVM.
AVX512: Add store mask patterns.
original bug:
bash-4.1$ cat t.c
void f2(int);
void f1(int c)
{
static int v = 0;
if (v == 0)
v = 1;
else
v = 0;
f2(v);
}
bash-4.1$ clang -O2 -S -march=skylake t.c
fatal error: error in backend: Cannot select: t9: ch = store<ST1[@f1.v]> t18:1,
t8, t23, undef:i64
t8: i1 = xor t21, Constant:i1<-1>
t21: i1 = truncate t18
t18: i32,ch = load<LD1[@f1.v], zext from i1> t0, t23, undef:i64
t23: i64 = X86ISD::Wrapper TargetGlobalAddress:i64<i1* @f1.v> 0
t22: i64 = TargetGlobalAddress<i1* @f1.v> 0
t5: i64 = undef
t7: i1 = Constant<-1>
t23: i64 = X86ISD::Wrapper TargetGlobalAddress:i64<i1* @f1.v> 0
t22: i64 = TargetGlobalAddress<i1* @f1.v> 0
t5: i64 = undef
In function: f1
Repository:
rL LLVM
http://reviews.llvm.org/D16596
Files:
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86InstrAVX512.td
test/CodeGen/X86/avx512-mask-op.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16596.46026.patch
Type: text/x-patch
Size: 14243 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160126/2c0c7204/attachment.bin>
More information about the llvm-commits
mailing list