Skip to content

Commit ee144cf

Browse files
committed
Fix asm labels
1 parent 275acf2 commit ee144cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler-builtins/src/x86.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ intrinsics! {
3030
"push ecx",
3131
"cmp eax, 0x1000",
3232
"lea ecx, [esp + 8]", // esp before calling this routine -> ecx
33-
"jb 1f",
33+
"jb 3f",
3434
"2:",
3535
"sub ecx, 0x1000",
3636
"test [ecx], ecx",
3737
"sub eax, 0x1000",
3838
"cmp eax, 0x1000",
3939
"ja 2b",
40-
"1:",
40+
"3:",
4141
"sub ecx, eax",
4242
"test [ecx], ecx",
4343
"lea eax, [esp + 4]", // load pointer to the return address into eax

compiler-builtins/src/x86_64.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ intrinsics! {
2323
"push rax",
2424
"cmp rax, 0x1000",
2525
"lea rcx, [rsp + 24]",
26-
"jb 1f",
26+
"jb 3f",
2727
"2:",
2828
"sub rcx, 0x1000",
2929
"test [rcx], rcx",
3030
"sub rax, 0x1000",
3131
"cmp rax, 0x1000",
3232
"ja 2b",
33-
"1:",
33+
"3:",
3434
"sub rcx, rax",
3535
"test [rcx], rcx",
3636
"pop rax",

0 commit comments

Comments
 (0)