X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FX86%2Fshift-one.ll;h=0f80f90c773e07cade3d45726dc1d79c1ea45e65;hb=4e1c4d69e457c1e8892dd86983e71d347aff5553;hp=3108fba0f4dcf2ad4a88aa12173e962ad3f4e1be;hpb=43b40035baca3c0a66d3af538f8d5347fb4ceea6;p=oota-llvm.git diff --git a/test/CodeGen/X86/shift-one.ll b/test/CodeGen/X86/shift-one.ll index 3108fba0f4d..0f80f90c773 100644 --- a/test/CodeGen/X86/shift-one.ll +++ b/test/CodeGen/X86/shift-one.ll @@ -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 ; [#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 } +