1 ; Tests to make sure elimination of casts is working correctly
3 ; RUN: if as < %s | opt -instcombine | grep '%c' | grep cast
11 %c1 = cast int %A to uint
12 %c2 = cast uint %c1 to int
16 ulong %test2(ubyte %A) {
17 %c1 = cast ubyte %A to ushort
18 %c2 = cast ushort %c1 to uint
19 %Ret = cast uint %c2 to ulong
23 ulong %test3(ulong %A) { ; This function should just use bitwise AND
24 %c1 = cast ulong %A to ubyte
25 %c2 = cast ubyte %c1 to ulong