[llvm-bugs] [Bug 42819] New: ICE: "Cannot select: X86ISD::SUBV_BROADCAST" with -O3 -march=skx

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 29 17:53:50 PDT 2019


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

            Bug ID: 42819
           Summary: ICE: "Cannot select: X86ISD::SUBV_BROADCAST" with -O3
                    -march=skx
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: Vsevolod.Livinskij at frtk.ru
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Clang fails with ICE.

Reproducer:
extern int a[], b[];
void c() {
  for (int d = 32; d <= 57; d++)
    b[d] = a[d] + a[d - 3];
}

Error:
>$ clang -c -O3 -march=skx small.c
fatal error: error in backend: Cannot select: t116: v2i64 =
X86ISD::SUBV_BROADCAST t113
  t113: v4i64 = bitcast t9
    t9: v8i32,ch = load<(load 32 from `<8 x i32>* bitcast (i32* getelementptr
inbounds ([0 x i32], [0 x i32]* @a, i64 0, i64 45) to <8 x i32>*)`, align 4,
!tbaa !2)> t0, t156, undef:i64
      t156: i64 = X86ISD::Wrapper TargetGlobalAddress:i64<[0 x i32]* @a> + 180
        t155: i64 = TargetGlobalAddress<[0 x i32]* @a> + 180
      t5: i64 = undef
In function: c
clang-10: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 10.0.0 (trunk 367162)
Target: x86_64-unknown-linux-gnu
Thread model: posix

LLVM version:
clang version 10.0.0 (trunk 367162)

-- 
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/20190730/abf68e1b/attachment.html>


More information about the llvm-bugs mailing list