1 ; Tests to make sure elimination of casts is working correctly
2 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | notcast
4 target pointersize = 32
8 sbyte* %test1(sbyte* %t) {
9 %tmpc = cast sbyte* %t to uint
10 %tmpa = add uint %tmpc, 32
11 %tv = cast uint %tmpa to sbyte*
15 bool %test2(sbyte* %a, sbyte* %b) {
16 %tmpa = cast sbyte* %a to uint
17 %tmpb = cast sbyte* %b to uint
18 %r = seteq uint %tmpa, %tmpb