diff options
| author | Ana Pazos <apazos@codeaurora.org> | 2016-01-13 00:03:35 +0000 |
|---|---|---|
| committer | Ana Pazos <apazos@codeaurora.org> | 2016-01-13 00:03:35 +0000 |
| commit | 359cab3bb3b048b99800bac9bd95ab1d0c432bc2 (patch) | |
| tree | 59d567bf67526840ab07217a05a39a34193637ef /llvm/test/CodeGen/ARM | |
| parent | f8e303079443af0e3c1026c847bfbccb477ed668 (diff) | |
| download | bcm5719-llvm-359cab3bb3b048b99800bac9bd95ab1d0c432bc2.tar.gz bcm5719-llvm-359cab3bb3b048b99800bac9bd95ab1d0c432bc2.zip | |
Guard fabs to bfc convert with V6T2 flag
Summary:
BFC instructions are available in ARMv6T2 and above.
Reviewers: t.p.northover
Subscribers: aemerson
Differential Revision: http://reviews.llvm.org/D16076
llvm-svn: 257546
Diffstat (limited to 'llvm/test/CodeGen/ARM')
| -rw-r--r-- | llvm/test/CodeGen/ARM/fabs-to-bfc.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/fabs-to-bfc.ll b/llvm/test/CodeGen/ARM/fabs-to-bfc.ll new file mode 100644 index 00000000000..1a2e04584a9 --- /dev/null +++ b/llvm/test/CodeGen/ARM/fabs-to-bfc.ll @@ -0,0 +1,14 @@ +; RUN: llc < %s -mtriple=armv5e-none-linux-gnueabi -mattr=+vfp2 | FileCheck %s -check-prefix=CHECK-VABS +; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi -mattr=+vfp3 | FileCheck %s -check-prefix=CHECK-BFC + + +define double @test(double %tx) { +;CHECK-LABEL: test: + %call = tail call double @fabs(double %tx) + ret double %call +;CHECK-VABS: vabs.f64 +;CHECK-BFC: bfc +} + +declare double @fabs(double) readnone + |

