diff options
| author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2016-04-07 16:11:44 +0000 |
|---|---|---|
| committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2016-04-07 16:11:44 +0000 |
| commit | 2eb027d21f882e03f0658cddbdfee31efbf08663 (patch) | |
| tree | df88bad9a10f8b4870b77b2a2089a4a807962979 /llvm/test/CodeGen/SystemZ/int-cmp-48.ll | |
| parent | 14e351a553ea84d864174793a0a58b7ecda36c5d (diff) | |
| download | bcm5719-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/int-cmp-48.ll')
| -rw-r--r-- | llvm/test/CodeGen/SystemZ/int-cmp-48.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/SystemZ/int-cmp-48.ll b/llvm/test/CodeGen/SystemZ/int-cmp-48.ll index e26694753e7..277423b8cc0 100644 --- a/llvm/test/CodeGen/SystemZ/int-cmp-48.ll +++ b/llvm/test/CodeGen/SystemZ/int-cmp-48.ll @@ -8,7 +8,7 @@ define void @f1(i8 *%src) { ; CHECK-LABEL: f1: ; CHECK: tm 0(%r2), 1 -; CHECK: je {{\.L.*}} +; CHECK: ber %r14 ; CHECK: br %r14 entry: %byte = load i8 , i8 *%src @@ -31,7 +31,7 @@ define void @f2(i8 *%src) { ; CHECK: llc [[REG:%r[0-5]]], 0(%r2) ; CHECK: mvi 0(%r2), 0 ; CHECK: tmll [[REG]], 1 -; CHECK: je {{\.L.*}} +; CHECK: ber %r14 ; CHECK: br %r14 entry: %byte = load i8 , i8 *%src |

