mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[Hexagon] Fix post-ra expansion of PS_wselect
llvm-svn: 348655
This commit is contained in:
parent
764c8768bd
commit
9407b60244
@ -1293,7 +1293,6 @@ bool HexagonInstrInfo::expandPostRAPseudo(MachineInstr &MI) const {
|
||||
auto T = BuildMI(MBB, MI, DL, get(Hexagon::V6_vccombine))
|
||||
.add(Op0)
|
||||
.addReg(PReg, S)
|
||||
.add(Op1)
|
||||
.addReg(SrcHi)
|
||||
.addReg(SrcLo);
|
||||
if (IsDestLive)
|
||||
|
13
test/CodeGen/Hexagon/expand-wselect.mir
Normal file
13
test/CodeGen/Hexagon/expand-wselect.mir
Normal file
@ -0,0 +1,13 @@
|
||||
# RUN: llc -march=hexagon -run-pass postrapseudos %s -o - | FileCheck %s
|
||||
|
||||
# Check that this doesn't crash.
|
||||
# CHECK: $w2 = V6_vccombine $p0, $v1, $v0
|
||||
# CHECK: $w2 = V6_vnccombine killed $p0, $v3, $v2, implicit $w2
|
||||
|
||||
name: fred
|
||||
tracksRegLiveness: true
|
||||
body: |
|
||||
bb.0:
|
||||
liveins: $p0, $w0, $w1
|
||||
$w2 = PS_wselect killed $p0, killed $w0, killed $w1
|
||||
---
|
Loading…
Reference in New Issue
Block a user