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

Correct error in bemit_ldtls(): the register index must be mapped to the machine index.

[r26652]
parent 72bd9213
......@@ -3081,7 +3081,7 @@ static void bemit_ldtls(const ir_node *node)
bemit8(0xA1); // movl 0, %eax
} else {
bemit8(0x8B); // movl 0, %reg
bemit8(MOD_IND | ENC_REG(out->index) | ENC_RM(0x05));
bemit8(MOD_IND | ENC_REG(reg_gp_map[out->index]) | ENC_RM(0x05));
}
bemit32(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