]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Fix 'E' extension version to test
authorTsukasa OI <research_trasio@irq.a4lg.com>
Thu, 30 Nov 2023 02:37:54 +0000 (02:37 +0000)
committerTsukasa OI <research_trasio@irq.a4lg.com>
Thu, 30 Nov 2023 02:54:34 +0000 (02:54 +0000)
Commit 006e90e1 ("RISC-V: Initial RV64E and LP64E support") caused a
regression (test failure) but this is caused by failing to track GCC
changes in that test case (not a true GCC bug).

This commit fixes the test case to track the latest GCC with 'E'
extension version 2.0 (ratified).

gcc/testsuite/ChangeLog:

* gcc.target/riscv/predef-13.c: Fix 'E' extension version to test.

gcc/testsuite/gcc.target/riscv/predef-13.c

index 3836255c85536b4449ceb645a189054e3841e3e1..93ebb337dbd5d4191b48e7fc6c3421ff701d1d52 100644 (file)
@@ -19,7 +19,7 @@ int main () {
 #error "__riscv_c"
 #endif
 
-#if !defined(__riscv_e) || (__riscv_e != (1 * 1000 * 1000 + 9 * 1000))
+#if !defined(__riscv_e) || (__riscv_e != (2 * 1000 * 1000 + 0 * 1000))
 #error "__riscv_e"
 #endif