blob: 893e8d29e65da8b58e9b083e10fb91153c8608e2 [file] [log] [blame]
Simon Pilgrimfc4d4b22016-07-19 13:35:11 +00001; RUN: not llc -mtriple=arm64-eabi < %s 2> %t
Tim Northover00ed9962014-03-29 10:18:08 +00002; RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s
3
4; Check for at least one invalid constant.
5; CHECK-ERRORS: error: invalid operand for inline asm constraint 'K'
6
7define i32 @constraint_K(i32 %i, i32 %j) nounwind {
8entry:
9 %0 = tail call i32 asm sideeffect "eor $0, $1, $2", "=r,r,K"(i32 %i, i32 -1) nounwind
10 ret i32 %0
11}