[llvm-bugs] [Bug 31589] New: [AVX512] Crash lowering saturating truncate.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jan 9 12:55:32 PST 2017


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


More information about the llvm-bugs mailing list