diff options
author | David Goodwin <david_goodwin@apple.com> | 2009-08-04 17:53:06 +0000 |
---|---|---|
committer | David Goodwin <david_goodwin@apple.com> | 2009-08-04 17:53:06 +0000 |
commit | 42a83f2d15cbbc08f5be19856198e3c885221e9c (patch) | |
tree | eca061ad8695529066fa894eb0b7cc417bbf253b /test/CodeGen/ARM/fmscs.ll | |
parent | c7a6da6e1469100937851cc3741a36b5850e54da (diff) | |
download | external_llvm-42a83f2d15cbbc08f5be19856198e3c885221e9c.zip external_llvm-42a83f2d15cbbc08f5be19856198e3c885221e9c.tar.gz external_llvm-42a83f2d15cbbc08f5be19856198e3c885221e9c.tar.bz2 |
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/fmscs.ll')
-rw-r--r-- | test/CodeGen/ARM/fmscs.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/fmscs.ll b/test/CodeGen/ARM/fmscs.ll new file mode 100644 index 0000000..5338f44 --- /dev/null +++ b/test/CodeGen/ARM/fmscs.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | grep -E {fmscs\\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 {fmscs\\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 {fmscs\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1 + +define float @test(float %acc, float %a, float %b) { +entry: + %0 = fmul float %a, %b + %1 = fsub float %0, %acc + ret float %1 +} + |