projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c176618
)
Correct the ir_relation used for implicit comparisons with 0.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 11 Apr 2012 08:02:33 +0000
(10:02 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 11 Apr 2012 08:02:33 +0000
(10:02 +0200)
For floats checking for unordered is necessary.
ast2firm.c
patch
|
blob
|
history
diff --git
a/ast2firm.c
b/ast2firm.c
index
875f1d9
..
9fbf6d5
100644
(file)
--- a/
ast2firm.c
+++ b/
ast2firm.c
@@
-1112,7
+1112,7
@@
static ir_node *create_conv(dbg_info *dbgi, ir_node *value, ir_mode *dest_mode)
if (dest_mode == mode_b) {
ir_node *zero = new_Const(get_mode_null(value_mode));
- ir_node *cmp = new_d_Cmp(dbgi, value, zero, ir_relation_less_greater);
+ ir_node *cmp = new_d_Cmp(dbgi, value, zero, ir_relation_
unordered_
less_greater);
return cmp;
} else if (value_mode == mode_b) {
return create_conv_from_b(dbgi, value, dest_mode);