Remove llvm-upgrade and update tests.
[oota-llvm.git] / test / CodeGen / X86 / lea-2.ll
1 ; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | \
2 ; RUN:   grep {lea      EAX, DWORD PTR \\\[... + 4\\*... - 5\\\]}
3 ; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | \
4 ; RUN:   not grep add
5
6 define i32 @test1(i32 %A, i32 %B) {
7         %tmp1 = shl i32 %A, 2           ; <i32> [#uses=1]
8         %tmp3 = add i32 %B, -5          ; <i32> [#uses=1]
9         %tmp4 = add i32 %tmp3, %tmp1            ; <i32> [#uses=1]
10         ret i32 %tmp4
11 }
12
13