Skip to content

Commit 428305a

Browse files
committed
Correct some tests
1 parent 190b3ab commit 428305a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

clang/test/Driver/riscv-cpus.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,10 @@
407407

408408
// -march=unset erases previous march
409409
// RUN: %clang --target=riscv32 -### -c %s 2>&1 -march=rv32imc -march=unset -mcpu=sifive-e31 | FileCheck -check-prefix=MARCH-UNSET %s
410-
// MARCH-UNSET: "-nostdsysteminc" "-target-cpu" "sifive-e31" "-target-feature" "+m" "-target-feature" "+a" "-target-feature" "+c"
410+
// MARCH-UNSET: "-nostdsysteminc" "-target-cpu" "sifive-e31"
411+
// MARCH-UNSET: "-target-feature" "+m"
412+
// MARCH-UNSET: "-target-feature" "+a"
413+
// MARCH-UNSET: "-target-feature" "+c"
411414
// MARCH-UNSET-SAME: "-target-abi" "ilp32"
412415

413416
// Check interaction between -mcpu and mtune, -mtune won't affect arch related

flang/test/Driver/target-cpu-features.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
! CHECK-X86_64H-SAME: "-target-cpu" "x86-64" "-target-feature" "-rdrnd" "-target-feature" "-aes" "-target-feature" "-pclmul" "-target-feature" "-rtm" "-target-feature" "-fsgsbase"
7575

7676
! CHECK-RV64: "-fc1" "-triple" "riscv64-unknown-linux-gnu"
77-
! CHECK-RV64-SAME: "-target-cpu" "generic-rv64" "-target-feature" "+m" "-target-feature" "+a" "-target-feature" "+f" "-target-feature" "+d" "-target-feature" "+c"
77+
! CHECK-RV64-SAME: "-target-cpu" "generic-rv64" "-target-feature" "+i" "-target-feature" "+m" "-target-feature" "+a" "-target-feature" "+f" "-target-feature" "+d" "-target-feature" "+c"
7878

7979
! CHECK-AMDGPU: "-fc1" "-triple" "amdgcn-amd-amdhsa"
8080
! CHECK-AMDGPU-SAME: "-target-cpu" "gfx908"

0 commit comments

Comments
 (0)