Skip to content

Commit 864bfc1

Browse files
committed
Fixes Issue #606
1 parent 6721d7e commit 864bfc1

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

‎arm/Asmexpand.ml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ let offset_in_range chunk ofs =
167167
match chunk with
168168
| Mint8signed | Mint16signed | Mint16unsigned ->
169169
Int.eq (Asmgen.mk_immed_mem_small ofs) ofs
170-
| Mint8unsigned | Mint32 ->
170+
| Mbool | Mint8unsigned | Mint32 ->
171171
Int.eq (Asmgen.mk_immed_mem_word ofs) ofs
172172
| Mfloat32 | Mfloat64 ->
173173
Int.eq (Asmgen.mk_immed_mem_float ofs) ofs

‎x.s‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@ File generated by CompCert 3.18
2+
@ Command line: -S ../CompCert-private/x.c
3+
.syntax unified
4+
.arch armv7-a
5+
.fpu vfpv3-d16
6+
.eabi_attribute Tag_ABI_VFP_args, 1
7+
.arm
8+
.text
9+
.balign 4
10+
.globl f
11+
f:
12+
.cfi_startproc
13+
mov r12, sp
14+
sub sp, sp, #8
15+
.cfi_adjust_cfa_offset 8
16+
str r12, [sp, #0]
17+
str lr, [sp, #4]
18+
.cfi_rel_offset lr, 4
19+
ldrb r0, [r0, #1]
20+
ldr lr, [sp, #4]
21+
add sp, sp, #8
22+
bx lr
23+
.cfi_endproc
24+
.type f, %function
25+
.size f, . - f
26+
27+
.section .note.GNU-stack,"",%progbits

0 commit comments

Comments
 (0)