1 ; This test checks to make sure that constant exprs fold in some simple situations
3 ; RUN: if as < %s | dis | grep cast
8 %A = global int* cast (sbyte* null to int*) ; Cast null -> fold
9 %B = global int** cast (int** %A to int**) ; Cast to same type -> fold
10 %C = global int cast (long 42 to int) ; Integral casts
11 %D = global int* cast(float* cast (int* %C to float*) to int*) ; cast of cast ptr->ptr
12 %E = global int cast(float* cast (sbyte 5 to float*) to int) ; int -> ptr -> int
14 ; Test folding of binary instrs
15 %F = global int* cast(int add (int 5, int -5) to int*)
16 %G = global int* cast(int sub (int 5, int 5) to int*)