diff options
author | liuhongt <hongtao.liu@intel.com> | 2021-05-13 13:08:16 +0800 |
---|---|---|
committer | liuhongt <hongtao.liu@intel.com> | 2021-05-17 20:04:31 +0800 |
commit | 45063c0506a00f2673049d46f12a6061dca4692f (patch) | |
tree | 5614bce502a55951297d8b9202617fda439ab323 /gcc/config/arm/cortex-r4.md | |
parent | 0ca93e302bf496b71bee839b3c121e1f7363fcf0 (diff) | |
download | gcc-45063c0506a00f2673049d46f12a6061dca4692f.tar.gz |
Fix ICE [PR target/100549]
When arg0 is same as arg1 in __builtin_ia32_pcmpgtw,
gimple_build (&stmts, GT_EXPR, cmp_type, arg0, arg1) will simplify the
comparison to vector constant 0, no stmts is generated, which causes
ICE in gsi_insert_before (gsi, stmts, GSI_SAME_STMT). So use
gsi_insert_seq_before instead which will handle NULL seq.
gcc/ChangeLog:
PR target/100549
* config/i386/i386.c (ix86_gimple_fold_builtin): Use
gsi_insert_seq_before instead.
gcc/testsuite/ChangeLog:
PR target/100549
* gcc.target/i386/pr100549.c: New test.
Diffstat (limited to 'gcc/config/arm/cortex-r4.md')
0 files changed, 0 insertions, 0 deletions