[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / AMDGPU / exp-err.s
blobbab0434c8dec02c9227a682ff2633645000fb21c
1 // RUN: not llvm-mc -arch=amdgcn %s 2>&1 | FileCheck -check-prefix=GCN --implicit-check-not=error: %s
2 // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga %s 2>&1 | FileCheck -check-prefix=GCN --implicit-check-not=error: %s
4 exp mrt8 v3, v2, v1, v0
5 // GCN: :5: error: invalid exp target
7 exp pos4 v3, v2, v1, v0
8 // GCN: :5: error: exp target is not supported on this GPU
10 exp pos5 v3, v2, v1, v0
11 // GCN: :5: error: invalid exp target
13 exp param32 v3, v2, v1, v0
14 // GCN: :5: error: invalid exp target
16 exp invalid_target_10 v3, v2, v1, v0
17 // GCN: :5: error: invalid exp target
19 exp invalid_target_10 v3, v2, v1, v0 done
20 // GCN: :5: error: invalid exp target
22 exp invalid_target_11 v3, v2, v1, v0
23 // GCN: :5: error: invalid exp target
25 exp invalid_target_11 v3, v2, v1, v0 done
26 // GCN: :5: error: invalid exp target
28 exp mrt-1 v3, v2, v1, v0
29 // GCN: :5: error: invalid exp target
31 exp mrtX v3, v2, v1, v0
32 // GCN: :5: error: invalid exp target
34 exp pos-1 v3, v2, v1, v0
35 // GCN: :5: error: invalid exp target
37 exp posX v3, v2, v1, v0
38 // GCN: :5: error: invalid exp target
40 exp param-1 v3, v2, v1, v0
41 // GCN: :5: error: invalid exp target
43 exp paramX v3, v2, v1, v0
44 // GCN: :5: error: invalid exp target
46 exp invalid_target_-1 v3, v2, v1, v0
47 // GCN: :5: error: invalid exp target
49 exp invalid_target_X v3, v2, v1, v0
50 // GCN: :5: error: invalid exp target
52 exp 0 v3, v2, v1, v0
53 // GCN: :5: error: invalid operand for instruction
55 exp , v3, v2, v1, v0
56 // GCN: :5: error: unknown token in expression
58 exp
59 // GCN: :1: error: too few operands for instruction
61 exp mrt0 s0, v0, v0, v0
62 // GCN: 10: error: invalid operand for instruction
64 exp mrt0 v0, s0, v0, v0
65 // GCN: 14: error: invalid operand for instruction
67 exp mrt0 v0, v0, s0, v0
68 // GCN: 18: error: invalid operand for instruction
70 exp mrt0 v0, v0, v0, s0
71 // GCN: 22: error: invalid operand for instruction
73 exp mrt0 v[0:1], v0, v0, v0
74 // GCN: 10: error: invalid operand for instruction
76 exp mrt0 v0, v[0:1], v0, v0
77 // GCN: 14: error: invalid operand for instruction
79 exp mrt0 v0, v0, v[0:1], v0
80 // GCN: 18: error: invalid operand for instruction
82 exp mrt0 v0, v0, v0, v[0:1]
83 // GCN: 22: error: invalid operand for instruction
85 exp mrt0 1.0, v0, v0, v0
86 // GCN: 10: error: invalid operand for instruction
88 exp mrt0 v0, 1.0, v0, v0
89 // GCN: 14: error: invalid operand for instruction
91 exp mrt0 v0, v0, 1.0, v0
92 // GCN: 18: error: invalid operand for instruction
94 exp mrt0 v0, v0, v0, 1.0
95 // GCN: 22: error: invalid operand for instruction
97 exp mrt0 7, v0, v0, v0
98 // GCN: 10: error: invalid operand for instruction
100 exp mrt0 v0, 7, v0, v0
101 // GCN: 14: error: invalid operand for instruction
103 exp mrt0 v0, v0, 7, v0
104 // GCN: 18: error: invalid operand for instruction
106 exp mrt0 v0, v0, v0, 7
107 // GCN: 22: error: invalid operand for instruction
109 exp mrt0 0x12345678, v0, v0, v0
110 // GCN: 10: error: invalid operand for instruction
112 exp mrt0 v0, 0x12345678, v0, v0
113 // GCN: 14: error: invalid operand for instruction
115 exp mrt0 v0, v0, 0x12345678, v0
116 // GCN: 18: error: invalid operand for instruction
118 exp mrt0 v0, v0, v0, 0x12345678
119 // GCN: 22: error: invalid operand for instruction