aboutsummaryrefslogtreecommitdiff
path: root/libcc1/rpc.hh
diff options
context:
space:
mode:
authorChenghua Xu <paul.hua.gm@gmail.com>2018-11-07 08:42:59 +0000
committerChenghua Xu <paulhua@gcc.gnu.org>2018-11-07 08:42:59 +0000
commitd6319811c1af2f2a36a83d2079eb986154060e60 (patch)
tree3f722255f7e301897a38a5bbf0aa031b62f652fc /libcc1/rpc.hh
parent375899d9e47d03f3f2fe6aa6c854ddc855f94d76 (diff)
downloadgcc-d6319811c1af2f2a36a83d2079eb986154060e60.zip
gcc-d6319811c1af2f2a36a83d2079eb986154060e60.tar.gz
gcc-d6319811c1af2f2a36a83d2079eb986154060e60.tar.bz2
Add support for Loongson EXT2 instructions.
gcc/ * config/mips/mips-protos.h (mips_loongson_ext2_prefetch_cookie): New prototype. * config/mips/mips.c (mips_loongson_ext2_prefetch_cookie): New. (mips_option_override): Enable TARGET_LOONGSON_EXT when TARGET_LOONGSON_EXT2 is true. * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_ext2, __mips_loongson_ext_rev=2. (ISA_HAS_CTZ_CTO): New, true if TARGET_LOONGSON_EXT2. (ISA_HAS_PREFETCH): Include TARGET_LOONGSON_EXT and TARGET_LOONGSON_EXT2. (ASM_SPEC): Add mloongson-ext2 and mno-loongson-ext2. (define_insn "ctz<mode>2"): New insn pattern. (define_insn "prefetch"): Include TARGET_LOONGSON_EXT2. (define_insn "prefetch_indexed_<mode>"): Include TARGET_LOONGSON_EXT and TARGET_LOONGSON_EXT2. * config/mips/mips.opt (-mloongson-ext2): Add option. * gcc/doc/invoke.texi (-mloongson-ext2): Document. gcc/testsuite/ * gcc.target/mips/loongson-ctz.c: New test. * gcc.target/mips/loongson-dctz.c: Likewise. * gcc.target/mips/mips.exp (mips_option_groups): Add -mloongson-ext2 option. From-SVN: r265864
Diffstat (limited to 'libcc1/rpc.hh')
0 files changed, 0 insertions, 0 deletions