aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
authorliuhongt <hongtao.liu@intel.com>2022-01-04 09:57:23 +0800
committerliuhongt <hongtao.liu@intel.com>2022-01-04 11:49:58 +0800
commit05da96886efa3ccdcc0e4e337ecd01b2827db213 (patch)
tree45e71a03559dfb2dc26295e24b11536d7d418f3d /gcc/config/i386
parentd4b710a31dc854970ab501f2d3bad7d69fe7f083 (diff)
downloadgcc-05da96886efa3ccdcc0e4e337ecd01b2827db213.zip
gcc-05da96886efa3ccdcc0e4e337ecd01b2827db213.tar.gz
gcc-05da96886efa3ccdcc0e4e337ecd01b2827db213.tar.bz2
Force_reg operand 1.
Avoid ICE of move pattern from memory to memory. gcc/ChangeLog: PR target/103895 * config/i386/sse.md (*bit_and_float_vector_all_ones): Force_reg operand 1 to avoid ICE. gcc/testsuite/ChangeLog: * gcc.target/i386/pr103895.c: New test.
Diffstat (limited to 'gcc/config/i386')
-rw-r--r--gcc/config/i386/sse.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md
index 033b60d..fa1d56a 100644
--- a/gcc/config/i386/sse.md
+++ b/gcc/config/i386/sse.md
@@ -4750,7 +4750,8 @@
"TARGET_SSE && ix86_pre_reload_split ()"
"#"
"&& 1"
- [(set (match_dup 0) (match_dup 1))])
+ [(set (match_dup 0) (match_dup 1))]
+ "operands[1] = force_reg (<MODE>mode, operands[1]);")
(define_expand "copysign<mode>3"
[(set (match_dup 4)