diff options
Diffstat (limited to 'llvm/test/CodeGen/Mips/inline-asm-i-constraint-i1.ll')
-rw-r--r-- | llvm/test/CodeGen/Mips/inline-asm-i-constraint-i1.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/inline-asm-i-constraint-i1.ll b/llvm/test/CodeGen/Mips/inline-asm-i-constraint-i1.ll new file mode 100644 index 00000000000..598b20f5467 --- /dev/null +++ b/llvm/test/CodeGen/Mips/inline-asm-i-constraint-i1.ll @@ -0,0 +1,14 @@ +; RUN: llc -mtriple=mips64el-unknown-linux-gnu < %s | FileCheck %s + +; Make sure that boolean immediates are properly (zero) extended. +; CHECK: TEST 42 + 1 - . + +target triple = "mips64el-unknown-linux-gnu" + +define i32 @foo() #0 { +entry: + tail call void asm sideeffect "#TEST 42 + ${0:c} - .\0A\09", "i,~{dirflag},~{fpsr},~{flags}"(i1 true) #0 + ret i32 1 +} + +attributes #0 = { nounwind } |