summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/softfp-fabs-fneg.ll
diff options
context:
space:
mode:
authorEli Friedman <efriedma@codeaurora.org>2017-04-07 22:01:23 +0000
committerEli Friedman <efriedma@codeaurora.org>2017-04-07 22:01:23 +0000
commit251a136db40c5dcc80bd9dafec1c1d75d6be72b0 (patch)
tree0640d677f37585043592951e0e2f36e62ab795ab /test/CodeGen/ARM/softfp-fabs-fneg.ll
parent80726a4dd80539f2aa4521012e60e7048db125d1 (diff)
[ARM] Prefer BIC over BFC in ARM mode.
BIC is generally faster, and it can put the output in a different register from the input. We already do this in Thumb2 mode; not sure why the equivalent fix never got applied to ARM mode. Differential Revision: https://reviews.llvm.org/D31797 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299803 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/softfp-fabs-fneg.ll')
-rw-r--r--test/CodeGen/ARM/softfp-fabs-fneg.ll3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/CodeGen/ARM/softfp-fabs-fneg.ll b/test/CodeGen/ARM/softfp-fabs-fneg.ll
index b608fb84021..b7c684d35b5 100644
--- a/test/CodeGen/ARM/softfp-fabs-fneg.ll
+++ b/test/CodeGen/ARM/softfp-fabs-fneg.ll
@@ -14,8 +14,7 @@ define double @f(double %a) {
define float @g(float %a) {
; CHECK-LABEL: g:
- ; CHECK-THUMB: bic r0, r0, #-2147483648
- ; CHECK-ARM: bfc r0, #31, #1
+ ; CHECK: bic r0, r0, #-2147483648
; CHECK-NEXT: bx lr
%x = call float @llvm.fabs.f32(float %a) readnone
ret float %x