blob: 4568a8465856c6c33f05523608958b384bc2c010 [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
14 ret i32 0
15}