1 ; RUN: opt < %s -nary-reassociate -S | FileCheck %s
3 target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64"
8 define void @bar(i32 %a, i32 %b, i32 %c) {
10 ; CHECK: [[BASE:%[a-zA-Z0-9]+]] = mul i32 %a, %c
11 call void @foo(i32 %1)
14 ; CHECK: [[RESULT:%[a-zA-Z0-9]+]] = mul i32 [[BASE]], %b
15 call void @foo(i32 %3)
16 ; CHECK-NEXT: call void @foo(i32 [[RESULT]])