Eric Christopher | 05b7a50 | 2012-05-10 21:48:22 +0000 | [diff] [blame^] | 1 | ; Positive test for inline register constraints |
2 | ; | ||||
3 | ; RUN: llc -march=mipsel < %s | FileCheck %s | ||||
4 | |||||
5 | define i32 @main() nounwind { | ||||
6 | entry: | ||||
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 | |||||
14 | ret i32 0 | ||||
15 | } |