1# RUN: llvm-mc -arch=amdgcn -mcpu=gfx1010 -disassemble -show-encoding < %s | FileCheck -check-prefixes=GFX10 %s 2 3#===------------------------------------------------------------------------===# 4# Regular v_cmpx encoding 5#===------------------------------------------------------------------------===# 6 7# GFX10: v_cmpx_eq_f16_e64 s1, v2 80x00,0x00,0xda,0xd4,0x01,0x04,0x02,0x00 9 10# GFX10: v_cmpx_class_f32_e64 v0, 1 110x00,0x00,0x98,0xd4,0x00,0x03,0x01,0x00 12 13# GFX10: v_cmpx_eq_f16_sdwa -v1, v2 src0_sel:DWORD src1_sel:DWORD 140xf9,0x04,0xb4,0x7d,0x01,0x00,0x16,0x06 15 16# GFX10: v_cmpx_class_f32_sdwa v0, 1 src0_sel:WORD_1 src1_sel:DWORD 170xf9,0x02,0x31,0x7d,0x00,0x00,0x05,0x86 18 19#===------------------------------------------------------------------------===# 20# v_cmpx with arbitrary DST value should also be decodable 21#===------------------------------------------------------------------------===# 22 23# GFX10: v_cmpx_eq_f16_e64 s1, v2 240x7e,0x00,0xda,0xd4,0x01,0x04,0x02,0x00 25 26# GFX10: v_cmpx_class_f32_e64 v0, 1 270x7e,0x00,0x98,0xd4,0x00,0x03,0x01,0x00 28 29# GFX10: v_cmpx_eq_f16_sdwa -v1, v2 src0_sel:DWORD src1_sel:DWORD 300xf9,0x04,0xb4,0x7d,0x01,0x7e,0x16,0x06 31 32# GFX10: v_cmpx_class_f32_sdwa v0, 1 src0_sel:WORD_1 src1_sel:DWORD 330xf9,0x02,0x31,0x7d,0x00,0x7e,0x05,0x86 34 35# GFX10: v_cmpx_class_f32_sdwa v0, 1 src0_sel:WORD_1 src1_sel:DWORD 360xf9,0x02,0x31,0x7d,0x00,0x7d,0x05,0x86 37