llvm-6502/test/ExecutionEngine/2003-08-21-EnvironmentTest.ll
Chris Lattner 11a7fd1926 Simplify test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8025 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-21 21:33:19 +00:00

24 lines
504 B
LLVM

;
; Regression Test: EnvironmentTest.ll
;
; Description:
; This is a regression test that verifies that the JIT passes the
; environment to the main() function.
;
target endian = little
target pointersize = 32
implementation
declare uint %strlen(sbyte*)
int %main(int %argc.1, sbyte** %argv.1, sbyte** %envp.1) {
%tmp.2 = load sbyte** %envp.1 ; <sbyte*> [#uses=2]
%tmp.3 = call uint %strlen( sbyte* %tmp.2 ) ; <uint> [#uses=1]
%T = seteq uint %tmp.3, 0
%R = cast bool %T to int
ret int %R
}