For PR950:
[oota-llvm.git] / test / Transforms / LevelRaise / 2002-10-02-SignExtensionProblem.ll
1 ; RUN: llvm-as < %s | opt -raise | llvm-dis | grep -v uint | not grep 4294967295
2
3 %length_code = uninitialized global [256 x ubyte]
4
5 ubyte* %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 }