https://llvm.org/bugs/show_bug.cgi?id=30249
Bug ID: 30249
Summary: AVX512 fails to select CMP of i1.
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
define i64 @foo() {
%v = select i1 undef, i64 1, i64 2
ret i64 %v
}
bin/llc ~/llvm/temp/i1512.ll -mattr=+avx512f -mattr=+avx2
SelectionDAG has 11 nodes:
t0: ch = EntryToken
t18: i32 = X86ISD::CMP undef:i1, Constant:i1<-1>
t20: i64 = X86ISD::ADC Constant:i64<1>, Constant:i64<0>, t18
t7: ch,glue = CopyToReg t0, Register:i64 %RAX, t20
t8: ch = X86ISD::RET_FLAG t7, TargetConstant:i32<0>, Register:i64 %RAX, t7:1
[...]
LLVM ERROR: Cannot select: 0x2ec28d0: i32 = X86ISD::CMP undef:i1,
Constant:i1<-1>
0x2ec2240: i1 = undef
0x2ec2710: i1 = Constant<-1>
In function: foo
--
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