Commit 5900c266 authored by Matthias Braun's avatar Matthias Braun
Browse files

ia32: Fix lea peephole not updating address mode variant

parent a5362ad5
......@@ -977,7 +977,9 @@ exchange:
}
if (!breg && scale == 1) {
/* lea c(, %i, 2), %d -> lea c(%i, %i), %d */
assert(ireg != NULL);
set_irn_n(node, n_ia32_Lea_base, idx);
attr->addr.variant = X86_ADDR_BASE_INDEX;
attr->addr.log_scale = 0;
}
}
......
......@@ -16,7 +16,7 @@
#include <stdint.h>
#include "x86_imm.h"
typedef enum {
typedef enum x86_addr_variant_t {
X86_ADDR_INVALID,
X86_ADDR_REG,
X86_ADDR_JUST_IMM,
......
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