summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/tl/thumb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/tl/thumb.c b/utils/tl/thumb.c
index 0c568a37..a309f82b 100644
--- a/utils/tl/thumb.c
+++ b/utils/tl/thumb.c
@@ -1444,6 +1444,9 @@ if(debug['G']) print("%ulx: %s: thumb\n", (ulong)(p->pc), p->from.sym->name);
break;
}
+ if (p->scond & C_SBIT)
+ o1 |= (1 << 4);
+
/* Only certain ranges of constants are supported. */
if ((instoffset & 0xff) == instoffset) {
o1 |= r | (rt<<24) | (instoffset << 16);