OSDN Git Service

Fix code-gen crash on Power9 for insert_vector_elt with variable index (PR30189)
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 14 Sep 2016 14:19:09 +0000 (14:19 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Wed, 14 Sep 2016 14:19:09 +0000 (14:19 +0000)
commit7328eb75584fc800cc0762611800837af2e145a3
treebdb6111e9f2baf03506bf87f7b429f21f9d3f91b
parent707666e59d26c30c077961eb36d52d87ff5bc47e
Fix code-gen crash on Power9 for insert_vector_elt with variable index (PR30189)

This patch corresponds to review:
https://reviews.llvm.org/D24021

In the initial implementation of this instruction, I forgot to account for
variable indices. This patch fixes PR30189 and should probably be merged into
3.9.1 (I'll open a bug according to the new instructions).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281479 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.h
test/CodeGen/PowerPC/p9-xxinsertw-xxextractuw.ll