[x86] eliminate unnecessary shuffling/moves with unary scalar math ops (PR21507)
[oota-llvm.git] / test / CodeGen / X86 / shift-codegen.ll
index 88b86100794ac744a15ea6f34b93d35122fd24d8..7d52bdeb9e3ab547db6e9d0a78af8f9958a565a4 100644 (file)
@@ -15,9 +15,9 @@ define void @fn1() {
 ; CHECK-NOT: lea
 ; CHECK: ret
 
-  %tmp = load i32* @Y             ; <i32> [#uses=1]
+  %tmp = load i32, i32* @Y             ; <i32> [#uses=1]
   %tmp1 = shl i32 %tmp, 3         ; <i32> [#uses=1]
-  %tmp2 = load i32* @X            ; <i32> [#uses=1]
+  %tmp2 = load i32, i32* @X            ; <i32> [#uses=1]
   %tmp3 = or i32 %tmp1, %tmp2             ; <i32> [#uses=1]
   store i32 %tmp3, i32* @X
   ret void