blob: 7cfd02e899da1365b7761c81287ebae4c3200589 [file] [log] [blame]
Chris Lattner5944ba62003-06-28 23:02:20 +00001; RUN: as < %s | opt -raise | 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}