1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/CodeGen/PowerPC/2008-03-26-CoalescerBug.ll
Kit Barton 5fe828ca5e [PPC] Remove Darwin support from POWER backend.
This patch issues an error message if Darwin ABI is attempted with the PPC
backend. It also cleans up existing test cases, either converting the test to
use an alternative triple or removing the test if the coverage is no longer
needed.

Updated Tests
-------------
The majority of test cases were updated to use a different triple that does not
include the Darwin ABI. Many tests were also updated to use FileCheck, in place
of grep.

Deleted Tests
-------------
llvm/test/tools/dsymutil/PowerPC/sibling.test was originally added to test
specific functionality of dsymutil using an object file created with an old
version of llvm-gcc for a Powerbook G4. After a discussion with @JDevlieghere he
suggested removing the test.

llvm/test/CodeGen/PowerPC/combine_loads_from_build_pair.ll was converted from a
PPC test to a SystemZ test, as the behavior is also reproducible there.

All other tests that were deleted were specific to the darwin/ppc ABI and no
longer necessary.

Phabricator Review: https://reviews.llvm.org/D50988

llvm-svn: 340795
2018-08-28 01:18:29 +00:00

31 lines
1.3 KiB
LLVM

; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s
; CHECK: @t
; CHECK: blr
define i32 @t(i64 %byteStart, i32 %activeIndex) nounwind {
entry:
%tmp50 = load i32, i32* null, align 4 ; <i32> [#uses=1]
%tmp5051 = zext i32 %tmp50 to i64 ; <i64> [#uses=3]
%tmp53 = udiv i64 %byteStart, %tmp5051 ; <i64> [#uses=1]
%tmp5354 = trunc i64 %tmp53 to i32 ; <i32> [#uses=1]
%tmp62 = urem i64 %byteStart, %tmp5051 ; <i64> [#uses=1]
%tmp94 = add i32 0, 1 ; <i32> [#uses=1]
%tmp100 = urem i32 %tmp94, 0 ; <i32> [#uses=2]
%tmp108 = add i32 0, %activeIndex ; <i32> [#uses=1]
%tmp110 = sub i32 %tmp108, 0 ; <i32> [#uses=1]
%tmp112 = urem i32 %tmp110, 0 ; <i32> [#uses=2]
%tmp122 = icmp ult i32 %tmp112, %tmp100 ; <i1> [#uses=1]
%iftmp.175.0 = select i1 %tmp122, i32 %tmp112, i32 %tmp100 ; <i32> [#uses=1]
%tmp119 = add i32 %tmp5354, 0 ; <i32> [#uses=1]
%tmp131 = add i32 %tmp119, %iftmp.175.0 ; <i32> [#uses=1]
%tmp131132 = zext i32 %tmp131 to i64 ; <i64> [#uses=1]
%tmp147 = mul i64 %tmp131132, %tmp5051 ; <i64> [#uses=1]
br i1 false, label %bb164, label %bb190
bb164: ; preds = %entry
%tmp171172 = and i64 %tmp62, 4294967295 ; <i64> [#uses=1]
%tmp173 = add i64 %tmp171172, %tmp147 ; <i64> [#uses=0]
ret i32 0
bb190: ; preds = %entry
ret i32 0
}