blob: 6b5023fee3eadf6e166d97fefb8285a2f3d09898 [file] [log] [blame]
Nate Begemand44d3d52006-02-17 21:22:08 +00001; This should turn into a single extsh
Dan Gohman28beeea2007-08-15 13:36:28 +00002; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep extsh | count 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}