From: Uros Bizjak Date: Tue, 21 Jul 2020 18:22:05 +0000 (+0200) Subject: i386: Fix insn conditions of mfence patterns [PR95750] X-Git-Tag: upstream/12.2.0~14699 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02363d5fdb862a11e6e65ac5b0d1f5ee0c422dc3;p=platform%2Fupstream%2Fgcc.git i386: Fix insn conditions of mfence patterns [PR95750] 2020-07-21 Uroš Bizjak gcc/ChangeLog: PR target/95750 * config/i386/sync.md (mfence_sse2): Enable for TARGET_64BIT and TARGET_SSE2. (mfence_nosse): Always enable. --- diff --git a/gcc/config/i386/sync.md b/gcc/config/i386/sync.md index c682703..c88750d 100644 --- a/gcc/config/i386/sync.md +++ b/gcc/config/i386/sync.md @@ -89,8 +89,7 @@ (define_insn "mfence_sse2" [(set (match_operand:BLK 0) (unspec:BLK [(match_dup 0)] UNSPEC_MFENCE))] - "(TARGET_64BIT || TARGET_SSE2) - && !TARGET_AVOID_MFENCE" + "TARGET_64BIT || TARGET_SSE2" "mfence" [(set_attr "type" "sse") (set_attr "length_address" "0") @@ -101,8 +100,7 @@ [(set (match_operand:BLK 0) (unspec:BLK [(match_dup 0)] UNSPEC_MFENCE)) (clobber (reg:CC FLAGS_REG))] - "!(TARGET_64BIT || TARGET_SSE2) - || TARGET_AVOID_MFENCE" + "" { rtx mem = gen_rtx_MEM (word_mode, stack_pointer_rtx);