https://llvm.org/bugs/show_bug.cgi?id=31589

            Bug ID: 31589
           Summary: [AVX512] Crash lowering saturating truncate.
           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

Running llc on:

define void @ham() #0 {
  %tmp = icmp ult <32 x i32> undef, <i32 255, i32 255, i32 255, i32 255, i32
255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255,
i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32
255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255,
i32 255, i32 255>
  %tmp2 = select <32 x i1> %tmp, <32 x i32> undef, <32 x i32> <i32 255, i32
255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255,
i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32
255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255,
i32 255, i32 255, i32 255, i32 255, i32 255>
  %tmp3 = trunc <32 x i32> %tmp2 to <32 x i8>
  store <32 x i8> %tmp3, <32 x i8>* undef, align 1
  ret void
}

attributes #0 = {"target-cpu"="skylake-avx512"}

Reaches unreachable in X86TargetLowering::LowerOperation():

Should not custom lower this!
UNREACHABLE executed at ../lib/Target/X86/X86ISelLowering.cpp:22990!

-- 
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

Reply via email to