Commit 95de0fce authored by Matthias Braun's avatar Matthias Braun
Browse files

amd64: use x86_mode_E

parent 49b09d28
......@@ -42,8 +42,6 @@ DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;)
pmap *amd64_constants;
ir_mode *amd64_mode_E;
ir_type *amd64_type_E;
ir_mode *amd64_mode_xmm;
static ir_entity *amd64_get_frame_entity(const ir_node *node)
......@@ -783,18 +781,12 @@ static void amd64_init_types(void)
ir_mode *const ptr_mode = new_reference_mode("p64", irma_twos_complement, 64, 64);
set_modeP(ptr_mode);
amd64_mode_E = new_float_mode("E", irma_x86_extended_float, 15, 64,
ir_overflow_indefinite);
amd64_type_E = new_type_primitive(amd64_mode_E);
set_type_size_bytes(amd64_type_E, 16);
set_type_alignment_bytes(amd64_type_E, 16);
/* use an int128 mode for xmm registers for now, so that firm allows us to
* create constants with the xmm mode... */
amd64_mode_xmm = new_int_mode("x86_xmm", irma_twos_complement, 128, 0, 0);
amd64_backend_params.type_long_double = amd64_type_E;
x86_init_x87_type();
amd64_backend_params.type_long_double = x86_type_E;
amd64_backend_params.vararg.va_list_type = amd64_build_va_list_type();
}
......
......@@ -11,11 +11,10 @@
#define FIRM_BE_AMD64_BEARCH_AMD64_T_H
#include "../ia32/x86_cconv.h"
#include "../ia32/x86_x87.h"
extern pmap *amd64_constants; /**< A map of entities that store const tarvals */
extern ir_mode *amd64_mode_E;
extern ir_type *amd64_type_E;
extern ir_mode *amd64_mode_xmm;
extern bool amd64_use_x64_abi;
......
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