@@ -17,7 +17,7 @@ mod cas {
1717 testcrate:: fuzz_2 ( 10000 , |expected : super :: int_ty!( $bytes) , new| {
1818 let mut target = expected. wrapping_add ( 10 ) ;
1919 assert_eq ! (
20- unsafe { compiler_builtins:: aarch64 :: $name:: $name( expected, new, & mut target) } ,
20+ unsafe { compiler_builtins:: aarch64_linux :: $name:: $name( expected, new, & mut target) } ,
2121 expected. wrapping_add( 10 ) ,
2222 "return value should always be the previous value" ,
2323 ) ;
@@ -29,7 +29,7 @@ mod cas {
2929
3030 target = expected;
3131 assert_eq ! (
32- unsafe { compiler_builtins:: aarch64 :: $name:: $name( expected, new, & mut target) } ,
32+ unsafe { compiler_builtins:: aarch64_linux :: $name:: $name( expected, new, & mut target) } ,
3333 expected
3434 ) ;
3535 assert_eq ! ( target, new, "should have updated target" ) ;
@@ -49,7 +49,7 @@ mod swap {
4949 testcrate:: fuzz_2 ( 10000 , |left : super :: int_ty!( $bytes) , mut right| {
5050 let orig_right = right;
5151 assert_eq ! (
52- unsafe { compiler_builtins:: aarch64 :: $name:: $name( left, & mut right) } ,
52+ unsafe { compiler_builtins:: aarch64_linux :: $name:: $name( left, & mut right) } ,
5353 orig_right
5454 ) ;
5555 assert_eq ! ( left, right) ;
@@ -69,7 +69,7 @@ macro_rules! test_op {
6969 let mut target = old;
7070 let op: fn ( super :: int_ty!( $bytes) , super :: int_ty!( $bytes) ) -> _ = $( $op) * ;
7171 let expected = op( old, val) ;
72- assert_eq!( old, unsafe { compiler_builtins:: aarch64 :: $name:: $name( val, & mut target) } , "{} should return original value" , stringify!( $name) ) ;
72+ assert_eq!( old, unsafe { compiler_builtins:: aarch64_linux :: $name:: $name( val, & mut target) } , "{} should return original value" , stringify!( $name) ) ;
7373 assert_eq!( expected, target, "{} should store to target" , stringify!( $name) ) ;
7474 } ) ;
7575 }
0 commit comments