summaryrefslogtreecommitdiffhomepage
path: root/ir/be
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2019-08-09 20:20:52 +0200
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2019-08-09 20:23:59 +0200
commit61632845739b34924e8b9e128162899c252df7e6 (patch)
tree19b7f1ab0341cf638ea9e176ee68ed62f6241013 /ir/be
parent99d16d19d22ae3455bfbe7872ed1518b4c1191d7 (diff)
Set immediate kind for ia32_FldCW
This fixes x86code/float2int.c.
Diffstat (limited to 'ir/be')
-rw-r--r--ir/be/ia32/ia32_fpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ir/be/ia32/ia32_fpu.c b/ir/be/ia32/ia32_fpu.c
index 799c99f..84d207b 100644
--- a/ir/be/ia32/ia32_fpu.c
+++ b/ir/be/ia32/ia32_fpu.c
@@ -101,6 +101,7 @@ static ir_node *create_fpu_mode_reload(void *const env, ir_node *const state, ir
create_ent(&fpcw_truncate, 0x37F, "_fpcw_truncate");
ia32_attr_t *const attr = get_ia32_attr(reload);
attr->addr.immediate.entity = rounding_mode;
+ attr->addr.immediate.kind = X86_IMM_ADDR;
attr->addr.variant = X86_ADDR_JUST_IMM;
} else {
ir_node *mem;