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