Skip to content

Commit fa97735

Browse files
Hpmasontrha
authored andcommitted
update asm code to working state
1 parent e5fc8ea commit fa97735

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/arch/x86/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ mod tests {
4444
asm!(
4545
"
4646
xor eax, eax
47-
je ret5
47+
je 5f
4848
mov eax, 2
49-
jmp done
50-
ret5:
49+
jmp 1f
50+
5:
5151
mov eax, 5
52-
done:
52+
1:
5353
ret",
5454
options(noreturn)
5555
);
@@ -103,11 +103,11 @@ mod tests {
103103
unsafe extern "C" fn external_loop() -> i32 {
104104
asm!(
105105
"
106-
loop dest
106+
loop 1f
107107
nop
108108
nop
109109
nop
110-
dest:",
110+
1:",
111111
options(noreturn)
112112
);
113113
}

0 commit comments

Comments
 (0)