mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 02:33:53 +00:00
modernize and clean up this test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19347 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
62fd269c14
commit
3b5d631747
@ -13,23 +13,16 @@
|
|||||||
;; This came from %bb1 of sumarrray.ll generated from sumarray.c.
|
;; This came from %bb1 of sumarrray.ll generated from sumarray.c.
|
||||||
|
|
||||||
|
|
||||||
;;;; ******************************************************
|
int %SumArray(int %Num) {
|
||||||
implementation
|
%Num = alloca int
|
||||||
;;;; ******************************************************
|
|
||||||
|
|
||||||
int "SumArray"(int %Num)
|
|
||||||
begin
|
|
||||||
bb0: ;[#uses=3]
|
|
||||||
br label %Top
|
br label %Top
|
||||||
Top:
|
Top:
|
||||||
%Num = alloca int ; <int *> [#uses=2]
|
|
||||||
store int %Num, int * %Num
|
store int %Num, int * %Num
|
||||||
%reg108 = load int * %Num ; <int> [#uses=2]
|
%reg108 = load int * %Num
|
||||||
%cast1006 = cast int %reg108 to uint ; <uint> [#uses=1]
|
%cast1006 = cast int %reg108 to uint
|
||||||
%cond1001 = setle uint %cast1006, 0 ; <bool> [#uses=1]
|
%cond1001 = setle uint %cast1006, 0
|
||||||
br bool %cond1001, label %bb6, label %Top
|
br bool %cond1001, label %bb6, label %Top
|
||||||
|
|
||||||
bb6:
|
bb6:
|
||||||
ret int 42
|
ret int 42
|
||||||
end
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user