https://bugs.llvm.org/show_bug.cgi?id=38949
Bug ID: 38949
Summary: [X86][AVX] vbroadcastf128 not always used
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
https://gcc.godbolt.org/z/twKLg7
Under all but the simplest circumstances we don't lower to vbroadcastf128 when
we could.
__m256 test0(float *a) {
__m256 v = _mm256_broadcast_ps((__m128 const*)a);
return v;
}
test0:
vbroadcastf128 (%rdi), %ymm0 # ymm0 = mem[0,1,0,1]
retq
void test1(float *a) {
__m256 v = _mm256_broadcast_ps((__m128 const*)a);
*((__m256*)a) = v;
}
test1:
vmovups (%rdi), %xmm0
vinsertf128 $1, %xmm0, %ymm0, %ymm0
vmovaps %ymm0, (%rdi)
retq
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs