yann@792: 2008-04-03 Nathan Froyd yann@792: Nathan Sidwell yann@792: yann@792: * config/rs6000/rs6000.opt (mspe): Remove Var property. yann@792: (misel): Likewise. yann@792: * config/rs6000/rs6000.h (rs6000_spe): Declare. yann@792: (rs6000_isel): Likewise. yann@792: * config/rs6000/rs6000.c (rs6000_spe): New variable. yann@792: (rs6000_isel): New variable. yann@792: (rs6000_handle_option): Handle OPT_mspe and OPT_misel. yann@792: yann@792: Index: gcc/config/rs6000/rs6000.c yann@792: =================================================================== yann@792: --- a/gcc/config/rs6000/rs6000.c (revision 134642) yann@792: +++ b/gcc/config/rs6000/rs6000.c (working copy) yann@792: @@ -174,9 +174,15 @@ int rs6000_ieeequad; yann@792: /* Nonzero to use AltiVec ABI. */ yann@792: int rs6000_altivec_abi; yann@792: yann@792: +/* Nonzero if we want SPE SIMD instructions. */ yann@792: +int rs6000_spe; yann@792: + yann@792: /* Nonzero if we want SPE ABI extensions. */ yann@792: int rs6000_spe_abi; yann@792: yann@792: +/* Nonzero to use isel instructions. */ yann@792: +int rs6000_isel; yann@792: + yann@792: /* Nonzero if floating point operations are done in the GPRs. */ yann@792: int rs6000_float_gprs = 0; yann@792: yann@792: @@ -2177,11 +2183,21 @@ rs6000_handle_option (size_t code, const yann@792: rs6000_parse_yes_no_option ("vrsave", arg, &(TARGET_ALTIVEC_VRSAVE)); yann@792: break; yann@792: yann@792: + case OPT_misel: yann@792: + rs6000_explicit_options.isel = true; yann@792: + rs6000_isel = value; yann@792: + break; yann@792: + yann@792: case OPT_misel_: yann@792: rs6000_explicit_options.isel = true; yann@792: rs6000_parse_yes_no_option ("isel", arg, &(rs6000_isel)); yann@792: break; yann@792: yann@792: + case OPT_mspe: yann@792: + rs6000_explicit_options.spe = true; yann@792: + rs6000_spe = value; yann@792: + break; yann@792: + yann@792: case OPT_mspe_: yann@792: rs6000_explicit_options.spe = true; yann@792: rs6000_parse_yes_no_option ("spe", arg, &(rs6000_spe)); yann@792: Index: gcc/config/rs6000/rs6000.opt yann@792: =================================================================== yann@792: --- a/gcc/config/rs6000/rs6000.opt (revision 134642) yann@792: +++ b/gcc/config/rs6000/rs6000.opt (working copy) yann@792: @@ -190,7 +190,7 @@ Target RejectNegative Joined yann@792: -mvrsave=yes/no Deprecated option. Use -mvrsave/-mno-vrsave instead yann@792: yann@792: misel yann@792: -Target Var(rs6000_isel) yann@792: +Target yann@792: Generate isel instructions yann@792: yann@792: misel= yann@792: @@ -198,7 +198,7 @@ Target RejectNegative Joined yann@792: -misel=yes/no Deprecated option. Use -misel/-mno-isel instead yann@792: yann@792: mspe yann@792: -Target Var(rs6000_spe) yann@792: +Target yann@792: Generate SPE SIMD instructions on E500 yann@792: yann@792: mpaired yann@792: Index: gcc/config/rs6000/rs6000.h yann@792: =================================================================== yann@792: --- a/gcc/config/rs6000/rs6000.h (revision 134642) yann@792: +++ b/gcc/config/rs6000/rs6000.h (working copy) yann@792: @@ -367,6 +367,8 @@ extern int rs6000_long_double_type_size; yann@792: extern int rs6000_ieeequad; yann@792: extern int rs6000_altivec_abi; yann@792: extern int rs6000_spe_abi; yann@792: +extern int rs6000_spe; yann@792: +extern int rs6000_isel; yann@792: extern int rs6000_float_gprs; yann@792: extern int rs6000_alignment_flags; yann@792: extern const char *rs6000_sched_insert_nops_str; yann@792: yann@792: