blob: 44d725d9c17fd4cf82e5866faa410fec43d49fe2 [file] [log] [blame]
Chris Lattner0cb34c42005-10-09 05:31:47 +00001; 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
5int %test(int %X) {
6 %Y = and int %X, -2
7 %Z = shr int %Y, ubyte 11
8 ret int %Z
9}