projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4d884db
)
Only warn about Sub with constant in the backend, if the mode is not float.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 28 Aug 2008 19:06:15 +0000
(19:06 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 28 Aug 2008 19:06:15 +0000
(19:06 +0000)
[r21557]
ir/be/ia32/ia32_transform.c
patch
|
blob
|
history
diff --git
a/ir/be/ia32/ia32_transform.c
b/ir/be/ia32/ia32_transform.c
index
76ae7d3
..
547c345
100644
(file)
--- a/
ir/be/ia32/ia32_transform.c
+++ b/
ir/be/ia32/ia32_transform.c
@@
-2223,7
+2223,7
@@
static ir_node *try_create_dest_am(ir_node *node) {
case iro_Sub:
op1 = get_Sub_left(val);
op2 = get_Sub_right(val);
- if
(is_Const(op2
)) {
+ if
(is_Const(op2) && !mode_is_float(mode
)) {
ir_fprintf(stderr, "Optimisation warning: not-normalized sub ,C found\n");
}
new_node = dest_am_binop(val, op1, op2, mem, ptr, mode,