[llvm-bugs] [Bug 30189] New: Unable to lower ISD::INSERT_VECTOR on Power9

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 30 01:51:48 PDT 2016


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

            Bug ID: 30189
           Summary: Unable to lower ISD::INSERT_VECTOR on Power9
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: nemanja.i.ibm at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

When I implemented the XXINSERTW instruction, I forgot to account for the
possibility that the index for the insertion may be variable. Currently, we
crash on the following input:

$ cat t.c 
vector float test(vector float v, float f, int el) {
  v[el] = f;
  return v;
}

$ clang -O2 -mcpu=pwr9 t.c -faltivec -S
fatal error: error in backend: Cannot select: t11: v4f32 = insert_vector_elt
t2, t4, t8
  t2: v4f32,ch = CopyFromReg t0, Register:v4f32 %vreg0
    t1: v4f32 = Register %vreg0
  t4: f32,ch = CopyFromReg t0, Register:f32 %vreg1
    t3: f32 = Register %vreg1
  t8: i64 = AssertSext t6, ValueType:ch:i32
    t6: i64,ch = CopyFromReg t0, Register:i64 %vreg2
      t5: i64 = Register %vreg2
In function: test
clang-3.9: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 4.0.0 (trunk 278682) (llvm/trunk 278681)
Target: powerpc64le-unknown-linux-gnu

A patch that fixes this will follow in a comment.

-- 
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/20160830/1dcf11a6/attachment.html>


More information about the llvm-bugs mailing list