[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AMDGPU / lds_direct-err.s
blob578461bc35ad598434a2bee5fb1c24d97ab9a9a4
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: invalid operand for instruction
10 //---------------------------------------------------------------------------//
11 // lds_direct may not be used with "REV" opcodes
12 //---------------------------------------------------------------------------//
14 v_ashrrev_i16 v0, lds_direct, v0
15 // NOGFX9: error: invalid use of lds_direct
17 v_ashrrev_i32 v0, lds_direct, v0
18 // NOGFX9: error: invalid use of lds_direct
20 v_lshlrev_b16 v0, lds_direct, v0
21 // NOGFX9: error: invalid use of lds_direct
23 v_lshlrev_b32 v0, lds_direct, v0
24 // NOGFX9: error: invalid use of lds_direct
26 v_lshrrev_b16 v0, lds_direct, v0
27 // NOGFX9: error: invalid use of lds_direct
29 v_lshrrev_b32 v0, lds_direct, v0
30 // NOGFX9: error: invalid use of lds_direct
32 v_pk_ashrrev_i16 v0, lds_direct, v0
33 // NOGFX9: error: invalid use of lds_direct
35 v_pk_lshlrev_b16 v0, lds_direct, v0
36 // NOGFX9: error: invalid use of lds_direct
38 v_pk_lshrrev_b16 v0, lds_direct, v0
39 // NOGFX9: error: invalid use of lds_direct
41 v_subbrev_co_u32 v0, vcc, src_lds_direct, v0, vcc
42 // NOGFX9: error: invalid use of lds_direct
44 v_subrev_co_u32 v0, vcc, src_lds_direct, v0
45 // NOGFX9: error: invalid use of lds_direct
47 v_subrev_f16 v0, src_lds_direct, v0
48 // NOGFX9: error: invalid use of lds_direct
50 v_subrev_u16 v0, src_lds_direct, v0
51 // NOGFX9: error: invalid use of lds_direct
53 v_subrev_u32 v0, src_lds_direct, v0
54 // NOGFX9: error: invalid use of lds_direct
56 //---------------------------------------------------------------------------//
57 // lds_direct may not be used with v_writelane_b32 for VI/GFX9
58 //---------------------------------------------------------------------------//
60 v_writelane_b32 v0, lds_direct, s0
61 // NOGFX9: error: instruction not supported on this GPU
63 //---------------------------------------------------------------------------//
64 // lds_direct cannot be used with 64-bit and larger operands
65 //---------------------------------------------------------------------------//
67 v_add_f64 v[0:1], lds_direct, v[0:1]
68 // NOGFX9: error: invalid operand for instruction
70 //---------------------------------------------------------------------------//
71 // Only SRC0 may specify lds_direct
72 //---------------------------------------------------------------------------//
74 v_add_i32 v0, v0, lds_direct
75 // NOGFX9: error: invalid use of lds_direct
77 v_add_i32 lds_direct, v0, v0
78 // NOGFX9: error: invalid operand for instruction
80 v_fma_f32 v0, v0, v0, lds_direct
81 // NOGFX9: error: invalid use of lds_direct