)]}'
{
  "commit": "77dd5c805f4347c5de657ddeed032a2e9bd7abc7",
  "tree": "e7bfbf5de8c8c6958918dda659d2edbfc6f1e6ca",
  "parents": [
    "3c0675ea93e689148128d28525ab719aeec06f6a"
  ],
  "author": {
    "name": "Nelson Chu",
    "email": "nelson.chu@sifive.com",
    "time": "Mon Oct 04 18:20:47 2021 +0800"
  },
  "committer": {
    "name": "Nelson Chu",
    "email": "nelson.chu@sifive.com",
    "time": "Thu Oct 28 08:51:44 2021 +0800"
  },
  "message": "RISC-V/rvv: Added zve* and zvl* extensions, and clarify the imply rules.\n\n* Recognized zve* and zvl* extensions.\n  - zve*: zve64d, zve64f, zve64x, zve32f and zve32x.\n  - zvl*: zvl32b, zvl64b, zvl128b, zvl256b, zvl512b, zvl1024b, zvl2048b,\n          zvl4096b, zvl8192b, zvl16384b, zvl32768b and zvl65536b.\n\n* Spec said that v requires f and d, zve64d requires d, zve64f and zve32f\n  require f.  However, according to the issue 723,\n  [https://github.com/riscv/riscv-v-spec/issues/723]\n\n  The general rule is that extension names imply the things they require.\n  Therefore, the current imply rules should be as follows,\n  - v imply f and d.\n  - zve64d imply d.\n  - zve64f and zve32f imply f.\n  - zvamo imply a.\n\n  Besides, consider the implicit zve and zvl extensions,\n  - v imply zve64d and zvl128b.\n  - zve64* imply the corresponding zve32*.  For example, zve64f imply zve32f,\n    and zve64x imply zve32x.\n  - zve*d imply zve*f and zve*x.  For example, zve64d imply zve64f and zve64x.\n  - zve*f imply zve*x.  For example, zve64f imply zve64x.\n  - zve64* imply zvl64b, and zve32* imply zvl32b.\n  - The larger zvl* imply all smaller zvl*.  For example, zvl128b imply zvl64b,\n    and zvl32b.\n\n  Therefore, \"-march\u003drv64iv -misa-spec\u003d20191213\" will be\n  \"rv64i2p0_f2p0_d2p0_v1p0_zicsr2p0_zve32f1p0_zve32x1p0_zve64d1p0_zve64f1p0_zve64x1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0\".\n  Note: zicsr is the imply extension of f.\n\n* For zve32x, the (segmant) load/store instructions are illegal when EEW is\n  64.  Besides, vsew cannot be set to 64 by vsetvli when zve32* is enabled.\n\n* For zvl*b extensions, we also need to enable either v or zve* extensions.\n  Otherwise we should issue errors.\n\nbfd/\n\t* elfxx-riscv.c (riscv_implicit_subsets): Added imply rules for v,\n\tzve* and zvl*b extensions.\n\t(riscv_supported_std_z_ext): Added zve* and zvl*b extensions.\n\t(riscv_parse_check_conflicts): The zvl*b extensions cannot be set\n\twithout v and zve* extensions.\ngas/\n\t* config/tc-riscv.c (riscv_extended_subset_supports): Handle zve*.\n\t(my_getVsetvliExpression): vsew cannot be set to 64 by vsetvli\n\twhen zve32* is enabled.\n\t(riscv_ip): The (segmant) loads and stores with EEW 64 cannot be\n\tused when zve32x is enabled.\n\t* testsuite/gas/riscv/extended/march-imply-v.d: New testcase.\n\t* testsuite/gas/riscv/extended/march-imply-zve*.d: Likewise.\n\t* testsuite/gas/riscv/extended/march-imply-zvl*b.d: Likewise.\n\t* testsuite/gas/riscv/extended/vector-insns-fail-zve32x.d: Likewise.\n\t* testsuite/gas/riscv/extended/vector-insns-fail-zve32x.l: Likewise.\n\t* testsuite/gas/riscv/extended/vector-insns-fail-zve32x.s: Likewise.\n\t* testsuite/gas/riscv/extended/vector-insns-fail-zvl.d: Likewise.\n\t* testsuite/gas/riscv/extended/vector-insns-fail-zvl.l: Likewise.\n\t* testsuite/gas/riscv/extended/vector-insns-fail-zvamo.d: Removed\n\ta-ext from -march since it will be added as implicit ext for zvamo.\n\t* testsuite/gas/riscv/extended/vector-insns.d: Likewise.\ninclude/\n\t* opcode/riscv.h: Defined INSN_V_EEW64.\nopcodes/\n\t* riscv-opc.c (riscv_draft_opcodes): Added INSN_V_EEW64 for vector\n\tloads and stores when the eew encodings are 64.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b44ff82cd8d0d7e81be806a0367e0eb34a4939ec",
      "old_mode": 33188,
      "old_path": "bfd/elfxx-riscv.c",
      "new_id": "34bcab6d94169690821ab971ced8e2ce63167d59",
      "new_mode": 33188,
      "new_path": "bfd/elfxx-riscv.c"
    },
    {
      "type": "modify",
      "old_id": "cb9edf2480f03f9b035e9212de1a6053f49a89ea",
      "old_mode": 33188,
      "old_path": "gas/config/tc-riscv.c",
      "new_id": "99165f5a729a78f8b5420b8b195e94b98103fae6",
      "new_mode": 33188,
      "new_path": "gas/config/tc-riscv.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "4177f0328bc1b7412d3af8f83928c1c806907ff5",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/march-imply-v.d"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "17b7a67cc95f15c678c75cff5035bbbbd3d38b9c",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/march-imply-zve32f.d"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "34742e544dc1ffea276229fea7ac2fb27514f3e1",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/march-imply-zve32x.d"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "f5fb6a5fc1c776da86a78e383ab1254e85c9c806",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/march-imply-zve64d.d"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "2cd7224a29db6fa24e2483fd7bf0a6ef22566d04",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/march-imply-zve64f.d"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "96dea6f58a63ab2429cbc6428abdbabe3257818b",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/march-imply-zve64x.d"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "4a68a9c9425785aa2030aeacbf3a5cc115b2360c",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/march-imply-zvl1024b.d"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ef1ac30b9ba48a516b4377891881a031a4e37060",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/march-imply-zvl128b.d"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a05077afbcdc57392fd2cdfecef30acf3c8f00f7",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/march-imply-zvl16384b.d"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8c45a9812d2f15f7d94ef3c419f1e0666a28a088",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/march-imply-zvl2048b.d"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "515bfdb05131348ccd428eb944013433f8c67def",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/march-imply-zvl256b.d"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a10b11a74e9fd7fdd3cd89138654d963cf6016b7",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/march-imply-zvl32768b.d"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "0951b57366fa33d13e037520bb32e2c3c74c9bb9",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/march-imply-zvl4096b.d"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "14b439011c701e3caa55ec960e457ceca77e670c",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/march-imply-zvl512b.d"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "071bd245a28d0404993d5301cb80b47967dd4ce0",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/march-imply-zvl64b.d"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "8b1739feb74508da216d70ae5efaa15c8adfcab5",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/march-imply-zvl65536b.d"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ddfdc5019d75d851112f69a546358f43dea59804",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/march-imply-zvl8192b.d"
    },
    {
      "type": "modify",
      "old_id": "8a6de14600c0151cbc044693223e301a336e01ea",
      "old_mode": 33188,
      "old_path": "gas/testsuite/gas/riscv/extended/vector-insns-fail-zvamo.d",
      "new_id": "ff06d2377a30d68884bc843d74edc6a13f1cd2dd",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/vector-insns-fail-zvamo.d"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "3c60e8026a942c7e4b28594ebe1604b7d74ded93",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/vector-insns-fail-zve32x.d"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "13f747c7ccb3de8578b418b59a86453823db4ded",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/vector-insns-fail-zve32x.l"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "7a0bfe88db85f21d0e025174288f6e36cebef9af",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/vector-insns-fail-zve32x.s"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "16884e7e90615753b8cc1aeec88b7e98b7ea00fc",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/vector-insns-fail-zvl.d"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "d820ded1e91401fb2e9e90a4ab05197a6e9e1474",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/vector-insns-fail-zvl.l"
    },
    {
      "type": "modify",
      "old_id": "4e0ffff368c5edecdb1ae207b534fdce23627865",
      "old_mode": 33188,
      "old_path": "gas/testsuite/gas/riscv/extended/vector-insns.d",
      "new_id": "3f9b9a1de029525e90f5c31cb705d56cb21e9cfb",
      "new_mode": 33188,
      "new_path": "gas/testsuite/gas/riscv/extended/vector-insns.d"
    },
    {
      "type": "modify",
      "old_id": "6252f6980f3eb50a16a02183ef0bacdade9239bc",
      "old_mode": 33188,
      "old_path": "include/opcode/riscv.h",
      "new_id": "8cef4497145b14efe05b8666b977362a49a775e6",
      "new_mode": 33188,
      "new_path": "include/opcode/riscv.h"
    },
    {
      "type": "modify",
      "old_id": "cdbe3d43b4e0b01da56a0d4e8cfb81ab0993d335",
      "old_mode": 33188,
      "old_path": "opcodes/riscv-opc.c",
      "new_id": "22474f07af26bb0567d11cafc8603c7baf8f3f37",
      "new_mode": 33188,
      "new_path": "opcodes/riscv-opc.c"
    }
  ]
}
