mirror of
https://github.com/irmen/prog8.git
synced 2026-10-22 05:02:58 +00:00
attempt to fix github runner OOM
This commit is contained in:
1 parent
9c53791ef4
commit
05cbe74a60
2 files changed
+4
-4
No files matched your search
@@ -31,7 +31,7 @@ jobs:
|
||||
run: ./gradlew compileKotlin compileTestKotlin --console=plain
|
||||
|
||||
- name: Test
|
||||
run: ./gradlew test --continue --console=plain
|
||||
run: ./gradlew test --continue --max-workers=3 --console=plain
|
||||
|
||||
- name: Package
|
||||
run: |
|
||||
@@ -52,4 +52,3 @@ jobs:
|
||||
with:
|
||||
name: test-results
|
||||
path: compiler/build/test-results/test/
|
||||
|
||||
@@ -291,12 +291,13 @@ main {
|
||||
// with optimization the IR should contain the new post-inc ops
|
||||
val resOpt = compileText(Qemu68kTarget(), optimize = true, src, outputDir, writeAssembly = true, assemble = false)
|
||||
resOpt shouldNotBe null
|
||||
val p8ir = outputDir.toFile().walkTopDown().firstOrNull { it.extension == "p8ir" }?.readText() ?: ""
|
||||
val optimized = resOpt!!
|
||||
val p8ir = optimized.compilationOptions.outputDir.resolve("${optimized.compilerAst.name}.p8ir").toFile().readText()
|
||||
// check that the optimized IR uses the fused ops (single type specifier, no second type field)
|
||||
(p8ir.contains("loadp_inc.b") || p8ir.contains("loadp_inc")) shouldBe true
|
||||
(p8ir.contains("storep_inc.b") || p8ir.contains("storep_inc")) shouldBe true
|
||||
// and that the m68k assembly uses post-increment addressing (a0)+
|
||||
val asm = outputDir.toFile().walkTopDown().filter { it.extension == "asm" }.map { it.readText() }.joinToString("\n")
|
||||
val asm = optimized.compilationOptions.outputDir.resolve("${optimized.compilerAst.name}.asm").toFile().readText()
|
||||
val lines = asm.lines().map { it.trim() }
|
||||
lines.any { it.contains("(a0)+") } shouldBe true
|
||||
// cx16 must still compile (fallback lowers loadp_inc to $22 indirect + inc)
|
||||
|
||||
Reference in new issue
Block a user