diff options
author | Zarko Todorovski <zarko@ca.ibm.com> | 2023-07-11 10:53:41 -0400 |
---|---|---|
committer | Zarko Todorovski <zarko@ca.ibm.com> | 2023-07-11 11:52:07 -0400 |
commit | 14742f2a689c825adebc54cbade9c89fbe426da8 (patch) | |
tree | b421f2d57a7d199ed9518e10529612d49e59c237 /clang/lib/Lex/ModuleMap.cpp | |
parent | 5f8e6f0cd1acd936fd26453cdc46ab63eb0764cb (diff) | |
download | llvm-14742f2a689c825adebc54cbade9c89fbe426da8.zip llvm-14742f2a689c825adebc54cbade9c89fbe426da8.tar.gz llvm-14742f2a689c825adebc54cbade9c89fbe426da8.tar.bz2 |
[PowerPC] Truncate exponent parameter for vec_cts,vec_ctf
On PowerPC, the vec_ct* builtin function take the form of eg. d=vec_cts(a,b)
LLVM (llc) will crash when a user specifies a number out of the allowed range
(0-31) for b.This patch truncates b so that we avoid the backend crash in some cases.
Further documentation for the builtins can be found here:
https://www.ibm.com/docs/en/xl-c-and-cpp-linux/16.1.0?topic=functions-vec-ctf
https://www.ibm.com/docs/en/xl-c-and-cpp-linux/16.1.0?topic=functions-vec-cts
Reviewed By: nemanjai, #powerpc
Differential Revision: https://reviews.llvm.org/D106409
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions