summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-05-24 23:15:43 +0000
committerEric Christopher <echristo@apple.com>2011-05-24 23:15:43 +0000
commite1739d598d2c980822cc42bbf9821b91ebbc829f (patch)
tree33763e6c84409de45aec010dc631283d181088f9 /test/CodeGen/ARM
parent424641ef83fbb99640d3e2758148a9d3ea2b3830 (diff)
downloadllvm-e1739d598d2c980822cc42bbf9821b91ebbc829f.tar.gz
llvm-e1739d598d2c980822cc42bbf9821b91ebbc829f.tar.bz2
llvm-e1739d598d2c980822cc42bbf9821b91ebbc829f.tar.xz
Implement the immediate part of the 'B' modifier.
Part of rdar://9119939 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132023 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM')
-rw-r--r--test/CodeGen/ARM/arm-modifier.ll10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/CodeGen/ARM/arm-modifier.ll b/test/CodeGen/ARM/arm-modifier.ll
index 051d7e7780..6b0da44ed5 100644
--- a/test/CodeGen/ARM/arm-modifier.ll
+++ b/test/CodeGen/ARM/arm-modifier.ll
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=arm -mattr=+vfp2
+; RUN: llc < %s -march=arm -mattr=+vfp2 | FileCheck %s
define i32 @foo(float %scale, float %scale2) nounwind ssp {
entry:
@@ -13,3 +13,11 @@ entry:
}
!0 = metadata !{i32 56, i32 89, i32 128, i32 168}
+
+define void @f0() nounwind ssp {
+entry:
+; CHECK: f0
+; CHECK: .word -1
+call void asm sideeffect ".word ${0:B} \0A\09", "i"(i32 0) nounwind, !srcloc !0
+ret void
+}