AMDGPU: Add cache invalidation instructions.
[oota-llvm.git] / test / MC / AMDGPU / vop2-err.s
1 // RUN: not llvm-mc -arch=amdgcn %s 2>&1 | FileCheck %s
2 // RUN: not llvm-mc -arch=amdgcn -mcpu=SI %s 2>&1 | FileCheck %s
3
4 //===----------------------------------------------------------------------===//
5 // Generic checks
6 //===----------------------------------------------------------------------===//
7
8 v_mul_i32_i24 v1, v2, 100
9 // CHECK: error: invalid operand for instruction
10
11 //===----------------------------------------------------------------------===//
12 // _e32 checks
13 //===----------------------------------------------------------------------===//
14
15 // Immediate src1
16 v_mul_i32_i24_e32 v1, v2, 100
17 // CHECK: error: invalid operand for instruction
18
19 // sgpr src1
20 v_mul_i32_i24_e32 v1, v2, s3
21 // CHECK: error: invalid operand for instruction
22
23 //===----------------------------------------------------------------------===//
24 // _e64 checks
25 //===----------------------------------------------------------------------===//
26
27 // Immediate src0
28 v_mul_i32_i24_e64 v1, 100, v3
29 // CHECK: error: invalid operand for instruction
30
31 // Immediate src1
32 v_mul_i32_i24_e64 v1, v2, 100
33 // CHECK: error: invalid operand for instruction
34
35 v_add_i32_e32 v1, s[0:1], v2, v3
36 // CHECK: error: invalid operand for instruction
37
38 v_addc_u32_e32 v1, vcc, v2, v3, s[2:3]
39 // CHECK: error: invalid operand for instruction
40
41 v_addc_u32_e32 v1, s[0:1], v2, v3, s[2:3]
42 // CHECK: error: invalid operand for instruction
43
44 v_addc_u32_e32 v1, vcc, v2, v3, -1
45 // CHECK: error: invalid operand for instruction
46
47 v_addc_u32_e32 v1, vcc, v2, v3, 123
48 // CHECK: error: invalid operand for instruction
49
50 v_addc_u32_e32 v1, vcc, v2, v3, s0
51 // CHECK: error: invalid operand for instruction
52
53 v_addc_u32_e32 v1, -1, v2, v3, s0
54 // CHECK: error: invalid operand for instruction
55
56 v_addc_u32_e64 v1, s[0:1], v2, v3, 123
57 // CHECK: error: invalid operand for instruction
58
59 v_addc_u32 v1, s[0:1], v2, v3, 123
60 // CHECK: error: invalid operand for instruction
61
62 // TODO: Constant bus restrictions