]> git.ipfire.org Git - thirdparty/gcc.git/commit
x86: Update *one_cmplqi_ext<mode>_1
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 1 Aug 2025 15:34:49 +0000 (08:34 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 5 Aug 2025 12:54:03 +0000 (05:54 -0700)
commita58d770fa1d17ead3c38417b299cce3f19f392db
treef037a0096feb9c6faad23e7f3b94e02d18b03b67
parent32b1be7eb434addefe203249746dc6bbdc185403
x86: Update *one_cmplqi_ext<mode>_1

After

commit 965564eafb721f8000013a3112f1bba8d8fae32b
Author: Richard Sandiford <richard.sandiford@arm.com>
Date:   Tue Jul 29 15:58:34 2025 +0100

    simplify-rtx: Simplify subregs of logic ops

combine generates

(set (zero_extract:SI (reg/v:SI 101 [ a ])
        (const_int 8 [0x8])
        (const_int 8 [0x8]))
    (not:SI (sign_extract:SI (reg:SI 107 [ b ])
            (const_int 8 [0x8])
            (const_int 8 [0x8]))))

instead of

(set (zero_extract:SI (reg/v:SI 101 [ a ])
        (const_int 8 [0x8])
        (const_int 8 [0x8]))
    (subreg:SI (not:QI (subreg:QI (sign_extract:SI (reg:SI 107 [ b ])
                    (const_int 8 [0x8])
                    (const_int 8 [0x8])) 0)) 0))

Update *one_cmplqi_ext<mode>_1 to support the new pattern.

PR target/121306
* config/i386/i386.md (*one_cmplqi_ext<mode>_1): Updated to
support the new pattern.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
gcc/config/i386/i386.md