-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[jit] Clean up the handling of the lower/higher parts of long values on 32 bit platforms. #9807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -111,8 +111,6 @@ | |
| #endif | ||
| #define MINI_LS_WORD_OFFSET (MINI_LS_WORD_IDX * 4) | ||
| #define MINI_MS_WORD_OFFSET (MINI_MS_WORD_IDX * 4) | ||
| #define inst_ls_word data.op[MINI_LS_WORD_IDX].const_val | ||
| #define inst_ms_word data.op[MINI_MS_WORD_IDX].const_val | ||
|
|
||
| #define MONO_LVREG_LS(lvreg) ((lvreg) + 1) | ||
| #define MONO_LVREG_MS(lvreg) ((lvreg) + 2) | ||
|
|
@@ -851,6 +849,20 @@ enum { | |
| #define inst_phi_args data.op[1].phi_args | ||
| #define inst_eh_blocks data.op[1].exception_clauses | ||
|
|
||
| /* Return the lower 32 bits of the 64 bit immediate in INS */ | ||
| static inline guint32 | ||
| ins_get_l_low (MonoInst *ins) | ||
| { | ||
| return (guint32)(ins->data.i8const & 0xffffffff); | ||
| } | ||
|
|
||
| /* Return the higher 32 bits of the 64 bit immediate in INS */ | ||
| static inline guint32 | ||
| ins_get_l_high (MonoInst *ins) | ||
| { | ||
| return (guint32)((ins->data.i8const >> 32) & 0xffffffff); | ||
| } | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. inst_ls_word/inst_ms_word respected byte order, this doesn't
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They needed byte order because the i8const field is in a union with the data.op[0]/op[1] fields, this is not needed any more, since we directly read i8const. |
||
| static inline void | ||
| mono_inst_set_src_registers (MonoInst *ins, int *regs) | ||
| { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could use the same macro for 32 bit and 64 bit, right?