aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/fsubs.ll
diff options
context:
space:
mode:
authorDavid Goodwin <david_goodwin@apple.com>2009-08-04 17:53:06 +0000
committerDavid Goodwin <david_goodwin@apple.com>2009-08-04 17:53:06 +0000
commit42a83f2d15cbbc08f5be19856198e3c885221e9c (patch)
treeeca061ad8695529066fa894eb0b7cc417bbf253b /test/CodeGen/ARM/fsubs.ll
parentc7a6da6e1469100937851cc3741a36b5850e54da (diff)
Initial support for single-precision FP using NEON. Added "neonfp" attribute to enable. Added patterns for some binary FP operations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/fsubs.ll')
-rw-r--r--test/CodeGen/ARM/fsubs.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/fsubs.ll b/test/CodeGen/ARM/fsubs.ll
new file mode 100644
index 0000000000..e318237401
--- /dev/null
+++ b/test/CodeGen/ARM/fsubs.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | grep -E {fsubs\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
+; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,+neonfp | grep -E {vsub.f32\\W*d\[0-9\]+,\\W*d\[0-9\]+,\\W*d\[0-9\]+} | count 1
+; RUN: llvm-as < %s | llc -march=arm -mattr=+neon,-neonfp | grep -E {fsubs\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1
+
+define float @test(float %a, float %b) {
+entry:
+ %0 = fsub float %a, %b
+ ret float %0
+}
+