1 ; RUN: llc < %s -mtriple=i686-linux -x86-asm-syntax=intel | FileCheck %s
2 ; RUN: llc < %s -mtriple=x86_64-linux -x86-asm-syntax=intel | FileCheck %s
3 ; RUN: llc < %s -mtriple=x86_64-linux-gnux32 -x86-asm-syntax=intel | FileCheck %s
4 ; RUN: llc < %s -mtriple=x86_64-nacl -x86-asm-syntax=intel | FileCheck %s
6 define i32 @test1(i32 %A, i32 %B) {
9 %tmp4 = add i32 %tmp3, %tmp1
10 ; The above computation of %tmp4 should match a single lea, without using
11 ; actual add instructions.
13 ; CHECK: lea {{[a-z]+}}, [{{[a-z]+}} + 4*{{[a-z]+}} - 5]