projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4764ebb
)
DeMorgan to the rescue!
author
Christoph Mallon
<christoph.mallon@gmx.de>
Fri, 16 Jul 2010 10:53:22 +0000
(10:53 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Fri, 16 Jul 2010 10:53:22 +0000
(10:53 +0000)
[r27751]
ir/be/sparc/sparc_emitter.c
patch
|
blob
|
history
diff --git
a/ir/be/sparc/sparc_emitter.c
b/ir/be/sparc/sparc_emitter.c
index
5c553b4
..
2e72bae
100644
(file)
--- a/
ir/be/sparc/sparc_emitter.c
+++ b/
ir/be/sparc/sparc_emitter.c
@@
-132,7
+132,7
@@
static const arch_register_t *get_out_reg(const ir_node *node, int pos)
void sparc_emit_immediate(const ir_node *node)
{
const sparc_attr_t *attr = get_sparc_attr_const(node);
void sparc_emit_immediate(const ir_node *node)
{
const sparc_attr_t *attr = get_sparc_attr_const(node);
- assert(
!(attr->immediate_value < -4096 || attr->immediate_value >= 4096)
);
+ assert(
-4096 <= attr->immediate_value && attr->immediate_value < 4096
);
be_emit_irprintf("%d", attr->immediate_value);
}
be_emit_irprintf("%d", attr->immediate_value);
}