[llvm-bugs] [Bug 35789] New: [AArch64] SelectPostLoadLane called with non-constant index

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jan 1 15:07:15 PST 2018


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

            Bug ID: 35789
           Summary: [AArch64] SelectPostLoadLane called with non-constant
                    index
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: AArch64
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: llvm-bugs at justinbogner.com, llvm-bugs at lists.llvm.org,
                    mcrosier at codeaurora.org

Partially reduced from
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4862

target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
target triple = "aarch64-unknown-linux-gnu"

define void @foo(<4 x i32>* %X0, <4 x i32>* %X1, <4 x i32>* %X2) {
bb:
  %L7 = load i1, i1* undef
  %A2 = alloca i32
  %L5 = load i32, i32* %A2
  %G1 = getelementptr i32, i32* %A2, i32 %L5
  %L6 = load i32, i32* %G1
  %G4 = getelementptr i32, i32* %G1, i1 %L7
  %L2 = load i32, i32* %G4
  %e = select <4 x i1> <i1 false, i1 false, i1 true, i1 false>, <4 x i32>
zeroinitializer, <4 x i32> <i32 11, i32 15, i32 32, i32 99>
  %E9 = extractelement <4 x i32> %e, i32 %L2
  %I3 = insertelement <4 x i32> %e, i32 %L5, i32 %L2
  %bg = select <4 x i1> zeroinitializer, <4 x i32> <i32 33, i32 10, i32 67, i32
66>, <4 x i32> <i32 42, i32 91, i32 47, i32 40>
  %E1 = extractelement <4 x i32> %bg, i32 0
  %I15 = insertelement <4 x i32> %bg, i32 %L6, i32 %E1
  %I8 = insertelement <4 x i32> %I3, i32 %E9, i32 %L5
  store <4 x i32> %I15, <4 x i32>* %X0
  store <4 x i32> %e, <4 x i32>* %X1
  store <4 x i32> %I8, <4 x i32>* %X2
  ret void
}

Assertion failed: isa<X>(Val) && "cast<Ty>() argument of incompatible type!",
file D:\LLVM\llvm\include\llvm/Support/Casting.h, line 241

-- 
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/20180101/7094d6db/attachment.html>


More information about the llvm-bugs mailing list