Skip to content

Commit f98bf21

Browse files
committed
fixup! Add clang macro define tests
1 parent b45e20d commit f98bf21

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

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

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

66
// CHECK-NOT: __riscv_xsfcease {{.*$}}
77
// CHECK-NOT: __riscv_xsfvcp {{.*$}}
8+
// CHECK-NOT: __riscv_xsfvfbfexp16e {{.*$}}
9+
// CHECK-NOT: __riscv_xsfvfexp16e {{.*$}}
10+
// CHECK-NOT: __riscv_xsfvfexp32e {{.*$}}
11+
// CHECK-NOT: __riscv_xsfvfexpa {{.*$}}
12+
// CHECK-NOT: __riscv_xsfvfexpa64e {{.*$}}
813
// CHECK-NOT: __riscv_xsfvfnrclipxfqf {{.*$}}
914
// CHECK-NOT: __riscv_xsfvfwmaccqqq {{.*$}}
1015
// CHECK-NOT: __riscv_xsfqmaccdod {{.*$}}
@@ -38,6 +43,46 @@
3843
// RUN: -o - | FileCheck --check-prefix=CHECK-XSFVCP-EXT %s
3944
// CHECK-XSFVCP-EXT: __riscv_xsfvcp 1000000{{$}}
4045

46+
// RUN: %clang --target=riscv32-unknown-linux-gnu \
47+
// RUN: -march=rv32ixsfvfbfexp16e_zvfbfmin -E -dM %s \
48+
// RUN: -o - | FileCheck --check-prefix=CHECK-XSFVFBFEXP16E-EXT %s
49+
// RUN: %clang --target=riscv64-unknown-linux-gnu \
50+
// RUN: -march=rv64ixsfvfbfexp16e_zvfbfmin -E -dM %s \
51+
// RUN: -o - | FileCheck --check-prefix=CHECK-XSFVFBFEXP16E-EXT %s
52+
// CHECK-XSFVFBFEXP16E-EXT: __riscv_xsfvfbfexp16e 5000{{$}}
53+
54+
// RUN: %clang --target=riscv32-unknown-linux-gnu \
55+
// RUN: -march=rv32ixsfvfexp16e -E -dM %s \
56+
// RUN: -o - | FileCheck --check-prefix=CHECK-XSFVFEXP16E-EXT %s
57+
// RUN: %clang --target=riscv64-unknown-linux-gnu \
58+
// RUN: -march=rv64ixsfvfexp16e -E -dM %s \
59+
// RUN: -o - | FileCheck --check-prefix=CHECK-XSFVFEXP16E-EXT %s
60+
// CHECK-XSFVFEXP16E-EXT: __riscv_xsfvfexp16e 5000{{$}}
61+
62+
// RUN: %clang --target=riscv32-unknown-linux-gnu \
63+
// RUN: -march=rv32ixsfvfexp32e -E -dM %s \
64+
// RUN: -o - | FileCheck --check-prefix=CHECK-XSFVFEXP32E-EXT %s
65+
// RUN: %clang --target=riscv64-unknown-linux-gnu \
66+
// RUN: -march=rv64ixsfvfexp32e -E -dM %s \
67+
// RUN: -o - | FileCheck --check-prefix=CHECK-XSFVFEXP32E-EXT %s
68+
// CHECK-XSFVFEXP32E-EXT: __riscv_xsfvfexp32e 5000{{$}}
69+
70+
// RUN: %clang --target=riscv32-unknown-linux-gnu \
71+
// RUN: -march=rv32ixsfvfexpa -E -dM %s \
72+
// RUN: -o - | FileCheck --check-prefix=CHECK-XSFVFEXPA-EXT %s
73+
// RUN: %clang --target=riscv64-unknown-linux-gnu \
74+
// RUN: -march=rv64ixsfvfexpa -E -dM %s \
75+
// RUN: -o - | FileCheck --check-prefix=CHECK-XSFVFEXPA-EXT %s
76+
// CHECK-XSFVFEXPA-EXT: __riscv_xsfvfexpa 2000{{$}}
77+
78+
// RUN: %clang --target=riscv32-unknown-linux-gnu \
79+
// RUN: -march=rv32ixsfvfexpa64e -E -dM %s \
80+
// RUN: -o - | FileCheck --check-prefix=CHECK-XSFVFEXPA64E-EXT %s
81+
// RUN: %clang --target=riscv64-unknown-linux-gnu \
82+
// RUN: -march=rv64ixsfvfexpa64e -E -dM %s \
83+
// RUN: -o - | FileCheck --check-prefix=CHECK-XSFVFEXPA64E-EXT %s
84+
// CHECK-XSFVFEXPA64E-EXT: __riscv_xsfvfexpa64e 2000{{$}}
85+
4186
// RUN: %clang --target=riscv32-unknown-linux-gnu \
4287
// RUN: -march=rv32ixsfvfnrclipxfqf -E -dM %s \
4388
// RUN: -o - | FileCheck --check-prefix=CHECK-XSFVFNRCLIPXFQF-EXT %s

0 commit comments

Comments
 (0)