1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/test/CodeGen/PowerPC/no-pref-jumps.ll
Nemanja Ivanovic e023b2c5fa [PowerPC] Reverting sequence of patches for elimination of comparison instructions
In the past while, I've committed a number of patches in the PowerPC back end
aimed at eliminating comparison instructions. However, this causes some failures
in proprietary source and these issues are not observed in SPEC or any open
source packages I've been able to run.
As a result, I'm pulling the entire series and will refactor it to:
- Have a single entry point for easy control
- Have fine-grained control over which patterns we transform

A side-effect of this is that test cases for these patches (and modified by
them) are XFAIL-ed. This is a temporary measure as it is counter-productive
to remove/modify these test cases and then have to modify them again when
the refactored patch is recommitted.
The failure will be investigated in parallel to the refactoring effort and
the recommit will either have a fix for it or will leave this transformation
off by default until the problem is resolved.

llvm-svn: 314244
2017-09-26 20:42:47 +00:00

42 lines
986 B
LLVM

; XFAIL: *
; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s
target datalayout = "E-m:e-i64:64-n32:64"
target triple = "powerpc64-unknown-linux-gnu"
; Function Attrs: nounwind
define void @foo(i32 signext %a, i32 signext %b) #0 {
entry:
%cmp = icmp sgt i32 %a, 5
%cmp1 = icmp slt i32 %b, 3
%or.cond = or i1 %cmp, %cmp1
br i1 %or.cond, label %if.then, label %if.else
; CHECK-LABEL: @foo
; CHECK: li
; CHECK: li
; CHECK: sub
; CHECK: sub
; CHECK: rldicl
; CHECK: rldicl
; CHECK: or.
; CHECK: blr
if.then: ; preds = %entry
tail call void bitcast (void (...)* @bar to void ()*)() #0
br label %if.end
if.else: ; preds = %entry
tail call void bitcast (void (...)* @car to void ()*)() #0
br label %if.end
if.end: ; preds = %if.else, %if.then
ret void
}
declare void @bar(...)
declare void @car(...)
attributes #0 = { nounwind }