mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 13:40:30 +00:00
[mips][dsp] Fix use without def on DSPCtrl registers read by rddsp intrinsic.
Reviewers: sdardis Subscribers: dsanders, sdardis, llvm-commits Differential Revision: http://reviews.llvm.org/D21063 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272647 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9cea6726d3
commit
bd52e9f225
@ -47,7 +47,8 @@ void MipsSEDAGToDAGISel::addDSPCtrlRegOperands(bool IsDef, MachineInstr &MI,
|
||||
MachineFunction &MF) {
|
||||
MachineInstrBuilder MIB(MF, &MI);
|
||||
unsigned Mask = MI.getOperand(1).getImm();
|
||||
unsigned Flag = IsDef ? RegState::ImplicitDefine : RegState::Implicit;
|
||||
unsigned Flag =
|
||||
IsDef ? RegState::ImplicitDefine : RegState::Implicit | RegState::Undef;
|
||||
|
||||
if (Mask & 1)
|
||||
MIB.addReg(Mips::DSPPos, Flag);
|
||||
|
@ -1,4 +1,5 @@
|
||||
; RUN: llc -march=mipsel -mcpu=mips32 -mattr=+dsp < %s | FileCheck %s
|
||||
; RUN: llc -march=mipsel -mcpu=mips32 -mattr=+dsp -verify-machineinstrs < %s | \
|
||||
; RUN: FileCheck %s
|
||||
|
||||
define i32 @test__builtin_mips_extr_w1(i32 %i0, i32, i64 %a0) nounwind {
|
||||
entry:
|
||||
|
Loading…
Reference in New Issue
Block a user