Eric Christopher | 1d6c89e | 2012-05-07 03:13:32 +0000 | [diff] [blame] | 1 | ; |
2 | ; Register constraint "r" shouldn't take long long unless | ||||
3 | ; The target is 64 bit. | ||||
4 | ; | ||||
5 | ; RUN: not llc -march=mipsel < %s 2> %t | ||||
6 | ; RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s | ||||
7 | |||||
8 | define i32 @main() nounwind { | ||||
9 | entry: | ||||
10 | |||||
11 | ; r with long long | ||||
12 | ;CHECK-ERRORS: error: couldn't allocate output register for constraint 'r' | ||||
13 | |||||
14 | tail call i64 asm sideeffect "addi $0,$1,$2", "=r,r,i"(i64 7, i64 3) nounwind | ||||
15 | ret i32 0 | ||||
16 | } | ||||
17 |