blob: 0e3505899f6fb201727c36e68fa55298dffbf86b [file] [log] [blame]
Misha Brukmane78760e2003-09-16 15:29:54 +00001; RUN: llvm-as < %s | opt -raise | llvm-dis | grep -v uint | not grep 4294967295
Chris Lattner87d91382002-10-02 18:32:38 +00002
3%length_code = uninitialized global [256 x ubyte]
4
5ubyte* %test(uint %length) {
6 %d = add uint 4294967295, %length
7 %e = cast uint %d to int
8 %g = cast int %e to ulong
9 %j = cast [256 x ubyte]* %length_code to ulong
10 %l = add ulong %j, %g
11 %m = cast ulong %l to ubyte*
12 ret ubyte* %m
13}