diff options
author | Peter Bergner <bergner@linux.ibm.com> | 2021-07-07 11:39:34 -0500 |
---|---|---|
committer | Peter Bergner <bergner@linux.ibm.com> | 2021-07-07 11:45:49 -0500 |
commit | 6278065af07634278ba30029d92a82b089969baa (patch) | |
tree | f8eaf355e12f39c01e5629504cc56760bc50e5c5 /gcc | |
parent | a5b5c7c2840ebb0aaa0d0f1e090fb2fc6942196d (diff) | |
download | gcc-6278065af07634278ba30029d92a82b089969baa.zip gcc-6278065af07634278ba30029d92a82b089969baa.tar.gz gcc-6278065af07634278ba30029d92a82b089969baa.tar.bz2 |
rs6000: Harden mma_init_builtins
The previous MMA patch added some fragile code to initialize its new
built-ins. This patch hardens the initialization.
2021-07-07 Peter Bergner <bergner@linux.ibm.com>
gcc/
* config/rs6000/rs6000-call.c (mma_init_builtins): Use VSX_BUILTIN_LXVP
and VSX_BUILTIN_STXVP.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/rs6000/rs6000-call.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/rs6000/rs6000-call.c b/gcc/config/rs6000/rs6000-call.c index 6115e3b..904e104 100644 --- a/gcc/config/rs6000/rs6000-call.c +++ b/gcc/config/rs6000/rs6000-call.c @@ -14293,7 +14293,8 @@ mma_init_builtins (void) /* Some MMA built-ins that are expanded into gimple are converted into internal MMA built-ins that are expanded into rtl. The internal built-in follows immediately after this built-in. */ - if (d[1].icode != CODE_FOR_nothing) + if (d->code != VSX_BUILTIN_LXVP + && d->code != VSX_BUILTIN_STXVP) { op[nopnds++] = void_type_node; icode = d[1].icode; |