Commit cb734a35 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

arm: Remove unnecessary special case for 0.

The case for <= 255 just below includes 0 and gives the same result.
parent 1fb4f70a
......@@ -306,11 +306,6 @@ static bool try_encode_as_immediate(const ir_node *node, arm_immediate_t *res)
uint32_t val = get_Const_long(node);
if (val == 0) {
res->imm_8 = 0;
res->rot = 0;
return true;
}
if (val <= 0xff) {
res->imm_8 = val;
res->rot = 0;
......
Supports Markdown
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