xref: /llvm-project/llvm/test/CodeGen/Mips/inlineasm-constraint-bad-l1.ll (revision 806761a7629df268c8aed49657aeccffa6bca449)
1; Negative test. The constraint 'l' represents the register 'lo'.
2; Check error message in case of invalid usage.
3;
4; RUN: not llc -mtriple=mips -filetype=obj < %s 2>&1 | FileCheck %s
5
6define void @constraint_l() nounwind {
7entry:
8
9; CHECK: error: invalid operand for instruction
10
11  tail call i16 asm sideeffect "addiu $0,$1,$2", "=l,r,r,~{$1}"(i16 0, i16 0)
12  ret void
13}
14