this doesn't pass with CVS HEAD.
[oota-llvm.git] / test / Transforms / InstCombine / cast-and-cast.ll
1 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep bitcast
2
3 ;; This requires Reid to remove the instcombine hack that turns trunc to bool into setne.
4 ; XFAIL: *
5
6
7 bool %test1(uint %val) {
8   %t1 = bitcast uint %val to int 
9   %t2 = and int %t1, 1
10   %t3 = trunc int %t2 to bool
11   ret bool %t3
12 }
13
14 short %test1(uint %val) {
15   %t1 = bitcast uint %val to int 
16   %t2 = and int %t1, 1
17   %t3 = trunc int %t2 to short
18   ret short %t3
19 }