This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Help with expanding compare
- From: Revital1 Eres <ERES at il dot ibm dot com>
- To: gcc at gcc dot gnu dot org
- Cc: bonzini at gnu dot org
- Date: Tue, 25 May 2010 13:13:10 +0300
- Subject: Help with expanding compare
Hello,
I am using current mainline to compile a testcase which contains a loop.
The target I'm working on supports cmpsi pattern.
While expanding the loop condition I get that do_compare_rtx_and_jump ()
and
do_jump_by_parts_greater_rtx () call each other repeatedly.
The test I'm compiling passes OK when using GCC 4.4. Looking into the
difference between the two versions that might caused this problem;
I see that in GCC4.4 can_compare_p () asks if the target supports
cmp_optab. while GCC4.6 does not ask for this opcode and thus IIUC causes
the later call to do_jump_by_parts_greater_rtx ().
I appreciate any help with this problem.
Thanks,
Revital