1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s 3 4define i32 @f(i32 %a, i32 %b) { 5; CHECK-LABEL: f: 6; CHECK: # %bb.0: 7; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax 8; CHECK-NEXT: movl {{[0-9]+}}(%esp), %ecx 9; CHECK-NEXT: movl %ecx, %edx 10; CHECK-NEXT: imull %ecx, %edx 11; CHECK-NEXT: imull %eax, %ecx 12; CHECK-NEXT: imull %eax, %eax 13; CHECK-NEXT: addl %edx, %eax 14; CHECK-NEXT: leal (%eax,%ecx,2), %eax 15; CHECK-NEXT: retl 16 %tmp.2 = mul i32 %a, %a 17 %tmp.5 = shl i32 %a, 1 18 %tmp.6 = mul i32 %tmp.5, %b 19 %tmp.10 = mul i32 %b, %b 20 %tmp.7 = add i32 %tmp.10, %tmp.2 21 %tmp.11 = add i32 %tmp.7, %tmp.6 22 ret i32 %tmp.11 23} 24 25