Add checking for the second parameter of altivec conversion builtin to make sure it is compile-time constant int.
This patch and patch r304205 ([PPC] Make altivec conversion function macros.) together fix PR33212: PPC vec_cst useless at -O0.
Paths
| Differential D34092
[PPC] Enhance altivec conversion function macros implementation. ClosedPublic Authored by jtony on Jun 11 2017, 1:44 PM.
Details
Summary Add checking for the second parameter of altivec conversion builtin to make sure it is compile-time constant int. This patch and patch r304205 ([PPC] Make altivec conversion function macros.) together fix PR33212: PPC vec_cst useless at -O0.
Diff Detail
Event Timelinejtony retitled this revision from [PPC] Check the second parameter of altivec conversion function is literal. to [PPC] Enhance altivec conversion function macros implementation..Jun 12 2017, 6:40 AM This revision is now accepted and ready to land.Jun 12 2017, 12:53 PM Closed by commit rL305401: [PPC] Enhance altivec conversion function macros implementation. (authored by jtony). · Explain WhyJun 14 2017, 10:24 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 102568 cfe/trunk/include/clang/Basic/BuiltinsPPC.def
cfe/trunk/test/CodeGen/builtins-ppc-error.c
|