mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-16 08:29:08 +00:00
Simplify test
llvm-svn: 8025
This commit is contained in:
parent
d9a212abca
commit
a6baac4966
@ -8,27 +8,16 @@
|
|||||||
|
|
||||||
target endian = little
|
target endian = little
|
||||||
target pointersize = 32
|
target pointersize = 32
|
||||||
%struct..TorRec = type { int, void ()* }
|
|
||||||
|
|
||||||
implementation ; Functions:
|
implementation
|
||||||
|
|
||||||
declare uint %strlen(sbyte*)
|
declare uint %strlen(sbyte*)
|
||||||
|
|
||||||
declare void %exit(int)
|
|
||||||
|
|
||||||
internal void %__main() {
|
|
||||||
entry: ; No predecessors!
|
|
||||||
ret void
|
|
||||||
}
|
|
||||||
|
|
||||||
int %main(int %argc.1, sbyte** %argv.1, sbyte** %envp.1) {
|
int %main(int %argc.1, sbyte** %argv.1, sbyte** %envp.1) {
|
||||||
entry: ; No predecessors!
|
|
||||||
call void %__main( )
|
|
||||||
%tmp.2 = load sbyte** %envp.1 ; <sbyte*> [#uses=2]
|
%tmp.2 = load sbyte** %envp.1 ; <sbyte*> [#uses=2]
|
||||||
%tmp.3 = call uint %strlen( sbyte* %tmp.2 ) ; <uint> [#uses=1]
|
%tmp.3 = call uint %strlen( sbyte* %tmp.2 ) ; <uint> [#uses=1]
|
||||||
%tmp.0 = call int %write( int 1, sbyte* %tmp.2, uint %tmp.3 ) ; <int> [#uses=0]
|
%T = seteq uint %tmp.3, 0
|
||||||
call void %exit( int 0 )
|
%R = cast bool %T to int
|
||||||
ret int 0
|
ret int %R
|
||||||
}
|
}
|
||||||
|
|
||||||
declare int %write(int, sbyte*, uint)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user