1 ; RUN: opt < %s -reassociate -S | FileCheck %s
3 define double @func(double %a, double %b) {
5 ; CHECK-NEXT: [[TMP1:%.*]] = fmul fast double %b, %a
6 ; CHECK-NEXT: [[TMP2:%.*]] = fmul fast double [[TMP1]], [[TMP1]]
7 ; CHECK-NEXT: ret double [[TMP2]]
9 %mul1 = fmul fast double %a, %a
10 %mul2 = fmul fast double %b, %b
11 %mul3 = fmul fast double %mul1, %mul2