summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Reassociate/fp-expr.ll
blob: ee927069812432360f1cf36f9d043952bbaff774 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; RUN: opt -S -reassociate < %s | FileCheck %s

define void @test1() {
; CHECK-LABEL: @test1
; CHECK: call
; CHECK: fsub
; CHECK: fadd
  %tmp = tail call <4 x float> @blam()
  %tmp23 = fsub fast <4 x float> undef, %tmp
  %tmp24 = fadd fast <4 x float> %tmp23, undef
  tail call void @wombat(<4 x float> %tmp24)
  ret void
}

; Function Attrs: optsize
declare <4 x float> @blam()

; Function Attrs: optsize
declare void @wombat(<4 x float>)

OpenPOWER on IntegriCloud