Force the interpreter for this testcase
[oota-llvm.git] / test / Transforms / LevelRaise / 2002-05-23-MissedRaise.ll
1 ; RUN: if as < %s | opt -raise | dis | grep '= cast' | grep \*
2 ; RUN: then exit 1
3 ; RUN: else exit 0
4 ; RUN: fi
5
6 %FILE = type { int, ubyte*, ubyte*, ubyte, ubyte, uint, uint, uint }
7
8 uint %addfile(%FILE* %f) {
9         %cast255 = cast %FILE* %f to sbyte*
10
11         ; Addreses a ubyte member in memory...
12         %reg2421 = getelementptr sbyte* %cast255, long 24
13
14         ; Loads the ubyte
15         %reg130 = load sbyte* %reg2421
16
17         ; Error, cast cannot convert the source operand to ubyte because then
18         ; the sign extension would not be performed.  Need to insert a cast.
19         ;
20         %cast250 = cast sbyte %reg130 to uint  ; This is a sign extension instruction
21         ret uint %cast250
22 }