mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-01 04:29:57 +00:00
from the previous 2 patches. Patch by Jack Carter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156279 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
409 B
LLVM
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
|
|
}
|
|
|