]>
git.ipfire.org Git - thirdparty/gcc.git/commit
i386: TEST insn should be merged with ADC/SBB insn [PR122390]
The attached testcase is currently compiled to:
f1:
cmpl %esi, %edi
adcl %esi, %edi
testl %edi, %edi
js .L4
...
TEST insn should be merged with ADC/SBB insn. The patch provides missing
combined insn patterns.
PR target/122390
gcc/ChangeLog:
* config/i386/i386.md (*add<mode>3_carry_2): New insn pattern.
(*add<mode>3_carry_0_cc): Ditto.
(*add<mode>3_carry_0r_cc): Ditto.
(*sub<mode>3_carry_2): Ditto.
(*sub<mode>3_carry_0_cc): Ditto.
(*sub<mode>3_carry_0r_cc): Ditt.
gcc/testsuite/ChangeLog:
* gcc.target/i386/pr122390.c: New test.
* gcc.target/i386/pr122390-1.c: New test.