AVX-512: Fixed masked load / store instruction selection for KNL.
[oota-llvm.git] / test / CodeGen / X86 / shift-one.ll
index a91cbbc50300af0a10be1f173f233f580c7ae3ef..1ff02eb53e934fa56a9efe1debb26b30ee7f10cc 100644 (file)
@@ -1,9 +1,10 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep 'leal'
+; RUN: llc < %s -march=x86 | not grep leal
 
-%x = external global int
+@x = external global i32                ; <i32*> [#uses=1]
 
-int %test() {
-       %tmp.0 = load int* %x
-       %tmp.1 = shl int %tmp.0, ubyte 1
-       ret int %tmp.1
+define i32 @test() {
+        %tmp.0 = load i32, i32* @x           ; <i32> [#uses=1]
+        %tmp.1 = shl i32 %tmp.0, 1              ; <i32> [#uses=1]
+        ret i32 %tmp.1
 }
+