This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
fold_single_bit_test problems with 3.4.1
- From: Dmitry <diwil at spec dot ru>
- To: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Fri, 16 Jul 2004 22:19:30 +0400
- Subject: fold_single_bit_test problems with 3.4.1
Fellows,
Is it possible to avoid single bit test folding during code generation, cause
in my target shift costs lot more than bittest?
for operation:
if (a &4) g();
gcc does:
a >>= 2;
C = a&1
if(c)
g();
Do I have to define something extra to avoid it?
This problem also persits in mips target.
Thanks in advance,
Dmitry