1 // RUN
: llvm-mc
-arch
=amdgcn
-mcpu
=gfx900
-show-encoding
%s | FileCheck
%s
--check-prefix
=GFX9
3 //---------------------------------------------------------------------------//
5 //---------------------------------------------------------------------------//
7 v_mov_b32 v0
, src_lds_direct
8 // GFX9
: v_mov_b32_e32 v0
, src_lds_direct ; encoding
: [0xfe,0x02,0x00,0x7e]
10 v_mov_b32_e64 v0
, src_lds_direct
11 // GFX9
: v_mov_b32_e64 v0
, src_lds_direct ; encoding
: [0x00,0x00,0x41,0xd1,0xfe,0x00,0x00,0x00]
13 v_cvt_f64_i32 v
[0:1], src_lds_direct
14 // GFX9
: v_cvt_f64_i32_e32 v
[0:1], src_lds_direct ; encoding
: [0xfe,0x08,0x00,0x7e]
16 v_cvt_f64_i32_e64 v
[0:1], src_lds_direct
17 // GFX9
: v_cvt_f64_i32_e64 v
[0:1], src_lds_direct ; encoding
: [0x00,0x00,0x44,0xd1,0xfe,0x00,0x00,0x00]
19 v_mov_fed_b32 v0
, src_lds_direct
20 // GFX9
: v_mov_fed_b32_e32 v0
, src_lds_direct ; encoding
: [0xfe,0x12,0x00,0x7e]
22 v_mov_fed_b32_e64 v0
, src_lds_direct
23 // GFX9
: v_mov_fed_b32_e64 v0
, src_lds_direct ; encoding
: [0x00,0x00,0x49,0xd1,0xfe,0x00,0x00,0x00]
25 v_fract_f32 v0
, src_lds_direct
26 // GFX9
: v_fract_f32_e32 v0
, src_lds_direct ; encoding
: [0xfe,0x36,0x00,0x7e]
28 v_fract_f32_e64 v0
, src_lds_direct
29 // GFX9
: v_fract_f32_e64 v0
, src_lds_direct ; encoding
: [0x00,0x00,0x5b,0xd1,0xfe,0x00,0x00,0x00]
31 v_cvt_f16_u16 v0
, src_lds_direct
32 // GFX9
: v_cvt_f16_u16_e32 v0
, src_lds_direct ; encoding
: [0xfe,0x72,0x00,0x7e]
34 v_readfirstlane_b32 s0
, src_lds_direct
35 // GFX9
: v_readfirstlane_b32 s0
, src_lds_direct ; encoding
: [0xfe,0x04,0x00,0x7e]
37 //---------------------------------------------------------------------------//
39 //---------------------------------------------------------------------------//
41 v_cndmask_b32 v0
, src_lds_direct
, v0
, vcc
42 // GFX9
: v_cndmask_b32_e32 v0
, src_lds_direct
, v0
, vcc ; encoding
: [0xfe,0x00,0x00,0x00]
44 v_cndmask_b32_e64 v0
, src_lds_direct
, v0
, s
[0:1]
45 // GFX9
: v_cndmask_b32_e64 v0
, src_lds_direct
, v0
, s
[0:1] ; encoding
: [0x00,0x00,0x00,0xd1,0xfe,0x00,0x02,0x00]
47 v_add_f32 v0
, src_lds_direct
, v0
48 // GFX9
: v_add_f32_e32 v0
, src_lds_direct
, v0 ; encoding
: [0xfe,0x00,0x00,0x02]
50 v_add_f32_e64 v0
, src_lds_direct
, v0
51 // GFX9
: v_add_f32_e64 v0
, src_lds_direct
, v0 ; encoding
: [0x00,0x00,0x01,0xd1,0xfe,0x00,0x02,0x00]
53 v_mul_i32_i24 v0
, src_lds_direct
, v0
54 // GFX9
: v_mul_i32_i24_e32 v0
, src_lds_direct
, v0 ; encoding
: [0xfe,0x00,0x00,0x0c]
56 v_add_co_u32 v0
, vcc
, src_lds_direct
, v0
57 // GFX9
: v_add_co_u32_e32 v0
, vcc
, src_lds_direct
, v0 ; encoding
: [0xfe,0x00,0x00,0x32]
59 //---------------------------------------------------------------------------//
61 //---------------------------------------------------------------------------//
63 v_add_co_u32_e64 v0
, s
[0:1], src_lds_direct
, v0
64 // GFX9
: v_add_co_u32_e64 v0
, s
[0:1], src_lds_direct
, v0 ; encoding
: [0x00,0x00,0x19,0xd1,0xfe,0x00,0x02,0x00]
66 v_madmk_f16 v0
, src_lds_direct
, 0x1121, v0
67 // GFX9
: v_madmk_f16 v0
, src_lds_direct
, 0x1121, v0 ; encoding
: [0xfe,0x00,0x00,0x48,0x21,0x11,0x00,0x00]
69 v_madak_f16 v0
, src_lds_direct
, v0
, 0x1121
70 // GFX9
: v_madak_f16 v0
, src_lds_direct
, v0
, 0x1121 ; encoding
: [0xfe,0x00,0x00,0x4a,0x21,0x11,0x00,0x00]
72 v_mad_f32 v0
, src_lds_direct
, v0
, v0
73 // GFX9
: v_mad_f32 v0
, src_lds_direct
, v0
, v0 ; encoding
: [0x00,0x00,0xc1,0xd1,0xfe,0x00,0x02,0x04]
75 v_fma_f32 v0
, src_lds_direct
, v0
, v0
76 // GFX9
: v_fma_f32 v0
, src_lds_direct
, v0
, v0 ; encoding
: [0x00,0x00,0xcb,0xd1,0xfe,0x00,0x02,0x04]
78 v_min3_i16 v0
, src_lds_direct
, v0
, v0
79 // GFX9
: v_min3_i16 v0
, src_lds_direct
, v0
, v0 ; encoding
: [0x00,0x00,0xf5,0xd1,0xfe,0x00,0x02,0x04]
81 v_max3_f16 v0
, src_lds_direct
, v0
, v0
82 // GFX9
: v_max3_f16 v0
, src_lds_direct
, v0
, v0 ; encoding
: [0x00,0x00,0xf7,0xd1,0xfe,0x00,0x02,0x04]
84 v_readlane_b32 s0
, src_lds_direct
, s0
85 // GFX9
: v_readlane_b32 s0
, src_lds_direct
, s0 ; encoding
: [0x00,0x00,0x89,0xd2,0xfe,0x00,0x00,0x00]
87 //---------------------------------------------------------------------------//
89 //---------------------------------------------------------------------------//
91 v_pk_mad_i16 v0
, src_lds_direct
, v0
, v0
92 // GFX9
: v_pk_mad_i16 v0
, src_lds_direct
, v0
, v0 ; encoding
: [0x00,0x40,0x80,0xd3,0xfe,0x00,0x02,0x1c]
94 v_pk_add_i16 v0
, src_lds_direct
, v0
95 // GFX9
: v_pk_add_i16 v0
, src_lds_direct
, v0 ; encoding
: [0x00,0x00,0x82,0xd3,0xfe,0x00,0x02,0x18]
97 //---------------------------------------------------------------------------//
99 //---------------------------------------------------------------------------//
101 v_cmp_lt_f16 vcc
, src_lds_direct
, v0
102 // GFX9
: v_cmp_lt_f16_e32 vcc
, src_lds_direct
, v0 ; encoding
: [0xfe,0x00,0x42,0x7c]
104 v_cmp_eq_f32 vcc
, src_lds_direct
, v0
105 // GFX9
: v_cmp_eq_f32_e32 vcc
, src_lds_direct
, v0 ; encoding
: [0xfe,0x00,0x84,0x7c]
107 v_cmpx_neq_f32 vcc
, src_lds_direct
, v0
108 // GFX9
: v_cmpx_neq_f32_e32 vcc
, src_lds_direct
, v0 ; encoding
: [0xfe,0x00,0xba,0x7c]
110 //---------------------------------------------------------------------------//
112 //---------------------------------------------------------------------------//
114 v_cmp_lt_f16 vcc
, lds_direct
, v0
115 // GFX9
: v_cmp_lt_f16_e32 vcc
, src_lds_direct
, v0 ; encoding
: [0xfe,0x00,0x42,0x7c]