Skip to content

Commit 221c9b4

Browse files
committed
Add pre-defined macro testcase for XAndesVBFHCvt
1 parent 66907da commit 221c9b4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

clang/test/Preprocessor/riscv-target-features-andes.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
// RUN: -o - | FileCheck --check-prefix=CHECK-XANDESPERF %s
1616
// CHECK-XANDESPERF: __riscv_xandesperf 5000000{{$}}
1717

18+
// RUN: %clang --target=riscv32 \
19+
// RUN: -march=rv32i_xandesvbfhcvt -E -dM %s \
20+
// RUN: -o - | FileCheck --check-prefix=CHECK-XANDESVBFHCVT %s
21+
// RUN: %clang --target=riscv64 \
22+
// RUN: -march=rv64i_xandesvbfhcvt -E -dM %s \
23+
// RUN: -o - | FileCheck --check-prefix=CHECK-XANDESVBFHCVT %s
24+
// CHECK-XANDESVBFHCVT: __riscv_xandesvbfhcvt 5000000{{$}}
25+
1826
// RUN: %clang --target=riscv32 \
1927
// RUN: -march=rv32i_xandesvpackfph -E -dM %s \
2028
// RUN: -o - | FileCheck --check-prefix=CHECK-XANDESVPACKFPH %s

0 commit comments

Comments
 (0)