1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00
llvm-mirror/test/CodeGen/Mips/inlineasm-cnstrnt-bad-r-1.ll
Eric Christopher 929ba63dcf Add support for the 'I' inline asm constraint. Also add tests
from the previous 2 patches.

Patch by Jack Carter.

llvm-svn: 156279
2012-05-07 03:13:32 +00:00

18 lines
409 B
LLVM

;
; 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
}