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]

Re: Need Help for a new target's assembly code


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



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