X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FX86%2Fshift-one.ll;h=0f80f90c773e07cade3d45726dc1d79c1ea45e65;hb=4e1c4d69e457c1e8892dd86983e71d347aff5553;hp=07449e45a61cdf6194edc190a34136dc3cade093;hpb=ce531a4effd2c43304a47d1fb13b21bf6c47fca7;p=oota-llvm.git diff --git a/test/CodeGen/X86/shift-one.ll b/test/CodeGen/X86/shift-one.ll index 07449e45a61..0f80f90c773 100644 --- a/test/CodeGen/X86/shift-one.ll +++ b/test/CodeGen/X86/shift-one.ll @@ -1,9 +1,10 @@ -; RUN: llvm-as < %s | llc -march=x86 | not grep 'leal' +; RUN: llc < %s -march=x86 | not grep leal -%x = external global int +@x = external global 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* @x ; [#uses=1] + %tmp.1 = shl i32 %tmp.0, 1 ; [#uses=1] + ret i32 %tmp.1 } +