[clang] 975da02 - [modules][test] Bump maximum size for embed-files-compressed.cpp for the sake of RISC-V (#111360)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 7 23:42:32 PDT 2024
Author: Alex Bradbury
Date: 2024-10-08T07:42:29+01:00
New Revision: 975da028f78546729f0e78711a4b92107c92ec8e
URL: https://github.com/llvm/llvm-project/commit/975da028f78546729f0e78711a4b92107c92ec8e
DIFF: https://github.com/llvm/llvm-project/commit/975da028f78546729f0e78711a4b92107c92ec8e.diff
LOG: [modules][test] Bump maximum size for embed-files-compressed.cpp for the sake of RISC-V (#111360)
The size of a.pcm produced by an RV64 clang running natively is 67416
bytes, causing this test to fail. Bump up the maximum size. The test
still retains its original intent as far as I can see, as it's really
trying to ensure that compressing kicks in and reduces the
multi-megabyte input.
Added:
Modified:
clang/test/Modules/embed-files-compressed.cpp
Removed:
################################################################################
diff --git a/clang/test/Modules/embed-files-compressed.cpp b/clang/test/Modules/embed-files-compressed.cpp
index 873b3082a2fdfa..aca9983ff160b6 100644
--- a/clang/test/Modules/embed-files-compressed.cpp
+++ b/clang/test/Modules/embed-files-compressed.cpp
@@ -17,7 +17,7 @@
// RUN: %clang_cc1 -fmodules -I%t -fmodules-cache-path=%t -fmodule-name=a -emit-module %t/modulemap -fmodules-embed-all-files -o %t/a.pcm
//
// The above embeds ~4.5MB of highly-predictable /s and \ns into the pcm file.
-// Check that the resulting file is under 60KB:
+// Check that the resulting file is under 80KB:
//
// RUN: wc -c %t/a.pcm | FileCheck --check-prefix=CHECK-SIZE %s
-// CHECK-SIZE: {{(^|[^0-9])[1-5][0-9][0-9][0-9][0-9]($|[^0-9])}}
+// CHECK-SIZE: {{(^|[^0-9])[1-7][0-9][0-9][0-9][0-9]($|[^0-9])}}
More information about the cfe-commits
mailing list