Skip to content

Commit 13f972f

Browse files
quaternictgross35
authored andcommitted
apply the rename to aarch64_outline_atomics in builtins-test
1 parent 00a30da commit 13f972f

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

builtins-test/tests/lse.rs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ mod cas {
1919
let mut target = expected.wrapping_add(10);
2020
assert_eq!(
2121
unsafe {
22-
compiler_builtins::aarch64_linux::$name::$name(expected, new, &mut target)
22+
compiler_builtins::aarch64_outline_atomics::$name::$name(
23+
expected,
24+
new,
25+
&mut target,
26+
)
2327
},
2428
expected.wrapping_add(10),
2529
"return value should always be the previous value",
@@ -33,7 +37,11 @@ mod cas {
3337
target = expected;
3438
assert_eq!(
3539
unsafe {
36-
compiler_builtins::aarch64_linux::$name::$name(expected, new, &mut target)
40+
compiler_builtins::aarch64_outline_atomics::$name::$name(
41+
expected,
42+
new,
43+
&mut target,
44+
)
3745
},
3846
expected
3947
);
@@ -54,7 +62,9 @@ mod swap {
5462
builtins_test::fuzz_2(10000, |left: super::int_ty!($bytes), mut right| {
5563
let orig_right = right;
5664
assert_eq!(
57-
unsafe { compiler_builtins::aarch64_linux::$name::$name(left, &mut right) },
65+
unsafe {
66+
compiler_builtins::aarch64_outline_atomics::$name::$name(left, &mut right)
67+
},
5868
orig_right
5969
);
6070
assert_eq!(left, right);
@@ -74,7 +84,7 @@ macro_rules! test_op {
7484
let mut target = old;
7585
let op: fn(super::int_ty!($bytes), super::int_ty!($bytes)) -> _ = $($op)*;
7686
let expected = op(old, val);
77-
assert_eq!(old, unsafe { compiler_builtins::aarch64_linux::$name::$name(val, &mut target) }, "{} should return original value", stringify!($name));
87+
assert_eq!(old, unsafe { compiler_builtins::aarch64_outline_atomics::$name::$name(val, &mut target) }, "{} should return original value", stringify!($name));
7888
assert_eq!(expected, target, "{} should store to target", stringify!($name));
7989
});
8090
}

0 commit comments

Comments
 (0)