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
6b2210dd
Commit
6b2210dd
authored
Jul 08, 2014
by
Matthias Braun
Browse files
amd64: abort when spilling float values (instead of producing invalid code)
parent
e4d39a00
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/amd64/amd64_transform.c
View file @
6b2210dd
...
...
@@ -2166,6 +2166,10 @@ ir_node *amd64_new_spill(ir_node *value, ir_node *after)
ir_node
*
frame
=
get_irg_frame
(
irg
);
ir_node
*
mem
=
get_irg_no_mem
(
irg
);
ir_mode
*
mode
=
get_irn_mode
(
value
);
if
(
mode_is_float
(
mode
))
panic
(
"amd64: spilling float values not implemented yet"
);
amd64_binop_addr_attr_t
attr
;
memset
(
&
attr
,
0
,
sizeof
(
attr
));
attr
.
base
.
base
.
op_mode
=
AMD64_OP_ADDR_REG
;
...
...
@@ -2191,6 +2195,9 @@ ir_node *amd64_new_reload(ir_node *value, ir_node *spill, ir_node *before)
ir_node
*
frame
=
get_irg_frame
(
irg
);
ir_mode
*
mode
=
get_irn_mode
(
value
);
if
(
mode_is_float
(
mode
))
panic
(
"amd64: spilling float values not implemented yet"
);
amd64_addr_t
addr
;
memset
(
&
addr
,
0
,
sizeof
(
addr
));
addr
.
base_input
=
0
;
...
...
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