1 // RUN
: not llvm-mc
-arch
=amdgcn
-mcpu
=gfx900
%s
2>&1 | FileCheck
%s
--check-prefix
=NOGFX9
3 //---------------------------------------------------------------------------//
4 // lds_direct may
be used only with vector ALU instructions
5 //---------------------------------------------------------------------------//
7 s_and_b32 s2
, lds_direct
, s1
10 //---------------------------------------------------------------------------//
11 // lds_direct may
not be used with V_
{LSHL
,LSHR
,ASHL
}REV opcodes
12 //---------------------------------------------------------------------------//
14 v_ashrrev_i16 v0
, lds_direct
, v0
17 v_ashrrev_i32 v0
, lds_direct
, v0
20 v_lshlrev_b16 v0
, lds_direct
, v0
23 v_lshlrev_b32 v0
, lds_direct
, v0
26 v_lshrrev_b16 v0
, lds_direct
, v0
29 v_lshrrev_b32 v0
, lds_direct
, v0
32 v_pk_ashrrev_i16 v0
, lds_direct
, v0
35 v_pk_lshlrev_b16 v0
, lds_direct
, v0
38 v_pk_lshrrev_b16 v0
, lds_direct
, v0
41 //---------------------------------------------------------------------------//
42 // lds_direct cannot
be used with
64-bit
and larger operands
43 //---------------------------------------------------------------------------//
45 v_add_f64 v
[0:1], lds_direct
, v
[0:1]
48 //---------------------------------------------------------------------------//
49 // Only SRC0 may specify lds_direct
50 //---------------------------------------------------------------------------//
52 v_add_i32 v0
, v0
, lds_direct
55 v_add_i32 lds_direct
, v0
, v0
58 v_fma_f32 v0
, v0
, v0
, lds_direct