summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/expand-isel.ll
diff options
context:
space:
mode:
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>2017-05-31 08:04:07 +0000
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>2017-05-31 08:04:07 +0000
commitaccab033c9772f3a00e4a647a83bb18bcdd472cb (patch)
tree0f65f6200f8c93f974dc6bf6c08c487ce9668658 /llvm/test/CodeGen/PowerPC/expand-isel.ll
parent62a0f55930d03a7db0e42724db180af517e8dae7 (diff)
downloadbcm5719-llvm-accab033c9772f3a00e4a647a83bb18bcdd472cb.tar.gz
bcm5719-llvm-accab033c9772f3a00e4a647a83bb18bcdd472cb.zip
[PowerPC] Eliminate integer compare instructions - vol. 3
This patch builds upon https://reviews.llvm.org/rL302810 to add handling for the 64-bit SETEQ patterns. Differential Revision: https://reviews.llvm.org/D33369 llvm-svn: 304286
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/expand-isel.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/expand-isel.ll15
1 files changed, 8 insertions, 7 deletions
diff --git a/llvm/test/CodeGen/PowerPC/expand-isel.ll b/llvm/test/CodeGen/PowerPC/expand-isel.ll
index 553cc3c372e..c8707bda8e8 100644
--- a/llvm/test/CodeGen/PowerPC/expand-isel.ll
+++ b/llvm/test/CodeGen/PowerPC/expand-isel.ll
@@ -212,13 +212,14 @@ cleanup:
ret i32 %retval.0
; CHECK-LABEL: @testComplexISEL
-; CHECK: bc 12, 2, [[TRUE:.LBB[0-9]+]]
-; CHECK-NEXT: b [[SUCCESSOR:.LBB[0-9]+]]
-; CHECK-NEXT: [[TRUE]]
-; CHECK-NEXT: addi r3, r12, 0
-; CHECK-NEXT: [[SUCCESSOR]]
-; CHECK-NEXT: clrldi r3, r3, 32
-; CHECK-NEXT: blr
+; CHECK-DAG: [[LI:r[0-9]+]], 1
+; CHECK-DAG: cmplwi [[LD:r[0-9]+]], 0
+; CHECK: beq cr0, [[EQ:.LBB[0-9_]+]]
+; CHECK: blr
+; CHECK: [[EQ]]
+; CHECK: xor [[XOR:r[0-9]+]]
+; CHECK: cntlzd [[CZ:r[0-9]+]], [[XOR]]
+; CHECK: rldicl [[SH:r[0-9]+]], [[CZ]], 58, 63
}
!1 = !{!2, !2, i64 0}
OpenPOWER on IntegriCloud