Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
c87733a5
Commit
c87733a5
authored
May 25, 2015
by
Christoph Mallon
Browse files
sparc: Handle the asm operand modifiers 'f' and 'm'.
parent
8b055230
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/sparc/sparc_emitter.c
View file @
c87733a5
...
...
@@ -710,7 +710,17 @@ static void emit_be_IncSP(const ir_node *irn)
static
void
emit_sparc_asm_operand
(
ir_node
const
*
const
node
,
char
const
modifier
,
unsigned
const
pos
)
{
if
(
modifier
!=
'\0'
)
{
bool
address_only
=
false
;
switch
(
modifier
)
{
case
'\0'
:
break
;
case
'f'
:
case
'm'
:
address_only
=
true
;
break
;
default:
be_errorf
(
node
,
"asm contains unknown modifier '%c'"
,
modifier
);
return
;
}
...
...
@@ -731,9 +741,11 @@ static void emit_sparc_asm_operand(ir_node const *const node, char const modifie
return
;
case
ASM_OPERAND_MEMORY
:
be_emit_char
(
'['
);
if
(
!
address_only
)
be_emit_char
(
'['
);
sparc_emit_register
(
arch_get_irn_register_in
(
node
,
op
->
pos
));
be_emit_char
(
']'
);
if
(
!
address_only
)
be_emit_char
(
']'
);
return
;
}
panic
(
"invalid asm operand kind"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment