diff options
author | James Molloy <james.molloy@arm.com> | 2016-11-03 14:08:01 +0000 |
---|---|---|
committer | James Molloy <james.molloy@arm.com> | 2016-11-03 14:08:01 +0000 |
commit | 6300980dd120ee39c6acb1449269a01e892ed3c7 (patch) | |
tree | affa4948db274aee144f22725d6b88eebb9f60de /test/CodeGen/Thumb2 | |
parent | 497f2006c431f63234e6ca74d9efb38201b5024e (diff) |
Revert "[Thumb] Teach ISel how to lower compares of AND bitmasks efficiently"
This reverts commit r285893. It caused (probably) http://lab.llvm.org:8011/builders/clang-cmake-thumbv7-a15-full-sh/builds/83 .
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2')
-rw-r--r-- | test/CodeGen/Thumb2/float-ops.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/CodeGen/Thumb2/float-ops.ll b/test/CodeGen/Thumb2/float-ops.ll index f4c0ef08e84..c9f93f2d613 100644 --- a/test/CodeGen/Thumb2/float-ops.ll +++ b/test/CodeGen/Thumb2/float-ops.ll @@ -259,9 +259,9 @@ define i64 @bitcast_d_to_i(double %a) { define float @select_f(float %a, float %b, i1 %c) { ; CHECK-LABEL: select_f: -; NONE: lsls r2, r2, #31 +; NONE: tst.w r2, #1 ; NONE: moveq r0, r1 -; HARD: lsls r0, r0, #31 +; HARD: tst.w r0, #1 ; VFP4-ALL: vmovne.f32 s1, s0 ; VFP4-ALL: vmov.f32 s0, s1 ; FP-ARMv8: vseleq.f32 s0, s1, s0 @@ -271,18 +271,18 @@ define float @select_f(float %a, float %b, i1 %c) { define double @select_d(double %a, double %b, i1 %c) { ; CHECK-LABEL: select_d: -; NONE: ldr{{(.w)?}} [[REG:r[0-9]+]], [sp] -; NONE: lsls{{(.w)?}} [[REG]], [[REG]], #31 +; NONE: ldr.w [[REG:r[0-9]+]], [sp] +; NONE: ands [[REG]], [[REG]], #1 ; NONE: moveq r0, r2 ; NONE: moveq r1, r3 -; SP: lsls r0, r0, #31 +; SP: ands r0, r0, #1 ; SP-DAG: vmov [[ALO:r[0-9]+]], [[AHI:r[0-9]+]], d0 ; SP-DAG: vmov [[BLO:r[0-9]+]], [[BHI:r[0-9]+]], d1 ; SP: itt ne ; SP-DAG: movne [[BLO]], [[ALO]] ; SP-DAG: movne [[BHI]], [[AHI]] ; SP: vmov d0, [[BLO]], [[BHI]] -; DP: lsls r0, r0, #31 +; DP: tst.w r0, #1 ; VFP4-DP: vmovne.f64 d1, d0 ; VFP4-DP: vmov.f64 d0, d1 ; FP-ARMV8: vseleq.f64 d0, d1, d0 |