blob: edbdc4a09d019b26410cb11c6e5e2f79386b9a7a [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
Reid Spencer69ccadd2006-12-02 04:23:10 +00004; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep srawi
Chris Lattner0cb34c42005-10-09 05:31:47 +00005int %test(int %X) {
6 %Y = and int %X, -2
7 %Z = shr int %Y, ubyte 11
8 ret int %Z
9}