Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 30527
Product:  
Component:  
Status: UNCONFIRMED
Resolution:
Assigned To: Not yet assigned to anyone <unassigned@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: Davin McCall <davmac@davmac.org>
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 30527 depends on: Show dependency tree
Show dependency graph
Bug 30527 blocks:

Additional Comments:






Mark bug as waiting for feedback



    

    

View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: Opened: 2007-01-21 14:14
It seems that I can use "%k0" (rather than just "%0") in an asm template to
force the (register) operand to "long" size (i.e. a value in %al referenced as
%k0 comes out as %eax in the generated assembly).

This doesn't seem to be documented anywhere. I presume there may be other such
character prefixes which have similar functions.

------- Comment #1 From Davin McCall 2007-01-21 14:15 -------
I should add that I'm prepared to send a patch for the documentation if someone
will tell me what the operands are and what they do.

------- Comment #2 From Andrew Pinski 2007-01-21 16:37 -------
Every target have slightly different operand modifiers.  They are usually
"documented" in config/*/*.md or config/*/*.c, but I think it is incorrect to
documented them for real because people will then abuse them.

------- Comment #3 From Davin McCall 2007-01-22 04:17 -------
You've got to be kidding - these things are genuinely useful. What sort of
abuse are you worried about?

In any case, I'd like to know if that is the general consensus among
maintainers. I'm not going to write documentation and submit a patch if it's
not going to be accepted.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug