For PR1319:
[oota-llvm.git] / test / Transforms / InstCombine / cast-and-cast.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
2 ; RUN:   not grep bitcast
3
4 bool %test1(uint %val) {
5   %t1 = bitcast uint %val to int 
6   %t2 = and int %t1, 1
7   %t3 = trunc int %t2 to bool
8   ret bool %t3
9 }
10
11 short %test1(uint %val) {
12   %t1 = bitcast uint %val to int 
13   %t2 = and int %t1, 1
14   %t3 = trunc int %t2 to short
15   ret short %t3
16 }