mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Fix test case.
llvm-svn: 35029
This commit is contained in:
parent
94228897e7
commit
511c8f6a24
@ -1,25 +1,30 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | not grep bx
|
||||
; RUN: llvm-as < %s | llc -march=arm
|
||||
; RUN: llvm-as < %s | llc -march=arm | not grep bx
|
||||
|
||||
void %test(int %Ptr, ubyte* %L) {
|
||||
define void @test(i32 %Ptr, i8* %L) {
|
||||
entry:
|
||||
br label %bb1
|
||||
|
||||
bb:
|
||||
%tmp7 = getelementptr ubyte* %L, uint %indvar
|
||||
store ubyte 0, ubyte* %tmp7
|
||||
%indvar.next = add uint %indvar, 1
|
||||
bb: ; preds = %bb1
|
||||
%gep.upgrd.1 = zext i32 %indvar to i64 ; <i64> [#uses=1]
|
||||
%tmp7 = getelementptr i8* %L, i64 %gep.upgrd.1 ; <i8*> [#uses=1]
|
||||
store i8 0, i8* %tmp7
|
||||
%indvar.next = add i32 %indvar, 1 ; <i32> [#uses=1]
|
||||
br label %bb1
|
||||
|
||||
bb1:
|
||||
%indvar = phi uint [ 0, %entry ], [ %indvar.next, %bb ]
|
||||
%i.0 = cast uint %indvar to int
|
||||
%Ptr_addr.0 = sub int %Ptr, %i.0
|
||||
%tmp12 = seteq int %i.0, %Ptr
|
||||
%tmp12.not = xor bool %tmp12, true
|
||||
%bothcond = and bool %tmp12.not, false
|
||||
br bool %bothcond, label %bb, label %bb18
|
||||
bb1: ; preds = %bb, %entry
|
||||
%indvar = phi i32 [ 0, %entry ], [ %indvar.next, %bb ] ; <i32> [#uses=3]
|
||||
%i.0 = bitcast i32 %indvar to i32 ; <i32> [#uses=2]
|
||||
%tmp = tail call i32 (...)* @bar( ) ; <i32> [#uses=1]
|
||||
%tmp2 = add i32 %i.0, %tmp ; <i32> [#uses=1]
|
||||
%Ptr_addr.0 = sub i32 %Ptr, %tmp2 ; <i32> [#uses=0]
|
||||
%tmp12 = icmp eq i32 %i.0, %Ptr ; <i1> [#uses=1]
|
||||
%tmp12.not = xor i1 %tmp12, true ; <i1> [#uses=1]
|
||||
%bothcond = and i1 %tmp12.not, false ; <i1> [#uses=1]
|
||||
br i1 %bothcond, label %bb, label %bb18
|
||||
|
||||
bb18:
|
||||
bb18: ; preds = %bb1
|
||||
ret void
|
||||
}
|
||||
|
||||
declare i32 @bar(...)
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin -mattr=+v6 | grep mov | wc -l | grep 2
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin -mattr=+v6 | grep mov | wc -l | grep 3
|
||||
|
||||
int %test(int %x) {
|
||||
%tmp = cast int %x to short
|
||||
|
Loading…
Reference in New Issue
Block a user