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 | 3b9c52c5c19f615554d3ddb7266bc76313d36861 (patch) | |
tree | 36371dda661073d1dedf723d41b07bdf45fb50f5 /llvm/test/CodeGen/ARM/fadds.ll | |
parent | 36c14a0f1abe0f66ee69812f2d555c6556a7b9d5 (diff) | |
download | bcm5719-llvm-3b9c52c5c19f615554d3ddb7266bc76313d36861.tar.gz bcm5719-llvm-3b9c52c5c19f615554d3ddb7266bc76313d36861.zip |
Initial support for single-precision FP using NEON. Added "neonfp" attribute to enable. Added patterns for some binary FP operations.
llvm-svn: 78081
Diffstat (limited to 'llvm/test/CodeGen/ARM/fadds.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/fadds.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/fadds.ll b/llvm/test/CodeGen/ARM/fadds.ll new file mode 100644 index 00000000000..35c74f78d29 --- /dev/null +++ b/llvm/test/CodeGen/ARM/fadds.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | grep -E {fadds\\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 {vadd.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 {fadds\\W*s\[0-9\]+,\\W*s\[0-9\]+,\\W*s\[0-9\]+} | count 1 + +define float @test(float %a, float %b) { +entry: + %0 = fadd float %a, %b + ret float %0 +} + |