[InstCombine] Signed saturation tests. NFC
[llvm-complete.git] / test / MC / Disassembler / AMDGPU / vcmpx-gfx10.txt
blobf15951eb4d08b834299dc620672598a6c486a009
1 # RUN: llvm-mc -arch=amdgcn -mcpu=gfx1010 -disassemble -show-encoding < %s | FileCheck -check-prefixes=GFX10 %s
3 #===------------------------------------------------------------------------===#
4 # Regular v_cmpx encoding
5 #===------------------------------------------------------------------------===#
7 # GFX10: v_cmpx_eq_f16_e64 s1, v2
8 0x00,0x00,0xda,0xd4,0x01,0x04,0x02,0x00
10 # GFX10: v_cmpx_class_f32_e64 v0, 1
11 0x00,0x00,0x98,0xd4,0x00,0x03,0x01,0x00
13 # GFX10: v_cmpx_eq_f16_sdwa -v1, v2 src0_sel:DWORD src1_sel:DWORD
14 0xf9,0x04,0xb4,0x7d,0x01,0x00,0x16,0x06
16 # GFX10: v_cmpx_class_f32_sdwa v0, 1 src0_sel:WORD_1 src1_sel:DWORD
17 0xf9,0x02,0x31,0x7d,0x00,0x00,0x05,0x86
19 #===------------------------------------------------------------------------===#
20 # v_cmpx with arbitrary DST value should also be decodable
21 #===------------------------------------------------------------------------===#
23 # GFX10: v_cmpx_eq_f16_e64 s1, v2
24 0x7e,0x00,0xda,0xd4,0x01,0x04,0x02,0x00
26 # GFX10: v_cmpx_class_f32_e64 v0, 1
27 0x7e,0x00,0x98,0xd4,0x00,0x03,0x01,0x00
29 # GFX10: v_cmpx_eq_f16_sdwa -v1, v2 src0_sel:DWORD src1_sel:DWORD
30 0xf9,0x04,0xb4,0x7d,0x01,0x7e,0x16,0x06
32 # GFX10: v_cmpx_class_f32_sdwa v0, 1 src0_sel:WORD_1 src1_sel:DWORD
33 0xf9,0x02,0x31,0x7d,0x00,0x7e,0x05,0x86
35 # GFX10: v_cmpx_class_f32_sdwa v0, 1 src0_sel:WORD_1 src1_sel:DWORD
36 0xf9,0x02,0x31,0x7d,0x00,0x7d,0x05,0x86