summaryrefslogtreecommitdiff
path: root/gcc/config/arm/cortex-r4.md
diff options
context:
space:
mode:
authorliuhongt <hongtao.liu@intel.com>2021-05-13 13:08:16 +0800
committerliuhongt <hongtao.liu@intel.com>2021-05-17 20:04:31 +0800
commit45063c0506a00f2673049d46f12a6061dca4692f (patch)
tree5614bce502a55951297d8b9202617fda439ab323 /gcc/config/arm/cortex-r4.md
parent0ca93e302bf496b71bee839b3c121e1f7363fcf0 (diff)
downloadgcc-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