New testcase, identified by Vikram, reduced by Brian

llvm-svn: 7582
This commit is contained in:
Chris Lattner 2003-08-04 23:28:44 +00:00
parent 148747e162
commit 732a3883ed
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
; RUN: as < %s | llc -march=x86
target endian = big ; We need the byteswaps for this test!
target pointersize = 64
implementation
long %main(long %s.1, long %e.1, ushort* %foo) {
%tmp.28 = load ushort* %foo
%tmp.39 = cast uint 0 to ushort*
%tmp.42 = sub long %e.1, %s.1
%tmp.441 = setge long %tmp.42, 0
%tmp.54 = getelementptr ushort* %tmp.39, long 0
ret long %s.1
}