New tests!
[oota-llvm.git] / test / CodeGen / PowerPC / and_sext.ll
1 ; This test should not contain a sign extend
2 ; RUN: llvm-as < %s | llc -march=ppc32 | not grep extsh 
3
4 int %test(uint %mode.0.i.0) {
5         %tmp.79 = cast uint %mode.0.i.0 to short        ; <sbyte> [#uses=1]
6         %tmp.80 = cast short %tmp.79 to int             ; <int> [#uses=1]
7         %tmp.81 = and int %tmp.80, 24             ; <int> [#uses=1]
8         ret int %tmp.81
9 }