[llvm] eda6e49 - [AMDGPU][MC][GFX11][NFC] Correct tests for 16-bit VOP2 opcodes which use v128 or higher VGPRs
Dmitry Preobrazhensky via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 11 05:56:12 PDT 2022
Author: Dmitry Preobrazhensky
Date: 2022-08-11T15:55:58+03:00
New Revision: eda6e49aa88d92c45fe13c7bc5279e0d024b60fe
URL: https://github.com/llvm/llvm-project/commit/eda6e49aa88d92c45fe13c7bc5279e0d024b60fe
DIFF: https://github.com/llvm/llvm-project/commit/eda6e49aa88d92c45fe13c7bc5279e0d024b60fe.diff
LOG: [AMDGPU][MC][GFX11][NFC] Correct tests for 16-bit VOP2 opcodes which use v128 or higher VGPRs
Differential Revision: https://reviews.llvm.org/D131564
Added:
Modified:
llvm/test/MC/AMDGPU/gfx11_asm_vop2.s
llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2.txt
Removed:
################################################################################
diff --git a/llvm/test/MC/AMDGPU/gfx11_asm_vop2.s b/llvm/test/MC/AMDGPU/gfx11_asm_vop2.s
index 9c1df0a4a2b61..babaf119c8d11 100644
--- a/llvm/test/MC/AMDGPU/gfx11_asm_vop2.s
+++ b/llvm/test/MC/AMDGPU/gfx11_asm_vop2.s
@@ -37,11 +37,11 @@ v_fmaak_f32 v5, v1, v2, 0xa1b1c1d1
v_fmaak_f16 v5, v1, v2, 0x1121
// GFX11: encoding: [0x01,0x05,0x0a,0x70,0x21,0x11,0x00,0x00]
-v_fmaak_f16 v255, v1, v2, 0x1121
-// GFX11: encoding: [0x01,0x05,0xfe,0x71,0x21,0x11,0x00,0x00]
+v_fmaak_f16 v127, v1, v2, 0x1121
+// GFX11: encoding: [0x01,0x05,0xfe,0x70,0x21,0x11,0x00,0x00]
-v_fmaak_f16 v5, v255, v2, 0x1121
-// GFX11: encoding: [0xff,0x05,0x0a,0x70,0x21,0x11,0x00,0x00]
+v_fmaak_f16 v5, v127, v2, 0x1121
+// GFX11: encoding: [0x7f,0x05,0x0a,0x70,0x21,0x11,0x00,0x00]
v_fmaak_f16 v5, 0, v2, 0x1121
// GFX11: encoding: [0x80,0x04,0x0a,0x70,0x21,0x11,0x00,0x00]
@@ -55,8 +55,8 @@ v_fmaak_f16 v5, 0.5, v2, 0x1121
v_fmaak_f16 v5, -4.0, v2, 0x1121
// GFX11: encoding: [0xf7,0x04,0x0a,0x70,0x21,0x11,0x00,0x00]
-v_fmaak_f16 v5, v1, v255, 0x1121
-// GFX11: encoding: [0x01,0xff,0x0b,0x70,0x21,0x11,0x00,0x00]
+v_fmaak_f16 v5, v1, v127, 0x1121
+// GFX11: encoding: [0x01,0xff,0x0a,0x70,0x21,0x11,0x00,0x00]
v_fmaak_f16 v5, v1, v2, 0xa1b1
// GFX11: encoding: [0x01,0x05,0x0a,0x70,0xb1,0xa1,0x00,0x00]
@@ -103,11 +103,11 @@ v_fmamk_f32 v5, v1, 0x11213141, v255
v_fmamk_f16 v5, v1, 0x1121, v3
// GFX11: encoding: [0x01,0x07,0x0a,0x6e,0x21,0x11,0x00,0x00]
-v_fmamk_f16 v255, v1, 0x1121, v3
-// GFX11: encoding: [0x01,0x07,0xfe,0x6f,0x21,0x11,0x00,0x00]
+v_fmamk_f16 v127, v1, 0x1121, v3
+// GFX11: encoding: [0x01,0x07,0xfe,0x6e,0x21,0x11,0x00,0x00]
-v_fmamk_f16 v5, v255, 0x1121, v3
-// GFX11: encoding: [0xff,0x07,0x0a,0x6e,0x21,0x11,0x00,0x00]
+v_fmamk_f16 v5, v127, 0x1121, v3
+// GFX11: encoding: [0x7f,0x07,0x0a,0x6e,0x21,0x11,0x00,0x00]
v_fmamk_f16 v5, 0, 0x1121, v3
// GFX11: encoding: [0x80,0x06,0x0a,0x6e,0x21,0x11,0x00,0x00]
@@ -124,8 +124,8 @@ v_fmamk_f16 v5, -4.0, 0x1121, v3
v_fmamk_f16 v5, v1, 0xa1b1, v3
// GFX11: encoding: [0x01,0x07,0x0a,0x6e,0xb1,0xa1,0x00,0x00]
-v_fmamk_f16 v5, v1, 0x1121, v255
-// GFX11: encoding: [0x01,0xff,0x0b,0x6e,0x21,0x11,0x00,0x00]
+v_fmamk_f16 v5, v1, 0x1121, v127
+// GFX11: encoding: [0x01,0xff,0x0a,0x6e,0x21,0x11,0x00,0x00]
v_pk_fmac_f16 v5, v1, v2
// GFX11: encoding: [0x01,0x05,0x0a,0x78]
diff --git a/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2.txt b/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2.txt
index aa22c10a47254..41c51a939e038 100644
--- a/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2.txt
+++ b/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2.txt
@@ -10,8 +10,8 @@
# GFX11: v_fmaak_f32 v255, v1, v2, 0x11213141 ; encoding: [0x01,0x05,0xfe,0x5b,0x41,0x31,0x21,0x11]
0x01,0x05,0xfe,0x5b,0x41,0x31,0x21,0x11
-# GFX11: v_fmaak_f16 v255, v1, v2, 0x1121 ; encoding: [0x01,0x05,0xfe,0x71,0x21,0x11,0x00,0x00]
-0x01,0x05,0xfe,0x71,0x21,0x11,0x00,0x00
+# GFX11: v_fmaak_f16 v127, v1, v2, 0x1121 ; encoding: [0x01,0x05,0xfe,0x70,0x21,0x11,0x00,0x00]
+0x01,0x05,0xfe,0x70,0x21,0x11,0x00,0x00
# GFX11: v_fmaak_f32 v5, 0.5, v2, 0x11213141 ; encoding: [0xf0,0x04,0x0a,0x5a,0x41,0x31,0x21,0x11]
0xf0,0x04,0x0a,0x5a,0x41,0x31,0x21,0x11
@@ -52,14 +52,14 @@
# GFX11: v_fmaak_f32 v5, v1, v255, 0x11213141 ; encoding: [0x01,0xff,0x0b,0x5a,0x41,0x31,0x21,0x11]
0x01,0xff,0x0b,0x5a,0x41,0x31,0x21,0x11
-# GFX11: v_fmaak_f16 v5, v1, v255, 0x1121 ; encoding: [0x01,0xff,0x0b,0x70,0x21,0x11,0x00,0x00]
-0x01,0xff,0x0b,0x70,0x21,0x11,0x00,0x00
+# GFX11: v_fmaak_f16 v5, v1, v127, 0x1121 ; encoding: [0x01,0xff,0x0a,0x70,0x21,0x11,0x00,0x00]
+0x01,0xff,0x0a,0x70,0x21,0x11,0x00,0x00
# GFX11: v_fmaak_f32 v5, v255, v2, 0x11213141 ; encoding: [0xff,0x05,0x0a,0x5a,0x41,0x31,0x21,0x11]
0xff,0x05,0x0a,0x5a,0x41,0x31,0x21,0x11
-# GFX11: v_fmaak_f16 v5, v255, v2, 0x1121 ; encoding: [0xff,0x05,0x0a,0x70,0x21,0x11,0x00,0x00]
-0xff,0x05,0x0a,0x70,0x21,0x11,0x00,0x00
+# GFX11: v_fmaak_f16 v5, v127, v2, 0x1121 ; encoding: [0x7f,0x05,0x0a,0x70,0x21,0x11,0x00,0x00]
+0x7f,0x05,0x0a,0x70,0x21,0x11,0x00,0x00
# GFX11: v_fmac_f16_e32 v5, 0x1234, v2 ; encoding: [0xff,0x04,0x0a,0x6c,0x34,0x12,0x00,0x00]
0xff,0x04,0x0a,0x6c,0x34,0x12,0x00,0x00
@@ -76,8 +76,8 @@
# GFX11: v_fmamk_f32 v255, v1, 0x11213141, v3 ; encoding: [0x01,0x07,0xfe,0x59,0x41,0x31,0x21,0x11]
0x01,0x07,0xfe,0x59,0x41,0x31,0x21,0x11
-# GFX11: v_fmamk_f16 v255, v1, 0x1121, v3 ; encoding: [0x01,0x07,0xfe,0x6f,0x21,0x11,0x00,0x00]
-0x01,0x07,0xfe,0x6f,0x21,0x11,0x00,0x00
+# GFX11: v_fmamk_f16 v127, v1, 0x1121, v3 ; encoding: [0x01,0x07,0xfe,0x6e,0x21,0x11,0x00,0x00]
+0x01,0x07,0xfe,0x6e,0x21,0x11,0x00,0x00
# GFX11: v_fmamk_f32 v5, 0, 0x11213141, v3 ; encoding: [0x80,0x06,0x0a,0x58,0x41,0x31,0x21,0x11]
0x80,0x06,0x0a,0x58,0x41,0x31,0x21,0x11
@@ -109,8 +109,8 @@
# GFX11: v_fmamk_f32 v5, v1, 0x11213141, v3 ; encoding: [0x01,0x07,0x0a,0x58,0x41,0x31,0x21,0x11]
0x01,0x07,0x0a,0x58,0x41,0x31,0x21,0x11
-# GFX11: v_fmamk_f16 v5, v1, 0x1121, v255 ; encoding: [0x01,0xff,0x0b,0x6e,0x21,0x11,0x00,0x00]
-0x01,0xff,0x0b,0x6e,0x21,0x11,0x00,0x00
+# GFX11: v_fmamk_f16 v5, v1, 0x1121, v127 ; encoding: [0x01,0xff,0x0a,0x6e,0x21,0x11,0x00,0x00]
+0x01,0xff,0x0a,0x6e,0x21,0x11,0x00,0x00
# GFX11: v_fmamk_f16 v5, v1, 0x1121, v3 ; encoding: [0x01,0x07,0x0a,0x6e,0x21,0x11,0x00,0x00]
0x01,0x07,0x0a,0x6e,0x21,0x11,0x00,0x00
@@ -124,8 +124,8 @@
# GFX11: v_fmamk_f32 v5, v255, 0x11213141, v3 ; encoding: [0xff,0x07,0x0a,0x58,0x41,0x31,0x21,0x11]
0xff,0x07,0x0a,0x58,0x41,0x31,0x21,0x11
-# GFX11: v_fmamk_f16 v5, v255, 0x1121, v3 ; encoding: [0xff,0x07,0x0a,0x6e,0x21,0x11,0x00,0x00]
-0xff,0x07,0x0a,0x6e,0x21,0x11,0x00,0x00
+# GFX11: v_fmamk_f16 v5, v127, 0x1121, v3 ; encoding: [0x7f,0x07,0x0a,0x6e,0x21,0x11,0x00,0x00]
+0x7f,0x07,0x0a,0x6e,0x21,0x11,0x00,0x00
# GFX11: v_pk_fmac_f16 v255, v1, v2 ; encoding: [0x01,0x05,0xfe,0x79]
0x01,0x05,0xfe,0x79
More information about the llvm-commits
mailing list