[llvm-bugs] [Bug 30249] New: AVX512 fails to select CMP of i1.

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 1 19:12:18 PDT 2016


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: unassignedbugs at nondot.org
          Reporter: mkuper at google.com
                CC: llvm-bugs at lists.llvm.org
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160902/61f2f87f/attachment.html>


More information about the llvm-bugs mailing list