1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/Transforms/Reassociate/propagate-flags.ll
2019-08-01 23:30:32 +00:00

15 lines
494 B
LLVM

; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; 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
}