[llvm] [AMDGPU][True16][MC] update a few mc test for true16 (PR #135816)

Brox Chen via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 15 12:35:13 PDT 2025


================
@@ -0,0 +1,59 @@
+// NOTE: Assertions have been autogenerated by utils/update_mc_test_checks.py UTC_ARGS: --unique --version 5
+// RUN: llvm-mc -triple=amdgcn -mcpu=gfx1100 -show-encoding -mattr=+real-true16 %s | FileCheck --check-prefix=GFX11 %s
+
+v_add_f16 v0.h, v2.l, v2.h
+// GFX11: v_add_f16_e32 v0.h, v2.l, v2.h          ; encoding: [0x02,0x05,0x01,0x65]
+
+v_add_f16 v1.h, s105, v1.l
+// GFX11: v_add_f16_e32 v1.h, s105, v1.l          ; encoding: [0x69,0x02,0x02,0x65]
+
+v_add_f16 v1.h, 1.0, v1.l
+// GFX11: v_add_f16_e32 v1.h, 1.0, v1.l           ; encoding: [0xf2,0x02,0x02,0x65]
+
+v_add_f16 v1.h, 0x1234, v1.l
+// GFX11: v_add_f16_e32 v1.h, 0x1234, v1.l        ; encoding: [0xff,0x02,0x02,0x65,0x34,0x12,0x00,0x00]
+
+v_add_f16 v0.h, v200.l, v2.h
+// GFX11: v_add_f16_e64 v0.h, v200.l, v2.h op_sel:[0,1,1] ; encoding: [0x00,0x50,0x32,0xd5,0xc8,0x05,0x02,0x00]
+
+v_add_f16_e64 v0.l, s2, 0.5
+// GFX11: v_add_f16_e64 v0.l, s2, 0.5             ; encoding: [0x00,0x00,0x32,0xd5,0x02,0xe0,0x01,0x00]
+
+v_add_f16_e64 v0.l, 0.5, s2
+// GFX11: v_add_f16_e64 v0.l, 0.5, s2             ; encoding: [0x00,0x00,0x32,0xd5,0xf0,0x04,0x00,0x00]
+
+v_add_f16 v199.h, 0x1234, v1.l
+// GFX11: v_add_f16_e64 v199.h, 0x1234, v1.l op_sel:[0,0,1] ; encoding: [0xc7,0x40,0x32,0xd5,0xff,0x02,0x02,0x00,0x34,0x12,0x00,0x00]
+
+v_add_f16 v0.h, v1.l, 0x1234
+// GFX11: v_add_f16_e64 v0.h, v1.l, 0x1234 op_sel:[0,0,1] ; encoding: [0x00,0x40,0x32,0xd5,0x01,0xff,0x01,0x00,0x34,0x12,0x00,0x00]
+
+v_mov_b16_e32 v0.l, v1.l
----------------
broxigarchen wrote:

done

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


More information about the llvm-commits mailing list