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