test: Reduce standard library test overhead
3ee3621ad99a5629e783c37b2aa4032a31b03813a5c60f92683dcefaff68048a
Keep exhaustive blit size checks for register operands and check spilled and aliased operands at copy boundaries. Reduce package compilations from 708 to 308 and guest instructions by 68 percent. Set the default integration worker count to eight. Assisted-by: Codex:gpt-6 Change-Id: I884d75d45e332026f6bbe773c8f0bc512df01dd1
1 parent
4130eff6
lib/std/arch/rv64/shared/tests/run.rad
+16 -5
| 1241 | 1241 | /// for every size from zero to forty and some larger ones, also sizes that the alignment does |
|
| 1242 | 1242 | /// not divide. It leaves the addresses intact, also when they are spilled or equal. |
|
| 1243 | 1243 | @test unsafe fn blitCopies() throws (testing::TestError) { |
|
| 1244 | 1244 | for boundary in BOUNDARIES { |
|
| 1245 | 1245 | for mode in MODES { |
|
| 1246 | - | for size in 0 .. SMALL_SIZES { |
|
| 1247 | - | try expectBlit(size, boundary, mode); |
|
| 1248 | - | } |
|
| 1249 | - | for large in LARGE_SIZES { |
|
| 1250 | - | try expectBlit(large, boundary, mode); |
|
| 1246 | + | if mode == BlitMode::Registers { |
|
| 1247 | + | for size in 0 .. SMALL_SIZES { |
|
| 1248 | + | try expectBlit(size, boundary, mode); |
|
| 1249 | + | } |
|
| 1250 | + | for large in LARGE_SIZES { |
|
| 1251 | + | try expectBlit(large, boundary, mode); |
|
| 1252 | + | } |
|
| 1253 | + | } else { |
|
| 1254 | + | let loopStart = (rv64::BLIT_UNROLL_UNITS + 1) * boundary; |
|
| 1255 | + | // The last unrolled size uses every smaller access width. |
|
| 1256 | + | for size in [ |
|
| 1257 | + | 0 as u32, 1, boundary, boundary + 1, |
|
| 1258 | + | loopStart - 1, loopStart, loopStart + 1, 2051, 2056, |
|
| 1259 | + | ] { |
|
| 1260 | + | try expectBlit(size, boundary, mode); |
|
| 1261 | + | } |
|
| 1251 | 1262 | } |
|
| 1252 | 1263 | } |
|
| 1253 | 1264 | } |
|
| 1254 | 1265 | } |
|
| 1255 | 1266 |
test/Makefile
+1 -1
| 1 | 1 | # Test suites and machine fixture matrix. Run from the repository root. |
|
| 2 | 2 | # JOBS controls workers in the integration driver. |
|
| 3 | - | JOBS ?= 1 |
|
| 3 | + | JOBS ?= 8 |
|
| 4 | 4 | TEST_HARTS := 1 2 8 |
|
| 5 | 5 | SMP_TESTS := $(addprefix smp-test-,$(TEST_HARTS)) |
|
| 6 | 6 | CYCLES_TESTS := $(addprefix cycles-test-,$(TEST_HARTS)) |
|
| 7 | 7 | TESTS := \ |
|
| 8 | 8 | seed-test \ |