Commit 862658eb authored by Michael Beck's avatar Michael Beck
Browse files

Fixed imm13 range inside assertion.

[r27739]
parent c3f8810d
/*
* 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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment