DeMorgan to the rescue!
authorChristoph Mallon <christoph.mallon@gmx.de>
Fri, 16 Jul 2010 10:53:22 +0000 (10:53 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Fri, 16 Jul 2010 10:53:22 +0000 (10:53 +0000)
[r27751]

ir/be/sparc/sparc_emitter.c

index 5c553b4..2e72bae 100644 (file)
@@ -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);
-       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);
 }