(abs:SDWIM
(match_operand:SDWIM 1 "general_operand")))
(clobber (reg:CC FLAGS_REG))])]
- "TARGET_CMOVE"
+ "TARGET_CMOVE
+ && (<MODE>mode != QImode || !TARGET_PARTIAL_REG_STALL)"
{
if (TARGET_EXPAND_ABS)
{
(match_operand:SWI 1 "general_operand")))
(clobber (reg:CC FLAGS_REG))]
"TARGET_CMOVE
+ && (<MODE>mode != QImode || !TARGET_PARTIAL_REG_STALL)
&& ix86_pre_reload_split ()"
"#"
"&& 1"
(match_operand:SDWIM 1 "register_operand")
(match_operand:SDWIM 2 "general_operand")))
(clobber (reg:CC FLAGS_REG))])]
- "TARGET_CMOVE")
+ "TARGET_CMOVE
+ && (<MODE>mode != QImode || !TARGET_PARTIAL_REG_STALL)")
(define_insn_and_split "*<code><dwi>3_doubleword"
[(set (match_operand:<DWI> 0 "register_operand")
(match_operand:SWI 2 "general_operand")))
(clobber (reg:CC FLAGS_REG))]
"TARGET_CMOVE
+ && (<MODE>mode != QImode || !TARGET_PARTIAL_REG_STALL)
&& ix86_pre_reload_split ()"
"#"
"&& 1"
--- /dev/null
+/* PR target/98079 */
+/* { dg-do compile { target ia32 } } */
+/* { dg-options "-O2 -march=pentium3" } */
+
+typedef __UINT8_TYPE__ uint8_t;
+
+uint8_t foo (uint8_t x)
+{
+ if (x & 0x80)
+ x = -x;
+
+ return x;
+}