Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
95de0fce
Commit
95de0fce
authored
Jul 25, 2015
by
Matthias Braun
Browse files
amd64: use x86_mode_E
parent
49b09d28
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/amd64/bearch_amd64.c
View file @
95de0fce
...
...
@@ -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
();
}
...
...
ir/be/amd64/bearch_amd64_t.h
View file @
95de0fce
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment