File tree 3 files changed +9
-8
lines changed
3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ mod asm_impl {
16
16
/// prefetch data
17
17
#[ inline]
18
18
pub unsafe extern "C" fn prefetch ( data : * const usize ) {
19
- asm ! (
19
+ llvm_asm ! (
20
20
"prefetcht1 $0"
21
21
: // no output
22
22
: "m" ( * data)
@@ -28,7 +28,7 @@ mod asm_impl {
28
28
#[ naked]
29
29
#[ inline( never) ]
30
30
pub unsafe extern "C" fn bootstrap_green_task ( ) {
31
- asm ! (
31
+ llvm_asm ! (
32
32
"
33
33
mov %r12, %rdi // setup the function arg
34
34
mov %r13, %rsi // setup the function arg
@@ -46,7 +46,7 @@ mod asm_impl {
46
46
#[ inline( never) ]
47
47
pub unsafe extern "C" fn swap_registers ( out_regs : * mut Registers , in_regs : * const Registers ) {
48
48
// The first argument is in %rdi, and the second one is in %rsi
49
- asm ! (
49
+ llvm_asm ! (
50
50
""
51
51
:
52
52
: "{rdi}" ( out_regs) , "{rsi}" ( in_regs)
@@ -58,7 +58,7 @@ mod asm_impl {
58
58
#[ naked]
59
59
unsafe extern "C" fn _swap_reg ( ) {
60
60
// Save registers
61
- asm ! (
61
+ llvm_asm ! (
62
62
"
63
63
mov %rbx, (0*8)(%rdi)
64
64
mov %rsp, (1*8)(%rdi)
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ mod asm_impl {
22
22
/// prefetch data
23
23
#[ inline]
24
24
pub unsafe extern "C" fn prefetch_asm ( data : * const usize ) {
25
- asm ! (
25
+ llvm_asm ! (
26
26
"prefetcht1 $0"
27
27
: // no output
28
28
: "m" ( * data)
@@ -34,7 +34,7 @@ mod asm_impl {
34
34
#[ naked]
35
35
#[ inline( never) ]
36
36
pub unsafe extern "C" fn bootstrap_green_task ( ) {
37
- asm ! (
37
+ llvm_asm ! (
38
38
"
39
39
mov %r12, %rcx // setup the function arg
40
40
mov %r13, %rdx // setup the function arg
@@ -52,7 +52,7 @@ mod asm_impl {
52
52
#[ inline( never) ]
53
53
pub unsafe extern "C" fn swap_registers ( out_regs : * mut Registers , in_regs : * const Registers ) {
54
54
// The first argument is in %rcx, and the second one is in %rdx
55
- asm ! (
55
+ llvm_asm ! (
56
56
""
57
57
:
58
58
: "{rcx}" ( out_regs) , "{rdx}" ( in_regs)
@@ -64,7 +64,7 @@ mod asm_impl {
64
64
#[ naked]
65
65
unsafe extern "C" fn _swap_reg ( ) {
66
66
// Save registers
67
- asm ! (
67
+ llvm_asm ! (
68
68
"
69
69
mov %rbx, (0*8)(%rcx)
70
70
mov %rsp, (1*8)(%rcx)
Original file line number Diff line number Diff line change 4
4
//!
5
5
6
6
#![ cfg_attr( nightly, feature( asm) ) ]
7
+ #![ cfg_attr( nightly, feature( llvm_asm) ) ]
7
8
#![ cfg_attr( nightly, feature( repr_simd) ) ]
8
9
#![ cfg_attr( nightly, feature( core_intrinsics) ) ]
9
10
#![ cfg_attr( nightly, feature( naked_functions) ) ]
You can’t perform that action at this time.
0 commit comments