Skip to content

Commit e8baebb

Browse files
committed
Delete unportable test
1 parent 564235c commit e8baebb

3 files changed

Lines changed: 0 additions & 15 deletions

File tree

tests/unit/builtin.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ static void test_mul_overflow_long_long(void) {
6767
assert(__builtin_mul_overflow(LLONG_MAX, 2LL, &r));
6868
}
6969

70-
#if defined(__x86_64__) || defined(__i386__)
71-
static void test_ia32_pause(void) { __builtin_ia32_pause(); }
72-
#endif
73-
7470
int main(void) {
7571
test_expect();
7672
test_ctz();
@@ -82,8 +78,5 @@ int main(void) {
8278
test_popcountl();
8379
test_mul_overflow_long();
8480
test_mul_overflow_long_long();
85-
#if defined(__x86_64__) || defined(__i386__)
86-
test_ia32_pause();
87-
#endif
8881
return 0;
8982
}

tests/unit/out/refcount/builtin.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ pub fn test_mul_overflow_long_long_9() {
6969
ovf
7070
});
7171
}
72-
pub fn test_ia32_pause_10() {
73-
std::hint::spin_loop();
74-
}
7572
pub fn main() {
7673
std::process::exit(main_0());
7774
}
@@ -86,6 +83,5 @@ fn main_0() -> i32 {
8683
({ test_popcountl_7() });
8784
({ test_mul_overflow_long_8() });
8885
({ test_mul_overflow_long_long_9() });
89-
({ test_ia32_pause_10() });
9086
return 0;
9187
}

tests/unit/out/unsafe/builtin.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ pub unsafe fn test_mul_overflow_long_long_9() {
6969
ovf
7070
});
7171
}
72-
pub unsafe fn test_ia32_pause_10() {
73-
std::hint::spin_loop();
74-
}
7572
pub fn main() {
7673
unsafe {
7774
std::process::exit(main_0() as i32);
@@ -88,6 +85,5 @@ unsafe fn main_0() -> i32 {
8885
(unsafe { test_popcountl_7() });
8986
(unsafe { test_mul_overflow_long_8() });
9087
(unsafe { test_mul_overflow_long_long_9() });
91-
(unsafe { test_ia32_pause_10() });
9288
return 0;
9389
}

0 commit comments

Comments
 (0)