mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-30 15:45:26 +00: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-as < %s | llc -march=arm
|
||||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | not grep bx
|
; RUN: llvm-as < %s | llc -march=arm | not grep bx
|
||||||
|
|
||||||
void %test(int %Ptr, ubyte* %L) {
|
define void @test(i32 %Ptr, i8* %L) {
|
||||||
entry:
|
entry:
|
||||||
br label %bb1
|
br label %bb1
|
||||||
|
|
||||||
bb:
|
bb: ; preds = %bb1
|
||||||
%tmp7 = getelementptr ubyte* %L, uint %indvar
|
%gep.upgrd.1 = zext i32 %indvar to i64 ; <i64> [#uses=1]
|
||||||
store ubyte 0, ubyte* %tmp7
|
%tmp7 = getelementptr i8* %L, i64 %gep.upgrd.1 ; <i8*> [#uses=1]
|
||||||
%indvar.next = add uint %indvar, 1
|
store i8 0, i8* %tmp7
|
||||||
|
%indvar.next = add i32 %indvar, 1 ; <i32> [#uses=1]
|
||||||
br label %bb1
|
br label %bb1
|
||||||
|
|
||||||
bb1:
|
bb1: ; preds = %bb, %entry
|
||||||
%indvar = phi uint [ 0, %entry ], [ %indvar.next, %bb ]
|
%indvar = phi i32 [ 0, %entry ], [ %indvar.next, %bb ] ; <i32> [#uses=3]
|
||||||
%i.0 = cast uint %indvar to int
|
%i.0 = bitcast i32 %indvar to i32 ; <i32> [#uses=2]
|
||||||
%Ptr_addr.0 = sub int %Ptr, %i.0
|
%tmp = tail call i32 (...)* @bar( ) ; <i32> [#uses=1]
|
||||||
%tmp12 = seteq int %i.0, %Ptr
|
%tmp2 = add i32 %i.0, %tmp ; <i32> [#uses=1]
|
||||||
%tmp12.not = xor bool %tmp12, true
|
%Ptr_addr.0 = sub i32 %Ptr, %tmp2 ; <i32> [#uses=0]
|
||||||
%bothcond = and bool %tmp12.not, false
|
%tmp12 = icmp eq i32 %i.0, %Ptr ; <i1> [#uses=1]
|
||||||
br bool %bothcond, label %bb, label %bb18
|
%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
|
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 -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) {
|
int %test(int %x) {
|
||||||
%tmp = cast int %x to short
|
%tmp = cast int %x to short
|
||||||
|
Loading…
Reference in New Issue
Block a user