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