4 ms·
In this particular case the broadcasting instruction can be replaced with builtin operations, allowing constexpr. https://godbolt.org/z/Td6vG9cqG https://godbo
by leni536 4y ago
In this particular case the broadcasting instruction can be replaced with builtin operations, allowing constexpr.
https://godbolt.org/z/Td6vG9cqG https://godbolt.org/z/Td6vG9cqG
edit: uh, the constant requires some hand adjustment
edit2: fixed version https://godbolt.org/z/4Px5Mbsx4 https://godbolt.org/z/4Px5Mbsx4, and I just don't get this. gcc really just wants to load that constant twice.
- mzs 4y agoAre you sure? I see this twice in the dis on the right: mov eax, 10001 vpbroadcastd ymm1, eax