File tree Expand file tree Collapse file tree 2 files changed +22
-5
lines changed
test/CodeGen/AMDGPU/GlobalISel Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -235,8 +235,7 @@ bool InlineAsmLowering::lowerInlineAsm(
235
235
const auto ConstraintError = [&](const GISelAsmOperandInfo &Info, Twine Msg) {
236
236
LLVMContext &Ctx = MIRBuilder.getContext ();
237
237
Ctx.diagnose (DiagnosticInfoInlineAsm (
238
- Call, " invalid constraint '" + Info.ConstraintCode + " ' in '" +
239
- MF.getName () + " ': " + Msg));
238
+ Call, " invalid constraint '" + Info.ConstraintCode + " ': " + Msg));
240
239
// TODO: Recover if fallback isn't used. Otherwise let the fallback to DAG
241
240
// kick in.
242
241
return false ;
Original file line number Diff line number Diff line change 1
- ; RUN: llc -S - mtriple=amdgcn -mcpu=fiji -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed='gisel*' %s -o - 2> %t.err
1
+ ; RUN: not llc -mtriple=amdgcn -mcpu=fiji -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed='gisel*' %s -o - 2>&1 | FileCheck %s
2
2
3
- ; CHECK: error: invalid constraint '' in 'aggregates' : aggregate input operands not supported yet
3
+ ; CHECK: error: invalid constraint '': aggregate input operands not supported yet
4
4
define amdgpu_kernel void @aggregates ([4 x i8 ] %val ) {
5
5
tail call void asm sideeffect "s_nop" , "r" ([4 x i8 ] %val )
6
6
ret void
7
7
}
8
8
9
- ; CHECK: error: error: invalid constraint '{s999}' in 'bad_output ': could not allocate output register for constraint
9
+ ; CHECK: error: invalid constraint '{s999}': could not allocate output register for constraint
10
10
define amdgpu_kernel void @bad_output () {
11
11
tail call i32 asm sideeffect "s_nop" , "={s999}" ()
12
12
ret void
13
13
}
14
+
15
+ ; CHECK: error: invalid constraint '{s998}': could not allocate input register for register constraint
16
+ define amdgpu_kernel void @bad_input () {
17
+ tail call void asm sideeffect "s_nop" , "{s998}" (i32 undef )
18
+ ret void
19
+ }
20
+ ; CHECK: error: invalid constraint '{s997}': indirect register inputs are not supported yet
21
+ define amdgpu_kernel void @indirect_input () {
22
+ tail call void asm sideeffect "s_nop" , "*{s997}" (ptr elementtype(i32 ) undef )
23
+ ret void
24
+ }
25
+
26
+ ; CHECK: error: invalid constraint 'i': unsupported constraint
27
+ define amdgpu_kernel void @badimm () {
28
+ tail call void asm sideeffect "s_nop" , "i" (i32 undef )
29
+ ret
30
+ void
31
+ }
You can’t perform that action at this time.
0 commit comments