Is there nice forum about gcc dev

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
blackoil
Member
Member
Posts: 146
Joined: Mon Feb 12, 2007 4:45 am

Is there nice forum about gcc dev

Post by blackoil »

I have few question about .md file design.
Nable
Member
Member
Posts: 453
Joined: Tue Nov 08, 2011 11:35 am

Re: Is there nice forum about gcc dev

Post by Nable »

I think that such projects prefer mailing lists. Quick googling -> http://gcc.gnu.org/lists.html

Information for your topic seems to be starting here: http://gcc.gnu.org/onlinedocs/gccint/Machine-Desc.html
Upd: 2nd or 3rd link led me to a rather nice guide with examples: http://www.cse.iitb.ac.in/grc/intdocs/g ... ng-md.html
blackoil
Member
Member
Posts: 146
Joined: Mon Feb 12, 2007 4:45 am

Re: Is there nice forum about gcc dev

Post by blackoil »

Hi,
I want to load abcd address into reg1, then load the value from [reg1].
but no effect.

Code: Select all

mov reg1,0x1234
store reg1,[abcd]


mov reg1,0x1234
mov reg2, abcd     ; abcd is global var
store reg1, [reg2]

Code: Select all

(set (mem (symbol_ref "abcd") ) (const_int 0x1234))

Code: Select all

(define_expand "movsi_symbol_ref" [(set (match_operand:SI 0 "") (match_operand:SI 1 ""))] ""
{
	rtx symbol;

	if (GET_CODE (operands[0]) == MEM)
		{
		symbol = XEXP(operands[0],0);
		if (GET_CODE (symbol) == SYMBOL_REF)
			XEXP(operands[0],0) = force_reg (SImode, symbol);
		}
	else
		if (GET_CODE (operands[1]) == MEM)
			{
			symbol = XEXP(operands[1],0);
			if (GET_CODE (symbol) == SYMBOL_REF)
				XEXP(operands[1],0) = force_reg (SImode, symbol);
			}
}
)
Post Reply