blob: 1cd86d617a24ff930bf7ee741181884418e93b97 [file] [log] [blame]
Simon Atanasyan0874cf52018-02-12 12:21:55 +00001; Negative test. The constraint 'l' represents the register 'lo'.
2; Check error message in case of invalid usage.
3;
4; RUN: not llc -march=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}