Skip to content

Commit a48d480

Browse files
committed
[RISCV] Fix broken test
Fix test for the SiFive E76 core. This patch fixes the issue introduced by the commit 5d6d8a2.
1 parent b268e24 commit a48d480

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang/test/Driver/riscv-cpus.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
// mcpu with default march
3232
// RUN: %clang -target riscv64 -### -c %s 2>&1 -mcpu=sifive-e76 | FileCheck -check-prefix=MCPU-SIFIVE-E76 %s
3333
// MCPU-SIFIVE-E76: "-nostdsysteminc" "-target-cpu" "sifive-e76"
34-
// MCPU-SIFIVE-E76: "-target-feature" "+m" "-target-feature" "+a" "-target-feature" "+f" "-target-feature" "+d"
34+
// MCPU-SIFIVE-E76: "-target-feature" "+m" "-target-feature" "+a" "-target-feature" "+f"
3535
// MCPU-SIFIVE-E76: "-target-feature" "+c"
36-
// MCPU-SIFIVE-E76: "-target-abi" "lp64d"
36+
// MCPU-SIFIVE-E76: "-target-abi" "ilp32"
3737

3838
// mcpu with mabi option
3939
// RUN: %clang -target riscv64 -### -c %s 2>&1 -mcpu=sifive-u74 -mabi=lp64 | FileCheck -check-prefix=MCPU-ABI-SIFIVE-U74 %s

llvm/include/llvm/Support/RISCVTargetParser.def

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ PROC(GENERIC_RV32, {"generic-rv32"}, FK_NONE, {""})
77
PROC(GENERIC_RV64, {"generic-rv64"}, FK_64BIT, {""})
88
PROC(ROCKET_RV32, {"rocket-rv32"}, FK_NONE, {""})
99
PROC(ROCKET_RV64, {"rocket-rv64"}, FK_64BIT, {""})
10-
PROC(BULLET_RV32, {"sifive-7-rv32"}, FK_NONE, {""})
11-
PROC(BULLET_RV64, {"sifive-7-rv64"}, FK_64BIT, {""})
10+
PROC(SIFIVE_732, {"sifive-7-rv32"}, FK_NONE, {""})
11+
PROC(SIFIVE_764, {"sifive-7-rv64"}, FK_64BIT, {""})
1212
PROC(SIFIVE_E31, {"sifive-e31"}, FK_NONE, {"rv32imac"})
1313
PROC(SIFIVE_U54, {"sifive-u54"}, FK_64BIT, {"rv64gc"})
1414
PROC(SIFIVE_E76, {"sifive-e76"}, FK_NONE, {"rv32imafc"})

0 commit comments

Comments
 (0)