rs6000: Remove ALTIVEC_BUILTIN_MASK_FOR_STORE
It turns out that the target hook that this is supposed to satisfy disappeared in 2004. Probably time to retire it. 2020-08-28 Bill Schmidt <wschmidt@linux.ibm.com> gcc/ * config/rs6000/rs6000-builtin.def (MASK_FOR_STORE): Remove. * config/rs6000/rs6000-call.c (rs6000_expand_builtin): Remove all logic for ALTIVEC_BUILTIN_MASK_FOR_STORE.
This commit is contained in:
parent
8f7ea26ae3
commit
cd0233527a
2 changed files with 3 additions and 10 deletions
|
@ -1515,7 +1515,6 @@ BU_ALTIVEC_C (STVLXL, "stvlxl", MEM)
|
|||
BU_ALTIVEC_C (STVRX, "stvrx", MEM)
|
||||
BU_ALTIVEC_C (STVRXL, "stvrxl", MEM)
|
||||
BU_ALTIVEC_X (MASK_FOR_LOAD, "mask_for_load", MISC)
|
||||
BU_ALTIVEC_X (MASK_FOR_STORE, "mask_for_store", MISC)
|
||||
BU_ALTIVEC_X (VEC_INIT_V4SI, "vec_init_v4si", CONST)
|
||||
BU_ALTIVEC_X (VEC_INIT_V8HI, "vec_init_v8hi", CONST)
|
||||
BU_ALTIVEC_X (VEC_INIT_V16QI, "vec_init_v16qi", CONST)
|
||||
|
|
|
@ -12643,7 +12643,6 @@ rs6000_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED,
|
|||
}
|
||||
|
||||
case ALTIVEC_BUILTIN_MASK_FOR_LOAD:
|
||||
case ALTIVEC_BUILTIN_MASK_FOR_STORE:
|
||||
{
|
||||
int icode2 = (BYTES_BIG_ENDIAN ? (int) CODE_FOR_altivec_lvsr_direct
|
||||
: (int) CODE_FOR_altivec_lvsl_direct);
|
||||
|
@ -12658,14 +12657,9 @@ rs6000_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED,
|
|||
gcc_assert (POINTER_TYPE_P (TREE_TYPE (arg)));
|
||||
op = expand_expr (arg, NULL_RTX, Pmode, EXPAND_NORMAL);
|
||||
addr = memory_address (mode, op);
|
||||
if (fcode == ALTIVEC_BUILTIN_MASK_FOR_STORE)
|
||||
op = addr;
|
||||
else
|
||||
{
|
||||
/* For the load case need to negate the address. */
|
||||
op = gen_reg_rtx (GET_MODE (addr));
|
||||
emit_insn (gen_rtx_SET (op, gen_rtx_NEG (GET_MODE (addr), addr)));
|
||||
}
|
||||
/* We need to negate the address. */
|
||||
op = gen_reg_rtx (GET_MODE (addr));
|
||||
emit_insn (gen_rtx_SET (op, gen_rtx_NEG (GET_MODE (addr), addr)));
|
||||
op = gen_rtx_MEM (mode, op);
|
||||
|
||||
if (target == 0
|
||||
|
|
Loading…
Add table
Reference in a new issue