Andrea Di Biagio | 2620b87 | 2014-07-07 23:25:23 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=x86-64 -mcpu=corei7 -debug |
| 2 | |
| 3 | ; REQUIRES: asserts |
| 4 | |
| 5 | ; Test that the dag combiner doesn't assert if we try to replace a sequence of two |
| 6 | ; v4f32 X86ISD::PSHUFD nodes with a single PSHUFD. |
| 7 | |
| 8 | |
| 9 | define <4 x float> @test(<4 x float> %V) { |
| 10 | %1 = shufflevector <4 x float> %V, <4 x float> undef, <4 x i32> <i32 3, i32 0, i32 2, i32 1> |
| 11 | %2 = shufflevector <4 x float> %1, <4 x float> undef, <4 x i32> <i32 3, i32 0, i32 2, i32 1> |
| 12 | ret <4 x float> %2 |
| 13 | } |
| 14 | |