2018-09-28 Uros Bizjak <ubizjak@gmail.com>
- * config/i386/i386.h (CC_REGNO): Remove FPSR_REGS.
+ * config/i386/i386.h (SSE_REGNO): Fix check for FIRST_REX_SSE_REG.
+ (GET_SSE_REGNO): Rename from SSE_REGNO. Update all uses for rename.
+
+2018-09-28 Uros Bizjak <ubizjak@gmail.com>
+
+ * config/i386/i386.h (CC_REGNO): Remove FPSR_REG.
* config/i386/i386.c (ix86_fixed_condition_code_regs): Use
INVALID_REGNUM instead of FPSR_REG.
(ix86_md_asm_adjust): Do not clobber FPSR_REG.
case X86_64_SSEDF_CLASS:
if (mode != BLKmode)
return gen_reg_or_parallel (mode, orig_mode,
- SSE_REGNO (sse_regno));
+ GET_SSE_REGNO (sse_regno));
break;
case X86_64_X87_CLASS:
case X86_64_COMPLEX_X87_CLASS:
&& regclass[1] == X86_64_SSEUP_CLASS
&& mode != BLKmode)
return gen_reg_or_parallel (mode, orig_mode,
- SSE_REGNO (sse_regno));
+ GET_SSE_REGNO (sse_regno));
if (n == 4
&& regclass[0] == X86_64_SSE_CLASS
&& regclass[1] == X86_64_SSEUP_CLASS
&& regclass[3] == X86_64_SSEUP_CLASS
&& mode != BLKmode)
return gen_reg_or_parallel (mode, orig_mode,
- SSE_REGNO (sse_regno));
+ GET_SSE_REGNO (sse_regno));
if (n == 8
&& regclass[0] == X86_64_SSE_CLASS
&& regclass[1] == X86_64_SSEUP_CLASS
&& regclass[7] == X86_64_SSEUP_CLASS
&& mode != BLKmode)
return gen_reg_or_parallel (mode, orig_mode,
- SSE_REGNO (sse_regno));
+ GET_SSE_REGNO (sse_regno));
if (n == 2
&& regclass[0] == X86_64_X87_CLASS
&& regclass[1] == X86_64_X87UP_CLASS)
exp [nexps++]
= gen_rtx_EXPR_LIST (VOIDmode,
gen_rtx_REG (SFmode,
- SSE_REGNO (sse_regno)),
+ GET_SSE_REGNO (sse_regno)),
GEN_INT (i*8));
sse_regno++;
break;
exp [nexps++]
= gen_rtx_EXPR_LIST (VOIDmode,
gen_rtx_REG (DFmode,
- SSE_REGNO (sse_regno)),
+ GET_SSE_REGNO (sse_regno)),
GEN_INT (i*8));
sse_regno++;
break;
exp [nexps++]
= gen_rtx_EXPR_LIST (VOIDmode,
gen_rtx_REG (tmpmode,
- SSE_REGNO (sse_regno)),
+ GET_SSE_REGNO (sse_regno)),
GEN_INT (pos*8));
sse_regno++;
break;
set_mem_alias_set (mem, set);
set_mem_align (mem, GET_MODE_ALIGNMENT (smode));
- emit_move_insn (mem, gen_rtx_REG (smode, SSE_REGNO (i)));
+ emit_move_insn (mem, gen_rtx_REG (smode, GET_SSE_REGNO (i)));
}
emit_label (label);
#define FIRST_FLOAT_REG FIRST_STACK_REG
#define STACK_TOP_P(X) (REG_P (X) && REGNO (X) == FIRST_FLOAT_REG)
-#define SSE_REGNO(N) \
- ((N) < 8 ? FIRST_SSE_REG + (N) \
- : (N) <= LAST_REX_SSE_REG ? (FIRST_REX_SSE_REG + (N) - 8) \
- : (FIRST_EXT_REX_SSE_REG + (N) - 16))
+#define GET_SSE_REGNO(N) \
+ ((N) < 8 ? FIRST_SSE_REG + (N) \
+ : (N) < 16 ? FIRST_REX_SSE_REG + (N) - 8 \
+ : FIRST_EXT_REX_SSE_REG + (N) - 16)
/* The class value for index registers, and the one for base regs. */