Owen Anderson | 630077e | 2015-11-20 08:16:13 +0000 | [diff] [blame^] | 1 | ; RUN: opt -S -reassociate < %s | FileCheck %s |
| 2 | |
| 3 | define void @test1() { |
| 4 | ; CHECK-LABEL: @test1 |
| 5 | ; CHECK: call |
| 6 | ; CHECK: fsub |
| 7 | ; CHECK: fadd |
| 8 | %tmp = tail call <4 x float> @blam() |
| 9 | %tmp23 = fsub fast <4 x float> undef, %tmp |
| 10 | %tmp24 = fadd fast <4 x float> %tmp23, undef |
| 11 | tail call void @wombat(<4 x float> %tmp24) |
| 12 | ret void |
| 13 | } |
| 14 | |
| 15 | ; Function Attrs: optsize |
| 16 | declare <4 x float> @blam() |
| 17 | |
| 18 | ; Function Attrs: optsize |
| 19 | declare void @wombat(<4 x float>) |
| 20 | |