Xamarin Public Jenkins (auto-signing) 8625704ad8 Imported Upstream version 5.18.0.179
Former-commit-id: 67aa10e65b237e1c4537630979ee99ebe1374215
2018-10-25 08:34:57 +00:00

14 lines
406 B
LLVM

; RUN: opt < %s -reassociate -S | FileCheck %s
define double @func(double %a, double %b) {
; CHECK-LABEL: @func(
; CHECK-NEXT: [[TMP1:%.*]] = fmul fast double %b, %a
; CHECK-NEXT: [[TMP2:%.*]] = fmul fast double [[TMP1]], [[TMP1]]
; CHECK-NEXT: ret double [[TMP2]]
;
%mul1 = fmul fast double %a, %a
%mul2 = fmul fast double %b, %b
%mul3 = fmul fast double %mul1, %mul2
ret double %mul3
}