blob: 63190fa5c42e790d6805a6437ec71979484010e9 [file] [log] [blame]
Eric Christopher05b7a502012-05-10 21:48:22 +00001; Positive test for inline register constraints
2;
3; RUN: llc -march=mipsel < %s | FileCheck %s
4
5define i32 @main() nounwind {
6entry:
7
8; X with -3
9;CHECK: #APP
10;CHECK: addi ${{[0-9]+}},${{[0-9]+}},0xfffffffffffffffd
11;CHECK: #NO_APP
12 tail call i32 asm sideeffect "addi $0,$1,${2:X}", "=r,r,I"(i32 7, i32 -3) nounwind
13
Eric Christopher550c25e2012-05-18 17:39:35 +000014; x with -3
15;CHECK: #APP
16;CHECK: addi ${{[0-9]+}},${{[0-9]+}},0xfffd
17;CHECK: #NO_APP
18 tail call i32 asm sideeffect "addi $0,$1,${2:x}", "=r,r,I"(i32 7, i32 -3) nounwind
19
Eric Christopher05b7a502012-05-10 21:48:22 +000020 ret i32 0
21}