File tree 2 files changed +14
-1
lines changed
crates/core_arch/src/x86_64
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -20,3 +20,16 @@ macro_rules! static_assert_sae {
20
20
static_assert!( $imm == 4 || $imm == 8 , "Invalid IMM value" )
21
21
} ;
22
22
}
23
+
24
+ #[ cfg( target_pointer_width = "32" ) ]
25
+ macro_rules! vps {
26
+ ( $inst1: expr, $inst2: expr) => {
27
+ concat!( $inst1, " [{p:e}]" , $inst2)
28
+ } ;
29
+ }
30
+ #[ cfg( target_pointer_width = "64" ) ]
31
+ macro_rules! vps {
32
+ ( $inst1: expr, $inst2: expr) => {
33
+ concat!( $inst1, " [{p}]" , $inst2)
34
+ } ;
35
+ }
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ pub unsafe fn _mm_cvttsd_si64x(a: __m128d) -> i64 {
79
79
#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
80
80
pub unsafe fn _mm_stream_si64 ( mem_addr : * mut i64 , a : i64 ) {
81
81
crate :: arch:: asm!(
82
- "movnti [{p}], {a}" ,
82
+ vps! ( "movnti" , ", {a}") ,
83
83
p = in( reg) mem_addr,
84
84
a = in( reg) a,
85
85
options( nostack, preserves_flags) ,
You can’t perform that action at this time.
0 commit comments