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
c6778d63
Commit
c6778d63
authored
Oct 08, 2010
by
Michael Beck
Browse files
Allow 64bit Leas (2 shifts and 1 add)
[r28085]
parent
d17a517b
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_architecture.c
View file @
c6778d63
...
...
@@ -464,7 +464,8 @@ int ia32_evaluate_insn(insn_kind kind, const ir_mode *mode, ir_tarval *tv)
/* lea is only supported for 32 bit */
if
(
get_mode_size_bits
(
mode
)
<=
32
)
return
arch_costs
->
lea_cost
;
return
0x10000
;
/* in 64bit mode, the Lea cost are at wort 2 shifts and one add */
return
2
*
arch_costs
->
add_cost
+
2
*
(
2
*
arch_costs
->
const_shf_cost
);
case
ADD
:
case
SUB
:
if
(
get_mode_size_bits
(
mode
)
<=
32
)
...
...
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