[PATCH] D17888: [AMDGPU] Assembler: Fix s_setpc_b64

Nikolay Haustov via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 9 03:01:16 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL263005: [AMDGPU] Assembler: Fix s_setpc_b64 (authored by nhaustov).

Changed prior to commit:
  http://reviews.llvm.org/D17888?vs=49826&id=50116#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D17888

Files:
  llvm/trunk/lib/Target/AMDGPU/SIInstructions.td
  llvm/trunk/test/MC/AMDGPU/sop1.s

Index: llvm/trunk/test/MC/AMDGPU/sop1.s
===================================================================
--- llvm/trunk/test/MC/AMDGPU/sop1.s
+++ llvm/trunk/test/MC/AMDGPU/sop1.s
@@ -133,8 +133,8 @@
 s_getpc_b64 s[2:3]
 // CHECK: s_getpc_b64 s[2:3] ; encoding: [0x00,0x1f,0x82,0xbe]
 
-s_setpc_b64 s[2:3], s[4:5]
-// CHECK: s_setpc_b64 s[2:3], s[4:5] ; encoding: [0x04,0x20,0x82,0xbe]
+s_setpc_b64 s[4:5]
+// CHECK: s_setpc_b64 s[4:5] ; encoding: [0x04,0x20,0x80,0xbe]
 
 s_swappc_b64 s[2:3], s[4:5]
 // CHECK: s_swappc_b64 s[2:3], s[4:5] ; encoding: [0x04,0x21,0x82,0xbe]
Index: llvm/trunk/lib/Target/AMDGPU/SIInstructions.td
===================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIInstructions.td
+++ llvm/trunk/lib/Target/AMDGPU/SIInstructions.td
@@ -172,7 +172,7 @@
 defm S_BITSET1_B32 : SOP1_32 <sop1<0x1d, 0x1a>, "s_bitset1_b32", []>;
 defm S_BITSET1_B64 : SOP1_64 <sop1<0x1e, 0x1b>, "s_bitset1_b64", []>;
 defm S_GETPC_B64 : SOP1_64_0 <sop1<0x1f, 0x1c>, "s_getpc_b64", []>;
-defm S_SETPC_B64 : SOP1_64 <sop1<0x20, 0x1d>, "s_setpc_b64", []>;
+defm S_SETPC_B64 : SOP1_1 <sop1<0x20, 0x1d>, "s_setpc_b64", []>;
 defm S_SWAPPC_B64 : SOP1_64 <sop1<0x21, 0x1e>, "s_swappc_b64", []>;
 defm S_RFE_B64 : SOP1_64 <sop1<0x22, 0x1f>, "s_rfe_b64", []>;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17888.50116.patch
Type: text/x-patch
Size: 1298 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160309/79435781/attachment.bin>


More information about the llvm-commits mailing list