Testcase for stuff instcombine should do eventually
[oota-llvm.git] / test / Transforms / InstCombine / cast-set.ll
1 ; RUN: if as < %s | opt -instcombine | dis | grep cast
2 ; RUN: then exit 1
3 ; RUN: else exit 0
4 ; RUN: fi
5
6 bool "test1"(int %X) {
7         %A = cast int %X to uint
8         %c = setne uint %A, 0        ; Convert to setne int %X, 0
9         ret bool %c
10 }
11
12 bool "test2"(int %X, int %Y) {
13         %A = cast int %X to uint
14         %B = cast int %Y to uint
15         %c = setne uint %A, %B       ; Convert to setne int %X, %Y
16         ret bool %c
17 }
18