1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -reassociate -S | FileCheck %s
4 define double @func(double %a, double %b) {
6 ; CHECK-NEXT: [[TMP1:%.*]] = fmul fast double [[B:%.*]], [[A:%.*]]
7 ; CHECK-NEXT: [[TMP2:%.*]] = fmul fast double [[TMP1]], [[TMP1]]
8 ; CHECK-NEXT: ret double [[TMP2]]
10 %mul1 = fmul fast double %a, %a
11 %mul2 = fmul fast double %b, %b
12 %mul3 = fmul fast double %mul1, %mul2