blob: 0f4f512a25ed3b233c0e28468a6aca6782f310ee [file] [log] [blame]
Nate Begemand44d3d52006-02-17 21:22:08 +00001; This should turn into a single extsh
Reid Spencer69ccadd2006-12-02 04:23:10 +00002; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep extsh | wc -l | grep 1
Nate Begemand44d3d52006-02-17 21:22:08 +00003int %test(int %X) {
4 %tmp.81 = shl int %X, ubyte 16 ; <int> [#uses=1]
5 %tmp.82 = shr int %tmp.81, ubyte 16 ; <int> [#uses=1]
6 ret int %tmp.82
7}