Bruno Cardoso Lopes | ef8d699 | 2011-08-11 21:50:44 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s |
| 2 | |
| 3 | ; CHECK-NOT: vunpck |
| 4 | ; CHECK: vinsertf128 $1 |
| 5 | define <8 x float> @A(<8 x float> %a) nounwind uwtable readnone ssp { |
| 6 | entry: |
| 7 | %shuffle = shufflevector <8 x float> %a, <8 x float> undef, <8 x i32> <i32 8, i32 8, i32 8, i32 8, i32 0, i32 1, i32 2, i32 3> |
| 8 | ret <8 x float> %shuffle |
| 9 | } |
| 10 | |
| 11 | ; CHECK-NOT: vunpck |
| 12 | ; CHECK: vinsertf128 $1 |
| 13 | define <4 x double> @B(<4 x double> %a) nounwind uwtable readnone ssp { |
| 14 | entry: |
| 15 | %shuffle = shufflevector <4 x double> %a, <4 x double> undef, <4 x i32> <i32 4, i32 4, i32 0, i32 1> |
| 16 | ret <4 x double> %shuffle |
| 17 | } |
| 18 | |