[llvm-bugs] [Bug 35915] New: Merge clang r322246 into 6.0 branch: [X86] Fix vpshrd builtins to require an ICE for their constant argument to match vpshld.
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jan 11 11:52:47 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=35915
Bug ID: 35915
Summary: Merge clang r322246 into 6.0 branch: [X86] Fix vpshrd
builtins to require an ICE for their constant argument
to match vpshld.
Product: libraries
Version: 6.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: craig.topper at gmail.com
CC: llvm-bugs at lists.llvm.org
This commit makes the frontend generate an error for this code because the last
argument should be an integer constant expression
__m512i test_mm512_mask_shrdi_epi64(__m512i __S, __mmask8 __U, __m512i __A,
__m512i __B, unsigned x) {
return _mm512_mask_shrdi_epi64(__S, __U, __A, __B, x);
}
Without this check in the frontend it goes to the backend and throws a fatal
error in the backend during isel. The frontend error is a better user
experience.
The _mm512_mask_shrdi_epi64 was introduced in late December 2017 so doesn't
exist in any releases before 6.0
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180111/668737cb/attachment-0001.html>
More information about the llvm-bugs
mailing list