summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/SystemZ/strcmp-01.ll
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2016-04-07 16:11:44 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2016-04-07 16:11:44 +0000
commit2eb027d21f882e03f0658cddbdfee31efbf08663 (patch)
treedf88bad9a10f8b4870b77b2a2089a4a807962979 /llvm/test/CodeGen/SystemZ/strcmp-01.ll
parent14e351a553ea84d864174793a0a58b7ecda36c5d (diff)
downloadbcm5719-llvm-2eb027d21f882e03f0658cddbdfee31efbf08663.tar.gz
bcm5719-llvm-2eb027d21f882e03f0658cddbdfee31efbf08663.zip
[SystemZ] Implement conditional returns
Return is now considered a predicable instruction, and is converted to a newly-added CondReturn (which maps to BCR to %r14) instruction by the if conversion pass. Also, fused compare-and-branch transform knows about conditional returns, emitting the proper fused instructions for them. This transform triggers on a *lot* of tests, hence the huge diffstat. The changes are mostly jX to br %r14 -> bXr %r14. Author: koriakin Differential Revision: http://reviews.llvm.org/D17339 llvm-svn: 265689
Diffstat (limited to 'llvm/test/CodeGen/SystemZ/strcmp-01.ll')
-rw-r--r--llvm/test/CodeGen/SystemZ/strcmp-01.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/SystemZ/strcmp-01.ll b/llvm/test/CodeGen/SystemZ/strcmp-01.ll
index 122c160baba..a30663a13f1 100644
--- a/llvm/test/CodeGen/SystemZ/strcmp-01.ll
+++ b/llvm/test/CodeGen/SystemZ/strcmp-01.ll
@@ -28,7 +28,7 @@ define void @f2(i8 *%src1, i8 *%src2, i32 *%dest) {
; CHECK: clst %r2, %r3
; CHECK-NEXT: jo [[LABEL]]
; CHECK-NEXT: BB#{{[0-9]+}}
-; CHECK-NEXT: je {{\.L.*}}
+; CHECK-NEXT: ber %r14
; CHECK: br %r14
%res = call i32 @strcmp(i8 *%src1, i8 *%src2)
%cmp = icmp eq i32 %res, 0
@@ -54,7 +54,7 @@ define i32 @f3(i8 *%src1, i8 *%src2, i32 *%dest) {
; CHECK-NEXT: ipm [[REG:%r[0-5]]]
; CHECK: srl [[REG]], 28
; CHECK: rll %r2, [[REG]], 31
-; CHECK: jl {{\.L*}}
+; CHECK: blr %r14
; CHECK: br %r14
entry:
%res = call i32 @strcmp(i8 *%src1, i8 *%src2)
OpenPOWER on IntegriCloud