]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR target/28946 (assembler shifts set the flag ZF, no need to re-test to zero)
authorUros Bizjak <uros@kss-loka.si>
Mon, 18 Sep 2006 10:14:53 +0000 (12:14 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Mon, 18 Sep 2006 10:14:53 +0000 (12:14 +0200)
commita04d76ec03da25b2d6808e3838f0c0079c3109fe
tree4f4dc8cdff2e000fd8cee16661f4c58a3f936fc3
parent223d40e5b1c2c2959676bfe24a99f6097cdecc1e
re PR target/28946 (assembler shifts set the flag ZF, no need to re-test to zero)

PR target/28946
* config/i386/i386.md ("*ashldi3_cconly_rex64", "*ashlsi3_cconly",
"*ashlhi3_cconly", "*ashlqi3_cconly", "*ashrdi3_one_bit_cconly_rex64",
"*ashrdi3_cconly_rex64", "*ashrsi3_one_bit_cconly", "*ashrsi3_cconly",
"*ashrhi3_one_bit_cconly", "*ashrhi3_cconly",
"*ashrqi3_one_bit_cconly", "*ashrqi3_cconly",
"*lshrdi3_cconly_one_bit_rex64", "*lshrdi3_cconly_rex64",
"*lshrsi3_one_bit_cconly", "*lshrsi3_cconly",
"*lshrhi3_one_bit_cconly", "*lshrhi3_cconly",
"*lshrqi2_one_bit_cconly", "*lshrqi2_cconly": New patterns to
implement only CC setting effects of shift instructions.

testsuite/ChangeLog:

PR target/28946
* gcc.target/i386/pr28946.c: New test.

From-SVN: r117022
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr28946.c [new file with mode: 0644]