Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/dist/gcc/config/riscv Update to latest gcc...
details: https://anonhg.NetBSD.org/src/rev/f6b4cd7e85cc
branches: trunk
changeset: 807220:f6b4cd7e85cc
user: matt <matt%NetBSD.org@localhost>
date: Wed Apr 01 06:35:01 2015 +0000
description:
Update to latest gcc changes. Default NetBSD to the medany cmodel.
diffstat:
external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h | 5 +-
external/gpl3/gcc/dist/gcc/config/riscv/riscv-opc.h | 1951 +++++++++---------
external/gpl3/gcc/dist/gcc/config/riscv/riscv.c | 4 +-
external/gpl3/gcc/dist/gcc/config/riscv/riscv.h | 6 +-
external/gpl3/gcc/dist/gcc/config/riscv/riscv.md | 6 +-
5 files changed, 972 insertions(+), 1000 deletions(-)
diffs (truncated from 2116 to 300 lines):
diff -r 8e7efd70a6cd -r f6b4cd7e85cc external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h
--- a/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h Wed Apr 01 06:08:39 2015 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/riscv/netbsd.h Wed Apr 01 06:35:01 2015 +0000
@@ -27,7 +27,10 @@
#define DRIVER_SELF_SPECS ""
#undef TARGET_DEFAULT
-#define TARGET_DEFAULT (MASK_ATOMIC | MASK_FDIV)
+#define TARGET_DEFAULT (MASK_FDIV)
+
+#undef TARGET_DEFAULT_CMODEL
+#define TARGET_DEFAULT_CMODEL CM_MEDANY
#define TARGET_OS_CPP_BUILTINS() \
do { \
diff -r 8e7efd70a6cd -r f6b4cd7e85cc external/gpl3/gcc/dist/gcc/config/riscv/riscv-opc.h
--- a/external/gpl3/gcc/dist/gcc/config/riscv/riscv-opc.h Wed Apr 01 06:08:39 2015 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/riscv/riscv-opc.h Wed Apr 01 06:35:01 2015 +0000
@@ -1,714 +1,688 @@
/* Automatically generated by parse-opcodes */
#ifndef RISCV_ENCODING_H
#define RISCV_ENCODING_H
-#define MATCH_CUSTOM3_RD_RS1_RS2 0x707b
-#define MASK_CUSTOM3_RD_RS1_RS2 0x707f
-#define MATCH_VLSEGSTWU 0xc00305b
-#define MASK_VLSEGSTWU 0x1e00707f
-#define MATCH_C_LW0 0x12
-#define MASK_C_LW0 0x801f
-#define MATCH_FMV_D_X 0xf2000053
-#define MASK_FMV_D_X 0xfff0707f
-#define MATCH_VLH 0x200205b
-#define MASK_VLH 0xfff0707f
-#define MATCH_C_LI 0x0
-#define MASK_C_LI 0x1f
-#define MATCH_FADD_D 0x2000053
-#define MASK_FADD_D 0xfe00007f
-#define MATCH_C_LD 0x9
-#define MASK_C_LD 0x1f
-#define MATCH_VLD 0x600205b
-#define MASK_VLD 0xfff0707f
-#define MATCH_FADD_S 0x53
-#define MASK_FADD_S 0xfe00007f
-#define MATCH_C_LW 0xa
-#define MASK_C_LW 0x1f
-#define MATCH_VLW 0x400205b
-#define MASK_VLW 0xfff0707f
-#define MATCH_VSSEGSTW 0x400307b
-#define MASK_VSSEGSTW 0x1e00707f
-#define MATCH_UTIDX 0x6077
-#define MASK_UTIDX 0xfffff07f
-#define MATCH_C_FLW 0x14
-#define MASK_C_FLW 0x1f
-#define MATCH_FSUB_D 0xa000053
-#define MASK_FSUB_D 0xfe00007f
-#define MATCH_VSSEGSTD 0x600307b
-#define MASK_VSSEGSTD 0x1e00707f
-#define MATCH_VSSEGSTB 0x307b
-#define MASK_VSSEGSTB 0x1e00707f
-#define MATCH_DIV 0x2004033
-#define MASK_DIV 0xfe00707f
-#define MATCH_FMV_H_X 0xf4000053
-#define MASK_FMV_H_X 0xfff0707f
-#define MATCH_C_FLD 0x15
-#define MASK_C_FLD 0x1f
-#define MATCH_FRRM 0x202073
-#define MASK_FRRM 0xfffff07f
-#define MATCH_VFMSV_S 0x1000202b
-#define MASK_VFMSV_S 0xfff0707f
-#define MATCH_C_LWSP 0x5
-#define MASK_C_LWSP 0x1f
-#define MATCH_FENCE 0xf
-#define MASK_FENCE 0x707f
-#define MATCH_FNMSUB_S 0x4b
-#define MASK_FNMSUB_S 0x600007f
-#define MATCH_FLE_S 0xa0000053
-#define MASK_FLE_S 0xfe00707f
-#define MATCH_FNMSUB_H 0x400004b
-#define MASK_FNMSUB_H 0x600007f
-#define MATCH_FLE_H 0xbc000053
-#define MASK_FLE_H 0xfe00707f
-#define MATCH_FLW 0x2007
-#define MASK_FLW 0x707f
-#define MATCH_VSETVL 0x600b
-#define MASK_VSETVL 0xfff0707f
-#define MATCH_VFMSV_D 0x1200202b
-#define MASK_VFMSV_D 0xfff0707f
-#define MATCH_FLE_D 0xa2000053
-#define MASK_FLE_D 0xfe00707f
-#define MATCH_FENCE_I 0x100f
-#define MASK_FENCE_I 0x707f
-#define MATCH_FNMSUB_D 0x200004b
-#define MASK_FNMSUB_D 0x600007f
+#define MATCH_ADD 0x33
+#define MASK_ADD 0xfe00707f
+#define MATCH_ADDI 0x13
+#define MASK_ADDI 0x707f
+#define MATCH_ADDIW 0x1b
+#define MASK_ADDIW 0x707f
#define MATCH_ADDW 0x3b
#define MASK_ADDW 0xfe00707f
-#define MATCH_XOR 0x4033
-#define MASK_XOR 0xfe00707f
-#define MATCH_SUB 0x40000033
-#define MASK_SUB 0xfe00707f
-#define MATCH_VSSTW 0x400307b
-#define MASK_VSSTW 0xfe00707f
-#define MATCH_VSSTH 0x200307b
-#define MASK_VSSTH 0xfe00707f
-#define MATCH_SC_W 0x1800202f
-#define MASK_SC_W 0xf800707f
-#define MATCH_VSSTB 0x307b
-#define MASK_VSSTB 0xfe00707f
-#define MATCH_VSSTD 0x600307b
-#define MASK_VSSTD 0xfe00707f
-#define MATCH_ADDI 0x13
-#define MASK_ADDI 0x707f
-#define MATCH_RDTIMEH 0xc8102073
-#define MASK_RDTIMEH 0xfffff07f
-#define MATCH_MULH 0x2001033
-#define MASK_MULH 0xfe00707f
+#define MATCH_AMOADD_D 0x302f
+#define MASK_AMOADD_D 0xf800707f
+#define MATCH_AMOADD_W 0x202f
+#define MASK_AMOADD_W 0xf800707f
+#define MATCH_AMOAND_D 0x6000302f
+#define MASK_AMOAND_D 0xf800707f
+#define MATCH_AMOAND_W 0x6000202f
+#define MASK_AMOAND_W 0xf800707f
+#define MATCH_AMOMAX_D 0xa000302f
+#define MASK_AMOMAX_D 0xf800707f
+#define MATCH_AMOMAX_W 0xa000202f
+#define MASK_AMOMAX_W 0xf800707f
+#define MATCH_AMOMAXU_D 0xe000302f
+#define MASK_AMOMAXU_D 0xf800707f
+#define MATCH_AMOMAXU_W 0xe000202f
+#define MASK_AMOMAXU_W 0xf800707f
+#define MATCH_AMOMIN_D 0x8000302f
+#define MASK_AMOMIN_D 0xf800707f
+#define MATCH_AMOMIN_W 0x8000202f
+#define MASK_AMOMIN_W 0xf800707f
+#define MATCH_AMOMINU_D 0xc000302f
+#define MASK_AMOMINU_D 0xf800707f
+#define MATCH_AMOMINU_W 0xc000202f
+#define MASK_AMOMINU_W 0xf800707f
+#define MATCH_AMOOR_D 0x4000302f
+#define MASK_AMOOR_D 0xf800707f
+#define MATCH_AMOOR_W 0x4000202f
+#define MASK_AMOOR_W 0xf800707f
+#define MATCH_AMOSWAP_D 0x800302f
+#define MASK_AMOSWAP_D 0xf800707f
+#define MATCH_AMOSWAP_W 0x800202f
+#define MASK_AMOSWAP_W 0xf800707f
+#define MATCH_AMOXOR_D 0x2000302f
+#define MASK_AMOXOR_D 0xf800707f
+#define MATCH_AMOXOR_W 0x2000202f
+#define MASK_AMOXOR_W 0xf800707f
+#define MATCH_AND 0x7033
+#define MASK_AND 0xfe00707f
+#define MATCH_ANDI 0x7013
+#define MASK_ANDI 0x707f
+#define MATCH_AUIPC 0x17
+#define MASK_AUIPC 0x7f
+#define MATCH_BEQ 0x63
+#define MASK_BEQ 0x707f
+#define MATCH_BGE 0x5063
+#define MASK_BGE 0x707f
+#define MATCH_BGEU 0x7063
+#define MASK_BGEU 0x707f
+#define MATCH_BLT 0x4063
+#define MASK_BLT 0x707f
+#define MATCH_BLTU 0x6063
+#define MASK_BLTU 0x707f
+#define MATCH_BNE 0x1063
+#define MASK_BNE 0x707f
+#define MATCH_C_ADD 0x6000
+#define MASK_C_ADD 0xf003
+#define MATCH_C_ADDI 0x8000
+#define MASK_C_ADDI 0xe003
+#define MATCH_C_ADDI4 0xa000
+#define MASK_C_ADDI4 0xe003
+#define MATCH_C_ADDIW 0xe000
+#define MASK_C_ADDIW 0xe003
+#define MATCH_C_ADDW 0x7000
+#define MASK_C_ADDW 0xf003
+#define MATCH_C_BEQZ 0x2002
+#define MASK_C_BEQZ 0xe003
+#define MATCH_C_BNEZ 0x6002
+#define MASK_C_BNEZ 0xe003
+#define MATCH_C_J 0xa002
+#define MASK_C_J 0xe003
+#define MATCH_C_JALR 0x5000
+#define MASK_C_JALR 0xf003
+#define MATCH_C_LD 0x2001
+#define MASK_C_LD 0xe003
+#define MATCH_C_LDSP 0xc001
+#define MASK_C_LDSP 0xe003
+#define MATCH_C_LI 0x0
+#define MASK_C_LI 0xe003
+#define MATCH_C_LUI 0x2000
+#define MASK_C_LUI 0xe003
+#define MATCH_C_LW 0x1
+#define MASK_C_LW 0xe003
+#define MATCH_C_LWSP 0x8001
+#define MASK_C_LWSP 0xe003
+#define MATCH_C_MV 0x4000
+#define MASK_C_MV 0xf003
+#define MATCH_C_SD 0x6001
+#define MASK_C_SD 0xe003
+#define MATCH_C_SDSP 0xe001
+#define MASK_C_SDSP 0xe003
+#define MATCH_C_SLLI 0xc000
+#define MASK_C_SLLI 0xe003
+#define MATCH_C_SW 0x4001
+#define MASK_C_SW 0xe003
+#define MATCH_C_SWSP 0xa001
+#define MASK_C_SWSP 0xe003
+#define MATCH_CSRRC 0x3073
+#define MASK_CSRRC 0x707f
+#define MATCH_CSRRCI 0x7073
+#define MASK_CSRRCI 0x707f
+#define MATCH_CSRRS 0x2073
+#define MASK_CSRRS 0x707f
#define MATCH_CSRRSI 0x6073
#define MASK_CSRRSI 0x707f
-#define MATCH_FCVT_D_WU 0xd2100053
-#define MASK_FCVT_D_WU 0xfff0007f
-#define MATCH_MULW 0x200003b
-#define MASK_MULW 0xfe00707f
+#define MATCH_CSRRW 0x1073
+#define MASK_CSRRW 0x707f
+#define MATCH_CSRRWI 0x5073
+#define MASK_CSRRWI 0x707f
+#define MATCH_CUSTOM0 0xb
+#define MASK_CUSTOM0 0x707f
+#define MATCH_CUSTOM0_RD 0x400b
+#define MASK_CUSTOM0_RD 0x707f
+#define MATCH_CUSTOM0_RD_RS1 0x600b
+#define MASK_CUSTOM0_RD_RS1 0x707f
+#define MATCH_CUSTOM0_RD_RS1_RS2 0x700b
+#define MASK_CUSTOM0_RD_RS1_RS2 0x707f
+#define MATCH_CUSTOM0_RS1 0x200b
+#define MASK_CUSTOM0_RS1 0x707f
+#define MATCH_CUSTOM0_RS1_RS2 0x300b
+#define MASK_CUSTOM0_RS1_RS2 0x707f
+#define MATCH_CUSTOM1 0x2b
+#define MASK_CUSTOM1 0x707f
+#define MATCH_CUSTOM1_RD 0x402b
+#define MASK_CUSTOM1_RD 0x707f
+#define MATCH_CUSTOM1_RD_RS1 0x602b
+#define MASK_CUSTOM1_RD_RS1 0x707f
#define MATCH_CUSTOM1_RD_RS1_RS2 0x702b
#define MASK_CUSTOM1_RD_RS1_RS2 0x707f
-#define MATCH_VENQIMM1 0xc00302b
-#define MASK_VENQIMM1 0xfe007fff
-#define MATCH_VENQIMM2 0xe00302b
-#define MASK_VENQIMM2 0xfe007fff
-#define MATCH_RDINSTRET 0xc0202073
-#define MASK_RDINSTRET 0xfffff07f
-#define MATCH_C_SWSP 0x8
-#define MASK_C_SWSP 0x1f
-#define MATCH_VLSTW 0x400305b
-#define MASK_VLSTW 0xfe00707f
-#define MATCH_VLSTH 0x200305b
-#define MASK_VLSTH 0xfe00707f
-#define MATCH_VLSTB 0x305b
-#define MASK_VLSTB 0xfe00707f
-#define MATCH_VLSTD 0x600305b
-#define MASK_VLSTD 0xfe00707f
-#define MATCH_ANDI 0x7013
-#define MASK_ANDI 0x707f
-#define MATCH_FMV_X_S 0xe0000053
-#define MASK_FMV_X_S 0xfff0707f
-#define MATCH_CUSTOM0_RD_RS1_RS2 0x700b
-#define MASK_CUSTOM0_RD_RS1_RS2 0x707f
-#define MATCH_FNMADD_S 0x4f
-#define MASK_FNMADD_S 0x600007f
-#define MATCH_LWU 0x6003
-#define MASK_LWU 0x707f
-#define MATCH_CUSTOM0_RS1 0x200b
-#define MASK_CUSTOM0_RS1 0x707f
-#define MATCH_VLSEGSTBU 0x800305b
-#define MASK_VLSEGSTBU 0x1e00707f
-#define MATCH_FNMADD_D 0x200004f
-#define MASK_FNMADD_D 0x600007f
+#define MATCH_CUSTOM1_RS1 0x202b
+#define MASK_CUSTOM1_RS1 0x707f
+#define MATCH_CUSTOM1_RS1_RS2 0x302b
+#define MASK_CUSTOM1_RS1_RS2 0x707f
+#define MATCH_CUSTOM2 0x5b
+#define MASK_CUSTOM2 0x707f
+#define MATCH_CUSTOM2_RD 0x405b
+#define MASK_CUSTOM2_RD 0x707f
+#define MATCH_CUSTOM2_RD_RS1 0x605b
+#define MASK_CUSTOM2_RD_RS1 0x707f
+#define MATCH_CUSTOM2_RD_RS1_RS2 0x705b
+#define MASK_CUSTOM2_RD_RS1_RS2 0x707f
+#define MATCH_CUSTOM2_RS1 0x205b
+#define MASK_CUSTOM2_RS1 0x707f
+#define MATCH_CUSTOM2_RS1_RS2 0x305b
+#define MASK_CUSTOM2_RS1_RS2 0x707f
Home |
Main Index |
Thread Index |
Old Index