Skip to content

Commit 54c10ec

Browse files
authored
cgen: fix asm comments of arm32 (#24025)
1 parent cc5f32f commit 54c10ec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vlib/v/gen/c/cheaders.v

+4-4
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ static char __CLOSURE_GET_DATA_BYTES[] = {
113113
static char __closure_thunk[] = {
114114
0x04, 0xC0, 0x4F, 0xE2, // adr ip, here
115115
// here:
116-
0x01, 0xC9, 0x4C, 0xE2, // sub ip, ip, #4000
116+
0x01, 0xC9, 0x4C, 0xE2, // sub ip, ip, #0x4000
117117
0x90, 0xCA, 0x07, 0xEE, // vmov s15, ip
118118
0x00, 0xC0, 0x9C, 0xE5, // ldr ip, [ip, 0]
119119
0x1C, 0xFF, 0x2F, 0xE1 // bx ip
120120
};
121121
static char __CLOSURE_GET_DATA_BYTES[] = {
122-
0x90, 0x0A, 0x17, 0xEE,
123-
0x04, 0x00, 0x10, 0xE5,
124-
0x1E, 0xFF, 0x2F, 0xE1
122+
0x90, 0x0A, 0x17, 0xEE, // vmov r0, s15
123+
0x04, 0x00, 0x10, 0xE5, // ldr r0, [r0, #-4]
124+
0x1E, 0xFF, 0x2F, 0xE1 // bx lr
125125
};
126126
#elif defined (__V_rv64)
127127
static char __closure_thunk[] = {

0 commit comments

Comments
 (0)