@@ -17,7 +17,9 @@ mod cas {
17
17
testcrate:: fuzz_2 ( 10000 , |expected : super :: int_ty!( $bytes) , new| {
18
18
let mut target = expected. wrapping_add ( 10 ) ;
19
19
assert_eq ! (
20
- unsafe { compiler_builtins:: aarch64:: $name:: $name( expected, new, & mut target) } ,
20
+ unsafe {
21
+ compiler_builtins:: aarch64_linux:: $name:: $name( expected, new, & mut target)
22
+ } ,
21
23
expected. wrapping_add( 10 ) ,
22
24
"return value should always be the previous value" ,
23
25
) ;
@@ -29,7 +31,9 @@ mod cas {
29
31
30
32
target = expected;
31
33
assert_eq ! (
32
- unsafe { compiler_builtins:: aarch64:: $name:: $name( expected, new, & mut target) } ,
34
+ unsafe {
35
+ compiler_builtins:: aarch64_linux:: $name:: $name( expected, new, & mut target)
36
+ } ,
33
37
expected
34
38
) ;
35
39
assert_eq ! ( target, new, "should have updated target" ) ;
@@ -49,7 +53,7 @@ mod swap {
49
53
testcrate:: fuzz_2 ( 10000 , |left : super :: int_ty!( $bytes) , mut right| {
50
54
let orig_right = right;
51
55
assert_eq ! (
52
- unsafe { compiler_builtins:: aarch64 :: $name:: $name( left, & mut right) } ,
56
+ unsafe { compiler_builtins:: aarch64_linux :: $name:: $name( left, & mut right) } ,
53
57
orig_right
54
58
) ;
55
59
assert_eq ! ( left, right) ;
@@ -69,7 +73,7 @@ macro_rules! test_op {
69
73
let mut target = old;
70
74
let op: fn ( super :: int_ty!( $bytes) , super :: int_ty!( $bytes) ) -> _ = $( $op) * ;
71
75
let expected = op( old, val) ;
72
- assert_eq!( old, unsafe { compiler_builtins:: aarch64 :: $name:: $name( val, & mut target) } , "{} should return original value" , stringify!( $name) ) ;
76
+ assert_eq!( old, unsafe { compiler_builtins:: aarch64_linux :: $name:: $name( val, & mut target) } , "{} should return original value" , stringify!( $name) ) ;
73
77
assert_eq!( expected, target, "{} should store to target" , stringify!( $name) ) ;
74
78
} ) ;
75
79
}
0 commit comments