Simon Atanasyan | 0874cf5 | 2018-02-12 12:21:55 +0000 | [diff] [blame] | 1 | ; 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 | |||||
6 | define void @constraint_l() nounwind { | ||||
7 | entry: | ||||
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 | } |