brintos

brintos / llvm-project-archived public Read only

0
0
Text · 669 B · ecd93d7 Raw
24 lines · plain
1; RUN: llc < %s -mtriple=i686-- -mcpu=corei7 -mattr=+avx2 | FileCheck %s2 3declare x86_fastcallcc i64 @barrier()4 5;CHECK-LABEL: bcast_fold:6;CHECK: vmov{{[au]}}ps %xmm{{[0-9]+}}, [[SPILLED:[^\)]+\)]]7;CHECK: barrier8;CHECK: vbroadcastss [[SPILLED]], %ymm09;CHECK: ret10define <8 x float> @bcast_fold( ptr %A) {11BB:12  %A0 = load float, ptr %A13  %tt3 = call x86_fastcallcc i64 @barrier()14  br i1 undef, label %work, label %exit15 16work:17  %A1 = insertelement <8 x float> undef, float %A0, i32 018  %A2 = shufflevector <8 x float> %A1, <8 x float> undef, <8 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0>19  ret <8 x float> %A220 21exit:22  ret <8 x float> undef23}24