diff options
author | liuhongt <hongtao.liu@intel.com> | 2022-11-28 09:59:47 +0800 |
---|---|---|
committer | liuhongt <hongtao.liu@intel.com> | 2022-12-01 11:31:37 +0800 |
commit | cda29c540037fbcf00a377196050953aab1d3d5b (patch) | |
tree | 91d689982d1f135ae4019c0ca6c8d77dae74d1f7 /gcc/gimple-predicate-analysis.cc | |
parent | eaaf97b6147095cc19f7efdefaf55c8ebe7a94e8 (diff) | |
download | gcc-cda29c540037fbcf00a377196050953aab1d3d5b.zip gcc-cda29c540037fbcf00a377196050953aab1d3d5b.tar.gz gcc-cda29c540037fbcf00a377196050953aab1d3d5b.tar.bz2 |
Fix unrecognizable insn due to illegal immediate_operand (const_int 255) of QImode.
For __builtin_ia32_vec_set_v16qi (a, -1, 2) with
!flag_signed_char. it's transformed to
__builtin_ia32_vec_set_v16qi (_4, 255, 2) in the gimple,
and expanded to (const_int 255) in the rtl. But for immediate_operand,
it expects (const_int 255) to be signed extended to
(const_int -1). The mismatch caused an unrecognizable insn error.
The patch converts (const_int 255) to (const_int -1) in the backend
expander.
gcc/ChangeLog:
PR target/107863
* config/i386/i386-expand.cc (ix86_expand_vec_set_builtin):
Convert op1 to target mode whenever mode mismatch.
gcc/testsuite/ChangeLog:
* gcc.target/i386/pr107863.c: New test.
Diffstat (limited to 'gcc/gimple-predicate-analysis.cc')
0 files changed, 0 insertions, 0 deletions