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