aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/Reassociate/2006-04-27-ReassociateVector.ll
blob: f783955400269d18c6928708683493fb6101f59b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: opt < %s -reassociate -S | FileCheck %s

define <4 x float> @test1() {
; CHECK-LABEL: test1
; CHECK-NEXT: %tmp1 = fsub <4 x float> zeroinitializer, zeroinitializer
; CHECK-NEXT: %tmp2 = fmul <4 x float> zeroinitializer, %tmp1
; CHECK-NEXT: ret <4 x float> %tmp2

  %tmp1 = fsub <4 x float> zeroinitializer, zeroinitializer
  %tmp2 = fmul <4 x float> zeroinitializer, %tmp1
  ret <4 x float> %tmp2
}