llvm-for-llvmta/test/MC/Disassembler/AMDGPU/vcmpx-gfx10.txt

37 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-04-25 10:02:23 +02:00
# RUN: llvm-mc -arch=amdgcn -mcpu=gfx1010 -disassemble -show-encoding < %s | FileCheck -check-prefixes=GFX10 %s
#===------------------------------------------------------------------------===#
# Regular v_cmpx encoding
#===------------------------------------------------------------------------===#
# GFX10: v_cmpx_eq_f16_e64 s1, v2
0x00,0x00,0xda,0xd4,0x01,0x04,0x02,0x00
# GFX10: v_cmpx_class_f32_e64 v0, 1
0x00,0x00,0x98,0xd4,0x00,0x03,0x01,0x00
# GFX10: v_cmpx_eq_f16_sdwa -v1, v2 src0_sel:DWORD src1_sel:DWORD
0xf9,0x04,0xb4,0x7d,0x01,0x00,0x16,0x06
# GFX10: v_cmpx_class_f32_sdwa v0, 1 src0_sel:WORD_1 src1_sel:DWORD
0xf9,0x02,0x31,0x7d,0x00,0x00,0x05,0x86
#===------------------------------------------------------------------------===#
# v_cmpx with arbitrary DST value should also be decodable
#===------------------------------------------------------------------------===#
# GFX10: v_cmpx_eq_f16_e64 s1, v2
0x7e,0x00,0xda,0xd4,0x01,0x04,0x02,0x00
# GFX10: v_cmpx_class_f32_e64 v0, 1
0x7e,0x00,0x98,0xd4,0x00,0x03,0x01,0x00
# GFX10: v_cmpx_eq_f16_sdwa -v1, v2 src0_sel:DWORD src1_sel:DWORD
0xf9,0x04,0xb4,0x7d,0x01,0x7e,0x16,0x06
# GFX10: v_cmpx_class_f32_sdwa v0, 1 src0_sel:WORD_1 src1_sel:DWORD
0xf9,0x02,0x31,0x7d,0x00,0x7e,0x05,0x86
# GFX10: v_cmpx_class_f32_sdwa v0, 1 src0_sel:WORD_1 src1_sel:DWORD
0xf9,0x02,0x31,0x7d,0x00,0x7d,0x05,0x86