[RemoveDIs][DebugInfo] Update SROA to handle DPVAssigns (#78475)
[llvm-project.git] / llvm / test / MC / AMDGPU / vop2-err.s
blob122fbd7134911a038b412c6172545cff479c980c
1 // RUN: not llvm-mc -triple=amdgcn %s 2>&1 | FileCheck --implicit-check-not=error: %s
2 // RUN: not llvm-mc -triple=amdgcn -mcpu=tahiti %s 2>&1 | FileCheck --implicit-check-not=error: %s
4 //===----------------------------------------------------------------------===//
5 // Generic checks
6 //===----------------------------------------------------------------------===//
8 v_mul_i32_i24 v1, v2, 100
9 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: literal operands are not supported
11 //===----------------------------------------------------------------------===//
12 // _e32 checks
13 //===----------------------------------------------------------------------===//
15 // Immediate src1
16 v_mul_i32_i24_e32 v1, v2, 100
17 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
19 // sgpr src1
20 v_mul_i32_i24_e32 v1, v2, s3
21 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
23 v_cndmask_b32_e32 v1, v2, v3, s[0:1]
24 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
26 //===----------------------------------------------------------------------===//
27 // _e64 checks
28 //===----------------------------------------------------------------------===//
30 // Immediate src0
31 v_mul_i32_i24_e64 v1, 100, v3
32 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: literal operands are not supported
34 // Immediate src1
35 v_mul_i32_i24_e64 v1, v2, 100
36 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: literal operands are not supported
38 v_add_i32_e32 v1, s[0:1], v2, v3
39 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
41 v_addc_u32_e32 v1, vcc, v2, v3, s[2:3]
42 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
44 v_addc_u32_e32 v1, s[0:1], v2, v3, s[2:3]
45 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
47 v_addc_u32_e32 v1, vcc, v2, v3, -1
48 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
50 v_addc_u32_e32 v1, vcc, v2, v3, 123
51 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
53 v_addc_u32_e32 v1, vcc, v2, v3, s0
54 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
56 v_addc_u32_e32 v1, -1, v2, v3, s0
57 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
59 v_addc_u32 v1, -1, v2, v3, vcc
60 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
62 v_addc_u32 v1, vcc, v2, v3, 0
63 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
65 v_addc_u32_e64 v1, s[0:1], v2, v3, 123
66 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
68 v_addc_u32_e64 v1, 0, v2, v3, s[0:1]
69 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
71 v_addc_u32_e64 v1, s[0:1], v2, v3, 0
72 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
74 v_addc_u32 v1, s[0:1], v2, v3, 123
75 // CHECK: :[[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
77 // TODO: Constant bus restrictions