aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Mips/inlineasm-cnstrnt-bad-r-1.ll
blob: f5255fe0a3bd6018354ecbac05455595c6dc6b02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
;
; Register constraint "r" shouldn't take long long unless
; The target is 64 bit.
;
; RUN: not llc -march=mipsel < %s  2> %t
; RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s

define i32 @main() nounwind {
entry:

; r with long long
;CHECK-ERRORS:	error: couldn't allocate output register for constraint 'r'

  tail call i64 asm sideeffect "addi $0,$1,$2", "=r,r,i"(i64 7, i64 3) nounwind
  ret i32 0
}