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-18.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-18.ll')
| -rw-r--r-- | llvm/test/CodeGen/SystemZ/int-cmp-18.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/test/CodeGen/SystemZ/int-cmp-18.ll b/llvm/test/CodeGen/SystemZ/int-cmp-18.ll index f4bc5c0e5ce..547645c1aa6 100644 --- a/llvm/test/CodeGen/SystemZ/int-cmp-18.ll +++ b/llvm/test/CodeGen/SystemZ/int-cmp-18.ll @@ -7,7 +7,7 @@ define double @f1(double %a, double %b, i8 *%ptr) { ; CHECK-LABEL: f1: ; CHECK: cli 0(%r2), 0 -; CHECK-NEXT: je +; CHECK-NEXT: ber %r14 ; CHECK: br %r14 %val = load i8 , i8 *%ptr %ext = zext i8 %val to i64 @@ -20,7 +20,7 @@ define double @f1(double %a, double %b, i8 *%ptr) { define double @f2(double %a, double %b, i8 *%ptr) { ; CHECK-LABEL: f2: ; CHECK: cli 0(%r2), 255 -; CHECK-NEXT: je +; CHECK-NEXT: ber %r14 ; CHECK: br %r14 %val = load i8 , i8 *%ptr %ext = zext i8 %val to i64 @@ -58,7 +58,7 @@ define double @f4(double %a, double %b, i8 *%ptr) { define double @f5(double %a, double %b, i8 *%ptr) { ; CHECK-LABEL: f5: ; CHECK: cli 0(%r2), 0 -; CHECK-NEXT: je +; CHECK-NEXT: ber %r14 ; CHECK: br %r14 %val = load i8 , i8 *%ptr %ext = sext i8 %val to i64 @@ -71,7 +71,7 @@ define double @f5(double %a, double %b, i8 *%ptr) { define double @f6(double %a, double %b, i8 *%ptr) { ; CHECK-LABEL: f6: ; CHECK: cli 0(%r2), 127 -; CHECK-NEXT: je +; CHECK-NEXT: ber %r14 ; CHECK: br %r14 %val = load i8 , i8 *%ptr %ext = sext i8 %val to i64 @@ -97,7 +97,7 @@ define double @f7(double %a, double %b, i8 *%ptr) { define double @f8(double %a, double %b, i8 *%ptr) { ; CHECK-LABEL: f8: ; CHECK: cli 0(%r2), 255 -; CHECK-NEXT: je +; CHECK-NEXT: ber %r14 ; CHECK: br %r14 %val = load i8 , i8 *%ptr %ext = sext i8 %val to i64 @@ -110,7 +110,7 @@ define double @f8(double %a, double %b, i8 *%ptr) { define double @f9(double %a, double %b, i8 *%ptr) { ; CHECK-LABEL: f9: ; CHECK: cli 0(%r2), 128 -; CHECK-NEXT: je +; CHECK-NEXT: ber %r14 ; CHECK: br %r14 %val = load i8 , i8 *%ptr %ext = sext i8 %val to i64 |

