Skip to content

Commit

Permalink
machreg: AArch64 has 64-bit registers, no need to pack
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Osmialowski <[email protected]>
  • Loading branch information
pawosm-arm committed Nov 3, 2018
1 parent 7fa7771 commit 7863ab6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/flang2/flang2exe/aarch64-Linux/machreg.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,13 @@ extern int mr_res_xr[MR_MAX_XREG_RES + 1];

/* Macros for unpacking/packing KR registers.
*/
#define KR_LSH(i) (((i) >> 8) & 0xff)
#define KR_MSH(i) ((i)&0xff)
#define KR_PACK(ms, ls) (((ls) << 8) | (ms))
#define KR_LSH(i) (i)
#define KR_MSH(i) (i)

/* Macro for defining the KR register in which the value of a 64-bit integer
* function is returned.
*/
#define KR_RETVAL KR_PACK(IR_EDX, IR_EAX)
#define KR_RETVAL IR_RETVAL

/* Define MR_UNIQ, the number of unique register classes for the machine.
*/
Expand Down

0 comments on commit 7863ab6

Please sign in to comment.