diff options
author | Chenghua Xu <paul.hua.gm@gmail.com> | 2018-11-07 10:29:52 +0000 |
---|---|---|
committer | Chenghua Xu <paulhua@gcc.gnu.org> | 2018-11-07 10:29:52 +0000 |
commit | f70b5dbfa111f03dd31a3e3bd2e3d01eecdc06c3 (patch) | |
tree | 71e071c212eb4cc74475e0c99366ed9ea8f8b47f /gcc/config/mips/mips.c | |
parent | 36b56cd336f50d1565ecc4c5b1fed89151392baf (diff) | |
download | gcc-f70b5dbfa111f03dd31a3e3bd2e3d01eecdc06c3.zip gcc-f70b5dbfa111f03dd31a3e3bd2e3d01eecdc06c3.tar.gz gcc-f70b5dbfa111f03dd31a3e3bd2e3d01eecdc06c3.tar.bz2 |
Fix some typo and brain twister logical.
gcc/
* config/mips/mips.c: Fix typo in documentation of
mips_loongson_ext2_prefetch_cookie.
(mips_option_override): fix brain twister logical.
* config/mips/mips.h: Fix typo in documentation of
ISA_HAS_CTZ_CTO and define pattern.
* config/mips/mips.md (prefetch): Hoist EXT2 above
the 2EF/EXT block.
(prefetch_indexed): Hoist EXT2 above the EXT block.
gcc/testsuite/
* gcc.target/mips/loongson-ctz.c: Fix typo.
* gcc.target/mips/loongson-dctz.c: Fix typo.
From-SVN: r265871
Diffstat (limited to 'gcc/config/mips/mips.c')
-rw-r--r-- | gcc/config/mips/mips.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 2b83e4e..d78e205 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -15151,7 +15151,7 @@ mips_prefetch_cookie (rtx write, rtx locality) return GEN_INT (INTVAL (write) + 6); } -/* Loongson EXT2 only implements perf hint=0 (prefetch for load) and hint=1 +/* Loongson EXT2 only implements pref hint=0 (prefetch for load) and hint=1 (prefetch for store), other hint just scale to hint = 0 and hint = 1. */ rtx @@ -20202,7 +20202,7 @@ mips_option_override (void) is true. If a user explicitly says -mloongson-ext2 -mno-loongson-ext then that is an error. */ if (!TARGET_LOONGSON_EXT - && !((target_flags_explicit & MASK_LOONGSON_EXT) == 0)) + && (target_flags_explicit & MASK_LOONGSON_EXT) != 0) error ("%<-mloongson-ext2%> must be used with %<-mloongson-ext%>"); target_flags |= MASK_LOONGSON_EXT; } |