Skip to content

Commit 5081148

Browse files
committed
MOCK: RISC-V: Tests for 'Zce' implications
**NEVER COMMIT THIS.** This commit is intended to be merged to the previous patch once 'Zcmp' and 'Zcmt' extensions are ready. It adds several tests related to 'Zce' implications. bfd/ChangeLog: * elfxx-riscv.c: [MOCK] Uncomment mock lines to pass the test. gas/ChangeLog: * testsuite/gas/riscv/march-imply-zce.d: New test. * testsuite/gas/riscv/march-imply-zce-f-32.d: Likewise. * testsuite/gas/riscv/march-imply-zce-f-64.d: Likewise.
1 parent 69b4540 commit 5081148

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

bfd/elfxx-riscv.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,10 +1353,9 @@ static struct riscv_supported_ext riscv_supported_std_z_ext[] =
13531353
{"zcb", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
13541354
{"zcf", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
13551355
{"zcd", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
1356-
/* MOCK: uncomment those lines once ready. */
1357-
// {"zce", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
1358-
// {"zcmp", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
1359-
// {"zcmt", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
1356+
{"zce", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
1357+
{"zcmp", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
1358+
{"zcmt", ISA_SPEC_CLASS_DRAFT, 1, 0, 0 },
13601359
{NULL, 0, 0, 0, 0}
13611360
};
13621361

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#as: -march=rv32if_zce -march-attr -misa-spec=20191213
2+
#readelf: -A
3+
#source: empty.s
4+
Attribute Section: riscv
5+
File Attributes
6+
Tag_RISCV_arch: "rv32i2p1_f2p2_zicsr2p0_zca1p0_zcb1p0_zce1p0_zcf1p0_zcmp1p0_zcmt1p0"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#as: -march=rv64if_zce -march-attr -misa-spec=20191213
2+
#readelf: -A
3+
#source: empty.s
4+
Attribute Section: riscv
5+
File Attributes
6+
Tag_RISCV_arch: "rv64i2p1_f2p2_zicsr2p0_zca1p0_zcb1p0_zce1p0_zcmp1p0_zcmt1p0"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#as: -march=rv32i_zce -march-attr -misa-spec=20191213
2+
#readelf: -A
3+
#source: empty.s
4+
Attribute Section: riscv
5+
File Attributes
6+
Tag_RISCV_arch: "rv32i2p1_zca1p0_zcb1p0_zce1p0_zcmp1p0_zcmt1p0"

0 commit comments

Comments
 (0)