summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/memcmp-mergeexpand.ll
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-03-02 14:34:49 +0000
committerClement Courbet <courbet@google.com>2018-03-02 14:34:49 +0000
commitc6638c813bd77c76f2a01c1831004deb64399be7 (patch)
tree9262586cea4e7b0739fdb56f58199e29b80b4061 /llvm/test/CodeGen/PowerPC/memcmp-mergeexpand.ll
parent1de4a183d40a00cff717dd3c04b901080d0164a1 (diff)
downloadbcm5719-llvm-c6638c813bd77c76f2a01c1831004deb64399be7.tar.gz
bcm5719-llvm-c6638c813bd77c76f2a01c1831004deb64399be7.zip
[MergeICmps] Revert 324317 "Enable the MergeICmps Pass by default."
While working on PR36557. llvm-svn: 326575
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/memcmp-mergeexpand.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/memcmp-mergeexpand.ll22
1 files changed, 16 insertions, 6 deletions
diff --git a/llvm/test/CodeGen/PowerPC/memcmp-mergeexpand.ll b/llvm/test/CodeGen/PowerPC/memcmp-mergeexpand.ll
index 83b1cd505db..c87abbfa7be 100644
--- a/llvm/test/CodeGen/PowerPC/memcmp-mergeexpand.ll
+++ b/llvm/test/CodeGen/PowerPC/memcmp-mergeexpand.ll
@@ -7,12 +7,22 @@
define zeroext i1 @opeq1(
; PPC64LE-LABEL: opeq1:
-; PPC64LE: # %bb.0: # %opeq1.exit
-; PPC64LE-NEXT: ld 3, 0(3)
-; PPC64LE-NEXT: ld 4, 0(4)
-; PPC64LE-NEXT: xor 3, 3, 4
-; PPC64LE-NEXT: cntlzd 3, 3
-; PPC64LE-NEXT: rldicl 3, 3, 58, 63
+; PPC64LE: # %bb.0: # %entry
+; PPC64LE-NEXT: lwz 5, 0(3)
+; PPC64LE-NEXT: lwz 6, 0(4)
+; PPC64LE-NEXT: cmplw 5, 6
+; PPC64LE-NEXT: bne 0, .LBB0_2
+; PPC64LE-NEXT: # %bb.1: # %land.rhs.i
+; PPC64LE-NEXT: lwz 3, 4(3)
+; PPC64LE-NEXT: lwz 4, 4(4)
+; PPC64LE-NEXT: cmpw 3, 4
+; PPC64LE-NEXT: b .LBB0_3
+; PPC64LE-NEXT: .LBB0_2:
+; PPC64LE-NEXT: crxor 2, 2, 2
+; PPC64LE-NEXT: .LBB0_3: # %opeq1.exit
+; PPC64LE-NEXT: li 3, 0
+; PPC64LE-NEXT: li 4, 1
+; PPC64LE-NEXT: isel 3, 4, 3, 2
; PPC64LE-NEXT: blr
%"struct.std::pair"* nocapture readonly dereferenceable(8) %a,
%"struct.std::pair"* nocapture readonly dereferenceable(8) %b) local_unnamed_addr #0 {
OpenPOWER on IntegriCloud