Nate Begeman | d44d3d5 | 2006-02-17 21:22:08 +0000 | [diff] [blame^] | 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 | } |