blob: f5255fe0a3bd6018354ecbac05455595c6dc6b02 [file] [log] [blame]
Eric Christopher1d6c89e2012-05-07 03:13:32 +00001;
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
8define i32 @main() nounwind {
9entry:
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