[PATCH] D30875: [X86] Add checking of the scale argument to scatter/gather builtins
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 12 15:29:05 PDT 2017
craig.topper created this revision.
The only valid values for the scale immediate of scatter/gather builtins are 1, 2, 4, or 8. This patch enforces this in the frontend otherwise we generate invalid instruction encodings in the backend.
https://reviews.llvm.org/D30875
Files:
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/Sema/SemaChecking.cpp
test/Sema/builtins-x86.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30875.91508.patch
Type: text/x-patch
Size: 6640 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170312/850f0b86/attachment.bin>
More information about the llvm-commits
mailing list