]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Tests: Add RISC-V filter support in a few places.
authorJia Tan <jiat0218@gmail.com>
Tue, 13 Feb 2024 14:38:58 +0000 (22:38 +0800)
committerJia Tan <jiat0218@gmail.com>
Tue, 13 Feb 2024 15:33:27 +0000 (23:33 +0800)
tests/test_filter_flags.c
tests/test_filter_str.c

index 6d9f0b932f7b934f7d65de1c51ed2c8cd6458cd3..a889323961a13bd2b89b39ec108885ce7f91b636 100644 (file)
@@ -48,6 +48,9 @@ static lzma_filter bcj_filters_encoders[] = {
 #ifdef HAVE_ENCODER_SPARC
        { LZMA_FILTER_SPARC, NULL },
 #endif
+#ifdef HAVE_ENCODER_RISCV
+       { LZMA_FILTER_RISCV, NULL },
+#endif
 };
 
 // HAVE_ENCODERS ifdef not terminated here because decoders are
@@ -77,6 +80,9 @@ static lzma_filter bcj_filters_decoders[] = {
 #ifdef HAVE_DECODER_SPARC
        { LZMA_FILTER_SPARC, NULL },
 #endif
+#ifdef HAVE_DECODER_RISCV
+       { LZMA_FILTER_RISCV, NULL },
+#endif
 };
 #endif
 #endif
index 15aee55ab27667cf8b8973fe619a713a8a251089..c57473aea9fe3671af5ab4923dbd641a0b0cdf1e 100644 (file)
@@ -466,6 +466,9 @@ static const char supported_decoders[][9] = {
 #ifdef HAVE_DECODER_ARM64
        "arm64",
 #endif
+#ifdef HAVE_DECODER_RISCV
+       "riscv",
+#endif
 #ifdef HAVE_DECODER_DELTA
        "delta",
 #endif
@@ -494,6 +497,9 @@ static const char supported_filters[][9] = {
 #if defined(HAVE_ENCODER_ARM64) || defined(HAVE_DECODER_ARM64)
        "arm64",
 #endif
+#if defined(HAVE_ENCODER_RISCV) || defined(HAVE_DECODER_RISCV)
+       "riscv",
+#endif
 #if defined(HAVE_ENCODER_DELTA) || defined(HAVE_DECODER_DELTA)
        "delta",
 #endif