NAME=mach0 thumb entrypoint bits
FILE=bins/mach0/thumb-test
CMDS=e asm.bits
EXPECT=<<EOF
16
EOF
RUN

NAME=mach0 thumb entrypoint info
FILE=bins/mach0/thumb-test
CMDS=ie:quiet
EXPECT=<<EOF
0x0000bfa4 0x00007fa4 ---------- 0x00000344 program
EOF
RUN

NAME=mach0 non-thumb symbol on thumb bin
FILE=bins/mach0/thumb-test
CMDS=pi 1@ sym.imp.strcmp
EXPECT=<<EOF
ldr pc, [reloc.strcmp.c000]
EOF
RUN

NAME=BatteryLife thumb/arm
FILE=bins/mach0/BatteryLife.arm_32.0
CMDS=<<EOF
e asm.bytes=0
e asm.lines.bb=0
e asm.comments=0
pd 1~push
e analysis.in=range
e analysis.from=$$
e analysis.to=$$+4K
aae
pd 1~push
EOF
EXPECT=<<EOF
  0x00015e24      push  {r4, r5, r6, r7, lr}
  0x00015e24      push  {r4, r5, r6, r7, lr}
EOF
RUN
