[lit] Remove LitTestCase
[llvm-complete.git] / test / MC / AMDGPU / lds_direct-err.s
blob25a5cda6a54f8c2075d975fd503a62021d230ece
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
8 // NOGFX9: error
10 //---------------------------------------------------------------------------//
11 // lds_direct may not be used with V_{LSHL,LSHR,ASHL}REV opcodes
12 //---------------------------------------------------------------------------//
14 v_ashrrev_i16 v0, lds_direct, v0
15 // NOGFX9: error
17 v_ashrrev_i32 v0, lds_direct, v0
18 // NOGFX9: error
20 v_lshlrev_b16 v0, lds_direct, v0
21 // NOGFX9: error
23 v_lshlrev_b32 v0, lds_direct, v0
24 // NOGFX9: error
26 v_lshrrev_b16 v0, lds_direct, v0
27 // NOGFX9: error
29 v_lshrrev_b32 v0, lds_direct, v0
30 // NOGFX9: error
32 v_pk_ashrrev_i16 v0, lds_direct, v0
33 // NOGFX9: error
35 v_pk_lshlrev_b16 v0, lds_direct, v0
36 // NOGFX9: error
38 v_pk_lshrrev_b16 v0, lds_direct, v0
39 // NOGFX9: error
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]
46 // NOGFX9: error
48 //---------------------------------------------------------------------------//
49 // Only SRC0 may specify lds_direct
50 //---------------------------------------------------------------------------//
52 v_add_i32 v0, v0, lds_direct
53 // NOGFX9: error
55 v_add_i32 lds_direct, v0, v0
56 // NOGFX9: error
58 v_fma_f32 v0, v0, v0, lds_direct
59 // NOGFX9: error