Chris Lattner | 0cb34c4 | 2005-10-09 05:31:47 +0000 | [diff] [blame^] | 1 | ; This was erroneously being turned into an rlwinm instruction. |
2 | ; The sign bit does matter in this case. | ||||
3 | |||||
4 | ; RUN: llvm-as < %s | llc -march=ppc32 | grep srawi | ||||
5 | int %test(int %X) { | ||||
6 | %Y = and int %X, -2 | ||||
7 | %Z = shr int %Y, ubyte 11 | ||||
8 | ret int %Z | ||||
9 | } |