Need Help for a new target's assembly code

Jim Wilson wilson@specifixinc.com
Thu Dec 11 08:23:00 GMT 2003


Nitin Jain wrote:
> My problem is that why there is a call to "__cmpsi2" while there is no
> such thing in my .md file.

cmpsi2 is a libgcc helper routine.  It comes from libgcc1 which is 
usually implemented by target dependent assembler code, if needed.

However, you obviously want your compare opcode instead of a libcall. 
You should debug the cc1 executable to figure out what the problem is. 
There are a number of strategies here.  You could set a breakpoint in 
expand_expr, and then step through it to see what RTL is generated.  You 
could put a breakpoint in make_insn_raw conditional on the insn number 
of the libcall, and then go up stack frames to try to figure out why you 
got there.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list