Message ID | c225d241dbe5bb8ea2f3826c58996222813368ef.1410460700.git.segher@kernel.crashing.org |
---|---|
State | New |
Headers | show |
On Thu, Sep 11, 2014 at 2:54 PM, Segher Boessenkool <segher@kernel.crashing.org> wrote: > The rs6000_get_timebase expander expands to rs6000_mftb_di for > TARGET_POWERPC64, so the define_insn should allow it too. > > This fixes gcc.target/powerpc/ppc-get-timebase.c for -m32 -mpowerpc64. > > Okay for mainline? > > > Segher > > > 2014-11-11 Segher Boessenkool <segher@kernel.crashing.org> > > * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator > GPR instead of P. Okay. Thanks, David
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 1f1e06d..78960e0 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -13550,8 +13550,8 @@ (define_insn "rs6000_get_timebase_ppc32" [(set_attr "length" "20")]) (define_insn "rs6000_mftb_<mode>" - [(set (match_operand:P 0 "gpc_reg_operand" "=r") - (unspec_volatile:P [(const_int 0)] UNSPECV_MFTB))] + [(set (match_operand:GPR 0 "gpc_reg_operand" "=r") + (unspec_volatile:GPR [(const_int 0)] UNSPECV_MFTB))] "" { if (TARGET_MFCRF)