Fixed imm13 range inside assertion.
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 14 Jul 2010 11:01:19 +0000 (11:01 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 14 Jul 2010 11:01:19 +0000 (11:01 +0000)
[r27739]

ir/be/sparc/sparc_emitter.c

index 338c1da..892dd8d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2010 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -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(!(attr->immediate_value < -4096 || attr->immediate_value >= 4096));
        be_emit_irprintf("%d", attr->immediate_value);
 }