From 0312e827261b8e0b9c787d2fc81535c37f0ea091 Mon Sep 17 00:00:00 2001 From: Walter Bright Date: Sun, 16 Mar 2025 23:43:33 -0700 Subject: [PATCH] it is IFL1 not IFL2 (#21010) --- compiler/src/dmd/backend/arm/cod1.d | 2 +- compiler/src/dmd/backend/arm/cod3.d | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/src/dmd/backend/arm/cod1.d b/compiler/src/dmd/backend/arm/cod1.d index 761645732a..f55a173280 100644 --- a/compiler/src/dmd/backend/arm/cod1.d +++ b/compiler/src/dmd/backend/arm/cod1.d @@ -292,7 +292,7 @@ int isscaledindex(tym_t ty, elem* e) @trusted void logexp(ref CodeBuilder cdb, elem* e, uint jcond, FL fltarg, code* targ) { - //printf("logexp(e = %p, jcond = %d)\n", e, jcond); elem_print(e); + //printf("logexp(e: %p jcond: %d fltarg: %d targ: %p)\n", e, jcond, fltarg == FL.code, targ); elem_print(e); if (tybasic(e.Ety) == TYnoreturn) { con_t regconsave = cgstate.regcon; diff --git a/compiler/src/dmd/backend/arm/cod3.d b/compiler/src/dmd/backend/arm/cod3.d index 1060a296b3..bb4ced95f9 100644 --- a/compiler/src/dmd/backend/arm/cod3.d +++ b/compiler/src/dmd/backend/arm/cod3.d @@ -1527,7 +1527,7 @@ void jmpaddr(code* c) { const op = c.Iop; //printf("%08X ", c.Iop); disassemble(c.Iop); - if (isBranch(op) && c.IFL2 == FL.code) // or CALL? + if (isBranch(op) && c.IFL1 == FL.code) // or CALL? { ci = code_next(c); ctarg = c.IEV1.Vcode; /* target code */