diff options
| author | Artem Tamazov <artem.tamazov@amd.com> | 2016-04-18 14:54:26 +0000 |
|---|---|---|
| committer | Artem Tamazov <artem.tamazov@amd.com> | 2016-04-18 14:54:26 +0000 |
| commit | e2762423c22234fa63d4077ae1787e8665c01032 (patch) | |
| tree | 1d42915d1bbd68dc43752a79df1d91607c176350 /llvm/lib/Target | |
| parent | 2eeefe8ed874163a08a8f659f087726ee7a9d7ac (diff) | |
| download | bcm5719-llvm-e2762423c22234fa63d4077ae1787e8665c01032.tar.gz bcm5719-llvm-e2762423c22234fa63d4077ae1787e8665c01032.zip | |
[AMDGPU][llvm-mc] s_setreg* - Fix order of operands
Order should match the sp3 syntax, where destination (simm16 denoting the hwreg) is coming first.
Differential Revision: http://reviews.llvm.org/D19161
llvm-svn: 266617
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/SIInstructions.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIInstructions.td b/llvm/lib/Target/AMDGPU/SIInstructions.td index 7b8a62bc8fb..f33d412ba68 100644 --- a/llvm/lib/Target/AMDGPU/SIInstructions.td +++ b/llvm/lib/Target/AMDGPU/SIInstructions.td @@ -423,13 +423,13 @@ defm S_GETREG_B32 : SOPK_32 <sopk<0x12, 0x11>, "s_getreg_b32", []>; defm S_SETREG_B32 : SOPK_m < sopk<0x13, 0x12>, "s_setreg_b32", (outs), - (ins SReg_32:$sdst, u16imm:$simm16), " $sdst, $simm16" + (ins SReg_32:$sdst, u16imm:$simm16), " $simm16, $sdst" >; // FIXME: Not on SI? //defm S_GETREG_REGRD_B32 : SOPK_32 <sopk<0x14, 0x13>, "s_getreg_regrd_b32", []>; defm S_SETREG_IMM32_B32 : SOPK_IMM32 < sopk<0x15, 0x14>, "s_setreg_imm32_b32", (outs), - (ins i32imm:$imm, u16imm:$simm16), " $imm, $simm16" + (ins i32imm:$imm, u16imm:$simm16), " $simm16, $imm" >; //===----------------------------------------------------------------------===// |

