The Mips specific inline asm operand modifier 'z' has the
[oota-llvm.git] / test / CodeGen / Mips / inlineasm-operand-code.ll
index 63190fa5c42e790d6805a6437ec71979484010e9..ca4f3e4c5aed19b05c33273bca811951e7548da0 100644 (file)
@@ -17,5 +17,29 @@ entry:
 ;CHECK:        #NO_APP
   tail call i32 asm sideeffect "addi $0,$1,${2:x}", "=r,r,I"(i32 7, i32 -3) nounwind
 
+; d with -3
+;CHECK:        #APP
+;CHECK:        addi ${{[0-9]+}},${{[0-9]+}},-3
+;CHECK:        #NO_APP
+  tail call i32 asm sideeffect "addi $0,$1,${2:d}", "=r,r,I"(i32 7, i32 -3) nounwind
+
+; m with -3
+;CHECK:        #APP
+;CHECK:        addi ${{[0-9]+}},${{[0-9]+}},-4
+;CHECK:        #NO_APP
+  tail call i32 asm sideeffect "addi $0,$1,${2:m}", "=r,r,I"(i32 7, i32 -3) nounwind
+
+; z with -3
+;CHECK:        #APP
+;CHECK:        addi ${{[0-9]+}},${{[0-9]+}},-3
+;CHECK:        #NO_APP
+  tail call i32 asm sideeffect "addi $0,$1,${2:z}", "=r,r,I"(i32 7, i32 -3) nounwind
+
+; z with 0
+;CHECK:        #APP
+;CHECK:        addi ${{[0-9]+}},${{[0-9]+}},$0
+;CHECK:        #NO_APP
+  tail call i32 asm sideeffect "addi $0,$1,${2:z}", "=r,r,I"(i32 7, i32 0) nounwind
+
   ret i32 0
 }