[llvm] [AMDGPU][MC] Upstream gfx11 true16 disassembler test coverage (PR #223823)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 15 13:55:35 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-amdgpu

Author: Domenic Nutile (saxlungs)

<details>
<summary>Changes</summary>

Upstream new gfx11 disassembler test cases, mostly covering true16 operand
(.l/.h) and op_sel decoding that had no upstream coverage.

---

<sub>Stack created with <a href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub>

---

Patch is 89.15 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/223823.diff


12 Files Affected:

- (modified) llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_err.txt (+18-2) 
- (added) llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_t16.txt (+58) 
- (modified) llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop1_dpp8.txt (+2-1) 
- (modified) llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2.txt (+14) 
- (modified) llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2_dpp16.txt (+46) 
- (modified) llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2_dpp8.txt (+41) 
- (modified) llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop3.txt (+116) 
- (modified) llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop3_dpp16_from_vop2.txt (+169) 
- (modified) llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop3_dpp8_from_vop2.txt (+169) 
- (added) llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop3_features.txt (+66) 
- (modified) llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop3_from_vop1.txt (+1) 
- (added) llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop3_from_vop2-real16.txt (+55) 


``````````diff
diff --git a/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_err.txt b/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_err.txt
index 888a96bcfb8ce..0834fafc2c266 100644
--- a/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_err.txt
+++ b/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_err.txt
@@ -1,11 +1,14 @@
 # NOTE: Assertions have been autogenerated by utils/update_mc_test_checks.py UTC_ARGS: --version 6
 # RUN: llvm-mc -triple=amdgpu11.00 -disassemble -show-encoding < %s | FileCheck -check-prefix=W32 %s
-# RUN: llvm-mc -triple=amdgpu11.00 -mattr=+wavefrontsize64 -disassemble -show-encoding < %s 2>&1 | FileCheck -check-prefix=W64 %s
+# RUN: llvm-mc -triple=amdgpu11.00 -mattr=+wavefrontsize64 -disassemble -show-encoding < %s | FileCheck -check-prefix=W64 %s
+# RUN: llvm-mc -triple=amdgpu11.00 -disassemble -filetype=null < %s 2>&1 | FileCheck -check-prefix=W32-ERR %s
+# RUN: llvm-mc -triple=amdgpu11.00 -mattr=+wavefrontsize64 -disassemble -filetype=null < %s 2>&1 | FileCheck -check-prefix=W64-ERR %s
 
 # This VOPD encoding is valid in wave32 mode but invalid in wave64 mode.
 0xff,0x04,0x02,0xc9,0x03,0x03,0x06,0x05,0x56,0x34,0x12,0xaf
 # W32: v_dual_add_f32 v5, 0xaf123456, v2 :: v_dual_fmaak_f32 v6, v3, v1, 0xaf123456 ; encoding: [0xff,0x04,0x02,0xc9,0x03,0x03,0x06,0x05,0x56,0x34,0x12,0xaf]
-# W64: :[[@LINE-2]]:1: warning: invalid instruction encoding
+# W64: v_dot2acc_f32_f16 v131, v3, v1          ; encoding: [0x03,0x03,0x06,0x05]
+# W64-ERR: :[[@LINE-3]]:1: warning: invalid instruction encoding
 
 # v_swap_b16 with an SGPR source.
 0x01,0xcc,0x0a,0x7f
@@ -41,3 +44,16 @@
 0x10,0x40,0x40,0xcc,0x00,0x11,0x02,0x18 # src2 sgpr0
 # W32: v_wmma_f32_16x16x16_f16 v[16:23], v[0:7], v[8:15], s[0:7]/*Invalid register, operand has 'VReg_256' register class*/ ; encoding: [0x10,0x40,0x40,0xcc,0x00,0x11,0x02,0x18]
 # W64: v_wmma_f32_16x16x16_f16 v[16:19], v[0:7], v[8:15], s[0:3]/*Invalid register, operand has 'VReg_128' register class*/ ; encoding: [0x10,0x40,0x40,0xcc,0x00,0x11,0x02,0x18]
+0xdf,0x00,0x00,0x02
+# W32-ERR: :[[@LINE-1]]:1: warning: invalid instruction encoding
+# W64-ERR: :[[@LINE-2]]:1: warning: invalid instruction encoding
+0x34,0x12,0x7f,0xbc
+# W32: s_waitcnt_vscnt exec_hi, 0x1234         ; encoding: [0x34,0x12,0x7f,0xbc]
+# W64: s_waitcnt_vscnt exec_hi, 0x1234         ; encoding: [0x34,0x12,0x7f,0xbc]
+0x06,0x00,0x46,0xe4,0x01,0x10,0x80,0x00,0x05,0x06,0x07,0x00
+# W32-ERR: :[[@LINE-1]]:1: warning: invalid instruction encoding
+# W64-ERR: :[[@LINE-2]]:1: warning: invalid instruction encoding
+0x00,0x00,0x6d,0xd8,0x01,0x00,0x00,0x00
+# W32-ERR: :[[@LINE-1]]:1: warning: invalid instruction encoding
+# W64-ERR: :[[@LINE-2]]:1: warning: invalid instruction encoding
+
diff --git a/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_t16.txt b/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_t16.txt
new file mode 100644
index 0000000000000..e98f54c56585f
--- /dev/null
+++ b/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_t16.txt
@@ -0,0 +1,58 @@
+# NOTE: Assertions have been autogenerated by utils/update_mc_test_checks.py UTC_ARGS: --unique --version 6
+# RUN: llvm-mc -triple=amdgpu11.00 -disassemble -show-encoding < %s | FileCheck -check-prefixes=GFX11 %s
+# RUN: llvm-mc -triple=amdgpu11.00 -mattr=+wavefrontsize64 -disassemble -show-encoding < %s | FileCheck -check-prefixes=GFX11 %s
+
+0x02,0x05,0x01,0x65
+# GFX11: v_add_f16_e32 v0.h, v2.l, v2.h          ; encoding: [0x02,0x05,0x01,0x65]
+
+0x69,0x02,0x02,0x65
+# GFX11: v_add_f16_e32 v1.h, s105, v1.l          ; encoding: [0x69,0x02,0x02,0x65]
+
+0xf2,0x02,0x02,0x65
+# GFX11: v_add_f16_e32 v1.h, 1.0, v1.l           ; encoding: [0xf2,0x02,0x02,0x65]
+
+0xff,0x02,0x02,0x65,0x34,0x12,0x00,0x00
+# GFX11: v_add_f16_e32 v1.h, 0x1234, v1.l        ; encoding: [0xff,0x02,0x02,0x65,0x34,0x12,0x00,0x00]
+
+0x00,0x50,0x32,0xd5,0xc8,0x05,0x02,0x00
+# GFX11: v_add_f16_e64 v0.h, v200.l, v2.h op_sel:[0,1,1] ; encoding: [0x00,0x50,0x32,0xd5,0xc8,0x05,0x02,0x02]
+
+0x00,0x00,0x32,0xd5,0x02,0xe0,0x01,0x00
+# GFX11: v_add_f16_e64 v0.l, s2, 0.5             ; encoding: [0x00,0x00,0x32,0xd5,0x02,0xe0,0x01,0x02]
+
+0x00,0x00,0x32,0xd5,0xf0,0x04,0x00,0x00
+# GFX11: v_add_f16_e64 v0.l, 0.5, s2             ; encoding: [0x00,0x00,0x32,0xd5,0xf0,0x04,0x00,0x02]
+
+0xc7,0x40,0x32,0xd5,0xff,0x02,0x02,0x00,0x34,0x12,0x00,0x00
+# GFX11: v_add_f16_e64 v199.h, 0x1234, v1.l op_sel:[0,0,1] ; encoding: [0xc7,0x40,0x32,0xd5,0xff,0x02,0x02,0x02,0x34,0x12,0x00,0x00]
+
+0x00,0x40,0x32,0xd5,0x01,0xff,0x01,0x00,0x34,0x12,0x00,0x00
+# GFX11: v_add_f16_e64 v0.h, v1.l, 0x1234 op_sel:[0,0,1] ; encoding: [0x00,0x40,0x32,0xd5,0x01,0xff,0x01,0x02,0x34,0x12,0x00,0x00]
+
+0x01,0x39,0x00,0x7e
+# GFX11: v_mov_b16_e32 v0.l, v1.l                ; encoding: [0x01,0x39,0x00,0x7e]
+
+0x01,0x38,0x00,0x7e
+# GFX11: v_mov_b16_e32 v0.l, s1                  ; encoding: [0x01,0x38,0x00,0x7e]
+
+0x80,0x38,0x00,0x7f
+# GFX11: v_mov_b16_e32 v0.h, 0                   ; encoding: [0x80,0x38,0x00,0x7f]
+
+0xff,0x38,0x00,0x7e,0x34,0x12,0x00,0x00
+# GFX11: v_mov_b16_e32 v0.l, 0x1234              ; encoding: [0xff,0x38,0x00,0x7e,0x34,0x12,0x00,0x00]
+
+0x00,0x00,0x9c,0xd5,0x01,0x01,0x00,0x00
+# GFX11: v_mov_b16_e64 v0.l, v1.l                ; encoding: [0x00,0x00,0x9c,0xd5,0x01,0x01,0x01,0x02]
+
+0xc8,0x08,0x9c,0xd5,0x01,0x01,0x00,0x00
+# GFX11: v_mov_b16_e64 v200.l, v1.h op_sel:[1,0] ; encoding: [0xc8,0x08,0x9c,0xd5,0x01,0x01,0x01,0x02]
+
+0x00,0x00,0x9c,0xd5,0x01,0x00,0x00,0x00
+# GFX11: v_mov_b16_e64 v0.l, s1                  ; encoding: [0x00,0x00,0x9c,0xd5,0x01,0x00,0x01,0x02]
+
+0xc8,0x40,0x9c,0xd5,0x81,0x00,0x00,0x00
+# GFX11: v_mov_b16_e64 v200.h, 1 op_sel:[0,1]    ; encoding: [0xc8,0x40,0x9c,0xd5,0x81,0x00,0x01,0x02]
+
+0x00,0x00,0x9c,0xd5,0xff,0x00,0x00,0x00,0x34,0x12,0x00,0x00
+# GFX11: v_mov_b16_e64 v0.l, 0x1234              ; encoding: [0x00,0x00,0x9c,0xd5,0xff,0x00,0x01,0x02,0x34,0x12,0x00,0x00]
+
diff --git a/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop1_dpp8.txt b/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop1_dpp8.txt
index b45477d4c6e59..7ee605289fd9c 100644
--- a/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop1_dpp8.txt
+++ b/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop1_dpp8.txt
@@ -1,5 +1,6 @@
 # NOTE: Assertions have been autogenerated by utils/update_mc_test_checks.py UTC_ARGS: --version 5
-# RUN: llvm-mc -triple=amdgpu11.00 -disassemble -show-encoding < %s | FileCheck -check-prefix=GFX11 %s
+# RUN: llvm-mc -triple=amdgpu11.00 -mattr=+real-true16 -disassemble -show-encoding < %s | FileCheck -check-prefixes=GFX11,GFX11-REAL16 %s
+# RUN: llvm-mc -triple=amdgpu11.00 -mattr=-real-true16 -disassemble -show-encoding < %s | FileCheck -check-prefixes=GFX11,GFX11-FAKE16 %s
 # RUN: llvm-mc -triple=amdgpu11.00 -mattr=+real-true16,+wavefrontsize64 -disassemble -show-encoding < %s | FileCheck -check-prefixes=GFX11,GFX11-REAL16 %s
 # RUN: llvm-mc -triple=amdgpu11.00 -mattr=-real-true16,+wavefrontsize64 -disassemble -show-encoding < %s | FileCheck -check-prefixes=GFX11,GFX11-FAKE16 %s
 
diff --git a/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2.txt b/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2.txt
index cf00015e31445..2b9680016bed5 100644
--- a/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2.txt
+++ b/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2.txt
@@ -2392,3 +2392,17 @@
 
 0xff,0xfe,0xff,0x3b,0x56,0x34,0x12,0xaf
 # GFX11: v_xor_b32_e32 v255, 0xaf123456, v255    ; encoding: [0xff,0xfe,0xff,0x3b,0x56,0x34,0x12,0xaf]
+
+0x81,0x05,0x0a,0x76
+# GFX11-FAKE16: v_ldexp_f16_e32 v5, v129/*Invalid register, operand has 'VS_32_Lo128' register class*/, v2 ; encoding: [0x81,0x05,0x0a,0x76]
+# GFX11-REAL16: v_ldexp_f16_e32 v5.l, v1.h, v2.l        ; encoding: [0x81,0x05,0x0a,0x76]
+0xff,0x05,0x0a,0x76
+# GFX11-FAKE16: v_ldexp_f16_e32 v5, v255/*Invalid register, operand has 'VS_32_Lo128' register class*/, v2 ; encoding: [0xff,0x05,0x0a,0x76]
+# GFX11-REAL16: v_ldexp_f16_e32 v5.l, v127.h, v2.l      ; encoding: [0xff,0x05,0x0a,0x76]
+0xf0,0xfe,0xfe,0x76
+# GFX11-FAKE16: v_ldexp_f16_e32 v127, 0.5, v127         ; encoding: [0xf0,0xfe,0xfe,0x76]
+# GFX11-REAL16: v_ldexp_f16_e32 v127.l, 0.5, v127.l     ; encoding: [0xf0,0xfe,0xfe,0x76]
+0xfd,0x04,0x0b,0x77
+# GFX11-REAL16: v_ldexp_f16_e32 v5.h, src_scc, v2.h     ; encoding: [0xfd,0x04,0x0b,0x77]
+0xff,0xfe,0xff,0x77,0x0b,0xfe,0x00,0x00
+# GFX11-REAL16: v_ldexp_f16_e32 v127.h, 0xfe0b, v127.h  ; encoding: [0xff,0xfe,0xff,0x77,0x0b,0xfe,0x00,0x00]
diff --git a/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2_dpp16.txt b/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2_dpp16.txt
index a490d97a172c9..3b11841269673 100644
--- a/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2_dpp16.txt
+++ b/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2_dpp16.txt
@@ -1863,3 +1863,49 @@
 
 0xfa,0xfe,0xff,0x3b,0xff,0x6f,0x0d,0x30
 # GFX11: v_xor_b32_dpp v255, v255, v255 row_xmask:15 row_mask:0x3 bank_mask:0x0 bound_ctrl:1 fi:1 ; encoding: [0xfa,0xfe,0xff,0x3b,0xff,0x6f,0x0d,0x30]
+
+0xfa,0xfe,0xfe,0x76,0x7f,0x5f,0x01,0x01
+# GFX11-FAKE16: v_ldexp_f16_dpp v127, v127, v127 row_share:15 row_mask:0x0 bank_mask:0x1 ; encoding: [0xfa,0xfe,0xfe,0x76,0x7f,0x5f,0x01,0x01]
+# GFX11-REAL16: v_ldexp_f16_dpp v127.l, v127.l, v127.l row_share:15 row_mask:0x0 bank_mask:0x1 ; encoding: [0xfa,0xfe,0xfe,0x76,0x7f,0x5f,0x01,0x01]
+0xfa,0x04,0x0b,0x77,0x81,0x60,0x01,0x13
+# GFX11-FAKE16: v_mul_i32_i24_e32 v128, 1, v176         ; encoding: [0x81,0x60,0x01,0x13]
+# GFX11-REAL16: v_ldexp_f16_dpp v5.h, v1.h, v2.h row_xmask:0 row_mask:0x1 bank_mask:0x3 ; encoding: [0xfa,0x04,0x0b,0x77,0x81,0x60,0x01,0x13]
+0xfa,0xfe,0xff,0x77,0xff,0x6f,0x3d,0x30
+# GFX11-FAKE16: v_lshlrev_b32_e32 v30, v255, v183       ; encoding: [0xff,0x6f,0x3d,0x30]
+# GFX11-REAL16: v_ldexp_f16_dpp v127.h, -|v127.h|, v127.h row_xmask:15 row_mask:0x3 bank_mask:0x0 bound_ctrl:1 fi:1 ; encoding: [0xfa,0xfe,0xff,0x77,0xff,0x6f,0x3d,0x30]
+0xfa,0xfe,0xfe,0x72,0x7f,0x5f,0x01,0x01
+# GFX11-FAKE16: v_max_f16_dpp v127, v127, v127 row_share:15 row_mask:0x0 bank_mask:0x1 ; encoding: [0xfa,0xfe,0xfe,0x72,0x7f,0x5f,0x01,0x01]
+# GFX11-REAL16: v_max_f16_dpp v127.l, v127.l, v127.l row_share:15 row_mask:0x0 bank_mask:0x1 ; encoding: [0xfa,0xfe,0xfe,0x72,0x7f,0x5f,0x01,0x01]
+0xfa,0x04,0x0b,0x73,0x81,0x60,0x01,0x13
+# GFX11-FAKE16: v_mul_i32_i24_e32 v128, 1, v176         ; encoding: [0x81,0x60,0x01,0x13]
+# GFX11-REAL16: v_max_f16_dpp v5.h, v1.h, v2.h row_xmask:0 row_mask:0x1 bank_mask:0x3 ; encoding: [0xfa,0x04,0x0b,0x73,0x81,0x60,0x01,0x13]
+0xfa,0xfe,0xff,0x73,0xff,0x6f,0xfd,0x30
+# GFX11-FAKE16: v_lshlrev_b32_e32 v126, v255, v183      ; encoding: [0xff,0x6f,0xfd,0x30]
+# GFX11-REAL16: v_max_f16_dpp v127.h, -|v127.h|, -|v127.h| row_xmask:15 row_mask:0x3 bank_mask:0x0 bound_ctrl:1 fi:1 ; encoding: [0xfa,0xfe,0xff,0x73,0xff,0x6f,0xfd,0x30]
+0xfa,0xfe,0xfe,0x74,0x7f,0x5f,0x01,0x01
+# GFX11-FAKE16: v_min_f16_dpp v127, v127, v127 row_share:15 row_mask:0x0 bank_mask:0x1 ; encoding: [0xfa,0xfe,0xfe,0x74,0x7f,0x5f,0x01,0x01]
+# GFX11-REAL16: v_min_f16_dpp v127.l, v127.l, v127.l row_share:15 row_mask:0x0 bank_mask:0x1 ; encoding: [0xfa,0xfe,0xfe,0x74,0x7f,0x5f,0x01,0x01]
+0xfa,0x04,0x0b,0x75,0x81,0x60,0x01,0x13
+# GFX11-FAKE16: v_mul_i32_i24_e32 v128, 1, v176         ; encoding: [0x81,0x60,0x01,0x13]
+# GFX11-REAL16: v_min_f16_dpp v5.h, v1.h, v2.h row_xmask:0 row_mask:0x1 bank_mask:0x3 ; encoding: [0xfa,0x04,0x0b,0x75,0x81,0x60,0x01,0x13]
+0xfa,0xfe,0xff,0x75,0xff,0x6f,0xfd,0x30
+# GFX11-FAKE16: v_lshlrev_b32_e32 v126, v255, v183      ; encoding: [0xff,0x6f,0xfd,0x30]
+# GFX11-REAL16: v_min_f16_dpp v127.h, -|v127.h|, -|v127.h| row_xmask:15 row_mask:0x3 bank_mask:0x0 bound_ctrl:1 fi:1 ; encoding: [0xfa,0xfe,0xff,0x75,0xff,0x6f,0xfd,0x30]
+0xfa,0xfe,0xfe,0x6a,0x7f,0x5f,0x01,0x01
+# GFX11-FAKE16: v_mul_f16_dpp v127, v127, v127 row_share:15 row_mask:0x0 bank_mask:0x1 ; encoding: [0xfa,0xfe,0xfe,0x6a,0x7f,0x5f,0x01,0x01]
+# GFX11-REAL16: v_mul_f16_dpp v127.l, v127.l, v127.l row_share:15 row_mask:0x0 bank_mask:0x1 ; encoding: [0xfa,0xfe,0xfe,0x6a,0x7f,0x5f,0x01,0x01]
+0xfa,0x04,0x0b,0x6b,0x81,0x60,0x01,0x13
+# GFX11-FAKE16: v_mul_i32_i24_e32 v128, 1, v176         ; encoding: [0x81,0x60,0x01,0x13]
+# GFX11-REAL16: v_mul_f16_dpp v5.h, v1.h, v2.h row_xmask:0 row_mask:0x1 bank_mask:0x3 ; encoding: [0xfa,0x04,0x0b,0x6b,0x81,0x60,0x01,0x13]
+0xfa,0xfe,0xff,0x6b,0xff,0x6f,0xfd,0x30
+# GFX11-FAKE16: v_lshlrev_b32_e32 v126, v255, v183      ; encoding: [0xff,0x6f,0xfd,0x30]
+# GFX11-REAL16: v_mul_f16_dpp v127.h, -|v127.h|, -|v127.h| row_xmask:15 row_mask:0x3 bank_mask:0x0 bound_ctrl:1 fi:1 ; encoding: [0xfa,0xfe,0xff,0x6b,0xff,0x6f,0xfd,0x30]
+0xfa,0xfe,0xfe,0x68,0x7f,0x5f,0x01,0x01
+# GFX11-FAKE16: v_subrev_f16_dpp v127, v127, v127 row_share:15 row_mask:0x0 bank_mask:0x1 ; encoding: [0xfa,0xfe,0xfe,0x68,0x7f,0x5f,0x01,0x01]
+# GFX11-REAL16: v_subrev_f16_dpp v127.l, v127.l, v127.l row_share:15 row_mask:0x0 bank_mask:0x1 ; encoding: [0xfa,0xfe,0xfe,0x68,0x7f,0x5f,0x01,0x01]
+0xfa,0x04,0x0b,0x69,0x81,0x60,0x01,0x13
+# GFX11-FAKE16: v_mul_i32_i24_e32 v128, 1, v176         ; encoding: [0x81,0x60,0x01,0x13]
+# GFX11-REAL16: v_subrev_f16_dpp v5.h, v1.h, v2.h row_xmask:0 row_mask:0x1 bank_mask:0x3 ; encoding: [0xfa,0x04,0x0b,0x69,0x81,0x60,0x01,0x13]
+0xfa,0xfe,0xff,0x69,0xff,0x6f,0xfd,0x30
+# GFX11-FAKE16: v_lshlrev_b32_e32 v126, v255, v183      ; encoding: [0xff,0x6f,0xfd,0x30]
+# GFX11-REAL16: v_subrev_f16_dpp v127.h, -|v127.h|, -|v127.h| row_xmask:15 row_mask:0x3 bank_mask:0x0 bound_ctrl:1 fi:1 ; encoding: [0xfa,0xfe,0xff,0x69,0xff,0x6f,0xfd,0x30]
diff --git a/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2_dpp8.txt b/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2_dpp8.txt
index 34cb0ac46ac8b..219127f50e223 100644
--- a/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2_dpp8.txt
+++ b/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop2_dpp8.txt
@@ -288,3 +288,44 @@
 
 0xea,0xfe,0xff,0x3b,0xff,0x00,0x00,0x00
 # GFX11: v_xor_b32_dpp v255, v255, v255 dpp8:[0,0,0,0,0,0,0,0] fi:1 ; encoding: [0xea,0xfe,0xff,0x3b,0xff,0x00,0x00,0x00]
+
+0xe9,0xfe,0xfe,0x76,0x7f,0x77,0x39,0x05
+# GFX11-FAKE16: v_ldexp_f16_dpp v127, v127, v127 dpp8:[7,6,5,4,3,2,1,0] ; encoding: [0xe9,0xfe,0xfe,0x76,0x7f,0x77,0x39,0x05]
+# GFX11-REAL16: v_ldexp_f16_dpp v127.l, v127.l, v127.l dpp8:[7,6,5,4,3,2,1,0] ; encoding: [0xe9,0xfe,0xfe,0x76,0x7f,0x77,0x39,0x05]
+0xe9,0x04,0x0b,0x77,0x81,0x77,0x39,0x05
+# GFX11-FAKE16: v_dot2acc_f32_f16 v156, v129, v187      ; encoding: [0x81,0x77,0x39,0x05]
+# GFX11-REAL16: v_ldexp_f16_dpp v5.h, v1.h, v2.h dpp8:[7,6,5,4,3,2,1,0] ; encoding: [0xe9,0x04,0x0b,0x77,0x81,0x77,0x39,0x05]
+0xea,0xfe,0xff,0x77,0xff,0x00,0x00,0x00
+# GFX11-REAL16: v_ldexp_f16_dpp v127.h, v127.h, v127.h dpp8:[0,0,0,0,0,0,0,0] fi:1 ; encoding: [0xea,0xfe,0xff,0x77,0xff,0x00,0x00,0x00]
+0xe9,0xfe,0xfe,0x72,0x7f,0x77,0x39,0x05
+# GFX11-FAKE16: v_max_f16_dpp v127, v127, v127 dpp8:[7,6,5,4,3,2,1,0] ; encoding: [0xe9,0xfe,0xfe,0x72,0x7f,0x77,0x39,0x05]
+# GFX11-REAL16: v_max_f16_dpp v127.l, v127.l, v127.l dpp8:[7,6,5,4,3,2,1,0] ; encoding: [0xe9,0xfe,0xfe,0x72,0x7f,0x77,0x39,0x05]
+0xe9,0x04,0x0b,0x73,0x81,0x77,0x39,0x05
+# GFX11-FAKE16: v_dot2acc_f32_f16 v156, v129, v187      ; encoding: [0x81,0x77,0x39,0x05]
+# GFX11-REAL16: v_max_f16_dpp v5.h, v1.h, v2.h dpp8:[7,6,5,4,3,2,1,0] ; encoding: [0xe9,0x04,0x0b,0x73,0x81,0x77,0x39,0x05]
+0xea,0xfe,0xff,0x73,0xff,0x00,0x00,0x00
+# GFX11-REAL16: v_max_f16_dpp v127.h, v127.h, v127.h dpp8:[0,0,0,0,0,0,0,0] fi:1 ; encoding: [0xea,0xfe,0xff,0x73,0xff,0x00,0x00,0x00]
+0xe9,0xfe,0xfe,0x74,0x7f,0x77,0x39,0x05
+# GFX11-FAKE16: v_min_f16_dpp v127, v127, v127 dpp8:[7,6,5,4,3,2,1,0] ; encoding: [0xe9,0xfe,0xfe,0x74,0x7f,0x77,0x39,0x05]
+# GFX11-REAL16: v_min_f16_dpp v127.l, v127.l, v127.l dpp8:[7,6,5,4,3,2,1,0] ; encoding: [0xe9,0xfe,0xfe,0x74,0x7f,0x77,0x39,0x05]
+0xe9,0x04,0x0b,0x75,0x81,0x77,0x39,0x05
+# GFX11-FAKE16: v_dot2acc_f32_f16 v156, v129, v187      ; encoding: [0x81,0x77,0x39,0x05]
+# GFX11-REAL16: v_min_f16_dpp v5.h, v1.h, v2.h dpp8:[7,6,5,4,3,2,1,0] ; encoding: [0xe9,0x04,0x0b,0x75,0x81,0x77,0x39,0x05]
+0xea,0xfe,0xff,0x75,0xff,0x00,0x00,0x00
+# GFX11-REAL16: v_min_f16_dpp v127.h, v127.h, v127.h dpp8:[0,0,0,0,0,0,0,0] fi:1 ; encoding: [0xea,0xfe,0xff,0x75,0xff,0x00,0x00,0x00]
+0xe9,0xfe,0xfe,0x6a,0x7f,0x77,0x39,0x05
+# GFX11-FAKE16: v_mul_f16_dpp v127, v127, v127 dpp8:[7,6,5,4,3,2,1,0] ; encoding: [0xe9,0xfe,0xfe,0x6a,0x7f,0x77,0x39,0x05]
+# GFX11-REAL16: v_mul_f16_dpp v127.l, v127.l, v127.l dpp8:[7,6,5,4,3,2,1,0] ; encoding: [0xe9,0xfe,0xfe,0x6a,0x7f,0x77,0x39,0x05]
+0xe9,0x04,0x0b,0x6b,0x81,0x77,0x39,0x05
+# GFX11-FAKE16: v_dot2acc_f32_f16 v156, v129, v187      ; encoding: [0x81,0x77,0x39,0x05]
+# GFX11-REAL16: v_mul_f16_dpp v5.h, v1.h, v2.h dpp8:[7,6,5,4,3,2,1,0] ; encoding: [0xe9,0x04,0x0b,0x6b,0x81,0x77,0x39,0x05]
+0xea,0xfe,0xff,0x6b,0xff,0x00,0x00,0x00
+# GFX11-REAL16: v_mul_f16_dpp v127.h, v127.h, v127.h dpp8:[0,0,0,0,0,0,0,0] fi:1 ; encoding: [0xea,0xfe,0xff,0x6b,0xff,0x00,0x00,0x00]
+0xe9,0xfe,0xfe,0x68,0x7f,0x77,0x39,0x05
+# GFX11-FAKE16: v_subrev_f16_dpp v127, v127, v127 dpp8:[7,6,5,4,3,2,1,0] ; encoding: [0xe9,0xfe,0xfe,0x68,0x7f,0x77,0x39,0x05]
+# GFX11-REAL16: v_subrev_f16_dpp v127.l, v127.l, v127.l dpp8:[7,6,5,4,3,2,1,0] ; encoding: [0xe9,0xfe,0xfe,0x68,0x7f,0x77,0x39,0x05]
+0xe9,0x04,0x0b,0x69,0x81,0x77,0x39,0x05
+# GFX11-FAKE16: v_dot2acc_f32_f16 v156, v129, v187      ; encoding: [0x81,0x77,0x39,0x05]
+# GFX11-REAL16: v_subrev_f16_dpp v5.h, v1.h, v2.h dpp8:[7,6,5,4,3,2,1,0] ; encoding: [0xe9,0x04,0x0b,0x69,0x81,0x77,0x39,0x05]
+0xea,0xfe,0xff,0x69,0xff,0x00,0x00,0x00
+# GFX11-REAL16: v_subrev_f16_dpp v127.h, v127.h, v127.h dpp8:[0,0,0,0,0,0,0,0] fi:1 ; encoding: [0xea,0xfe,0xff,0x69,0xff,0x00,0x00,0x00]
diff --git a/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop3.txt b/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop3.txt
index c24cefba95693..99a5ad0a48265 100644
--- a/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop3.txt
+++ b/llvm/test/MC/Disassembler/AMDGPU/gfx11_dasm_vop3.txt
@@ -8019,3 +8019,119 @@
 # W64-FAKE16: v_xor_b16 v255, 0xfe0b, vcc_hi          ; encoding: [0xff,0x00,0x64,0xd7,0xff,0xd6,0x00,0x02,0x0b,0xfe,0x00,0x00]
 # W64-REAL16: v_xor_b16 v255.h, 0xfe0b, vcc_hi op_sel:[0,0,1] ; encoding: [0xff,0x40,0x64,0xd7,0xff,0xd6,0x00,0x02,0x0b,0xfe,0x00,0x00]
 
+
+0x05,0x02,0x12,0xd7,0xfd,0xd4,0x00,0x20
+# GFX11: v_cvt_pk_norm_i16_f16 v5, -src_scc, |vcc_lo| ; encoding: [0x05,0x02,0x12,0xd7,0xfd,0xd4,0x00,0x22]
+0xff,0x03,0x12,0xd7,0xff,0xd6,0x00,0x60,0x0b,0xfe,0x00,0x00
+# GFX11: v_cvt_pk_norm_i16_f16 v255, -|0xfe0b|, -|vcc_hi| ; encoding: [0xff,0x03,0x12,0xd7,0xff,0xd6,0x00,0x62,0x0b,0xfe,0x00,0x00]
+0x05,0x02,0x13,0xd7,0xfd,0xd4,0x00,0x20
+# GFX11: v_cvt_pk_norm_u16_f16 v5, -src_scc, |vcc_lo| ; encoding: [0x05,0x02,0x13,0xd7,0xfd,0xd4,0x00,0x22]
+0xff,0x03,0x13,0xd7,0xff,0xd6,0x00,0x60,0x0b,0xfe,0x00,0x00
+# GFX11: v_cvt_pk_norm_u16_f16 v255, -|0xfe0b|, -|vcc_hi| ; encoding: [0xff,0x03,0x13,0xd7,0xff,0xd6,0x00,0x62,0x0b,0xfe,0x00,0x00]
+0x05,0x04,0x54,0xd6,0x7c,0xfc,0xfc,0x83,0x0b,0xfe,0x00,0x00
+# W32-FAKE16: v_div_fixup_f16 v5, null, exec_lo, -|0xfe0b| ; encoding: [0x05,0x04,0x54,0xd6,0x7c,0xfc,0xfc,0x83,0x0b,0xfe,0x00,0x00]
+# W32-REAL16: v_div_fixup_f16 v5.l, null, exec_lo, -|0xfe0b| ; encoding: [0x05,0x04,0x54,0xd6,0x7c,0xfc,0xfc,0x83,0x0b,0xfe,0x00,0x00]
+# W64-FAKE16: v_div_fixup_f16 v5, null, exec_lo, -|0xfe0b| ; encoding: [0x05,0x04,0x54,0xd6,0x7c,0xfc,0xfc,0x83,0x0b,0xfe,0x00,0x00]
+# W64-REAL16: v_div_fixup_f16 v5.l, null, exec_lo, -|0xfe0b| ; encoding: [0x05,0x04,0x54,0xd6,0x7c,0xfc,0xfc,0x83,0x0b,0xfe,0x00,0x00]
+0x05,0x06,0x54,0xd6,0xc1,0xfe,0xf4,0xc3
+# W32-FAKE16: v_div_fixup_f16 v5, -1, -|exec_hi|, -|src_scc| ; encoding: [0x05,0x06,0x54,0xd6,0xc1,0xfe,0xf4,0xc3]
+# W32-REAL16: v_div_fixup_f16 v5.l, -1, -|exec_hi|, -|src_scc| ; encoding: [0x05,0x06,0x54,0xd6,0xc1,0xfe,0xf4,0xc3]
+# W64-FAKE16: v_div_fixup_f16 v5, -1, -|exec_hi|, -|src_scc| ; encoding: [0x05,0x06,0x54,0xd6,0xc1,0xfe,0xf4,0xc3]
+# W64-REAL16: v_div_fixup_f16 v5.l, -1, -|exec_hi|, -|src_scc| ; encoding: [0x05,0x06,0x54,0xd6,0xc1,0xfe,0xf4,0xc3]
+0x05,0x00,0x54,0xd6,0xf0,0xfa,0xc0,0x43
+# W32-FAKE16: v_div_fixup_f16 v5, 0.5, -m0, 0.5       ; encoding: [0x05,0x00,0x54,0xd6,0xf0,0xfa,0xc0,0x43]
+# W32-REAL16: v_div_fixup_f16 v5.l, 0.5, -m0, 0.5     ; encoding: [0x05,0x00,0x54,0xd6,0xf0,0xfa,0xc0,0x43]
+# W64-FAKE16: v_div_fixup_f16 v5, 0.5, -m0, 0.5       ; encoding: [0x05,0x00,0x54,0xd6,0xf0,0xfa,0xc0,0x43]
+# W64-REAL16: v_div_fixup_f16 v5.l, 0.5, -m0, 0.5     ; encoding: [0x05,0x00,0x54,0xd...
[truncated]

``````````

</details>


https://github.com/llvm/llvm-project/pull/223823


More information about the llvm-commits mailing list