This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]