From: Segher Boessenkool Date: Tue, 12 Nov 2019 21:56:13 +0000 (+0100) Subject: rs6000: Use ULL on big hexadecimal literal X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f8ae8963b4762e202270493e5a65a00d18e36a3f;p=gcc.git rs6000: Use ULL on big hexadecimal literal C++98 does not have long long int, and does not use (unsigned) long long int for hexadecimal literals. So let's use an ULL suffix here, which is still not strict C++98, but which works with more compilers. * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big hexadecimal literal. From-SVN: r278107 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 574b5984558..e8ebbecf1b1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-11-12 Segher Boessenkool + + * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big + hexadecimal literal. + 2019-11-12 Segher Boessenkool * config/rs6000/vsx.md (xscmpexpdp_ for CMP_TEST): Handle diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index cbfe38bef94..040fc886057 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -6008,7 +6008,7 @@ /* Insert new RN mode into FSCPR. */ emit_insn (gen_rs6000_mffs (tmp_df)); tmp_di = simplify_gen_subreg (DImode, tmp_df, DFmode, 0); - emit_insn (gen_anddi3 (tmp_di, tmp_di, GEN_INT (0xFFFFFFF8FFFFFFFF))); + emit_insn (gen_anddi3 (tmp_di, tmp_di, GEN_INT (0xFFFFFFF8FFFFFFFFULL))); emit_insn (gen_iordi3 (tmp_di, tmp_di, tmp_rn)); /* Need to write to field 7. The fields are [0:15]. The equation to