Skip to content

Commit 37d3490

Browse files
committed
Disable quickcheck tests on mips
Two reasons: * the C versions __divti3 and __modti3 are apparently broken, at least when used in quickcheck. They change their own arguments. * compiler_rt's support for mips is disabled already on clang [1]. Its desireable to support working "cargo test" on that compiler as well, and not greet the tester with linker errors. [1]: http://llvm.org/viewvc/llvm-project?view=revision&revision=224488
1 parent f8a4e3f commit 37d3490

File tree

5 files changed

+21
-6
lines changed

5 files changed

+21
-6
lines changed

compiler-rt/compiler-rt-cdylib/src/lib.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ declare!(___adddf3, __adddf3);
5858
declare!(___powisf2, __powisf2);
5959
declare!(___powidf2, __powidf2);
6060

61-
#[cfg(all(not(windows), target_pointer_width="64"))]
61+
#[cfg(all(not(windows),
62+
not(target_arch = "mips64"),
63+
not(target_arch = "mips64el"),
64+
target_pointer_width="64"))]
6265
pub mod int_128 {
6366
extern {
6467
fn __lshrti3();

src/int/mul.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ mod tests {
122122
}
123123

124124
#[cfg(test)]
125-
#[cfg(all(not(windows), target_pointer_width="64"))]
125+
#[cfg(all(not(windows),
126+
not(target_arch = "mips64"),
127+
not(target_arch = "mips64el"),
128+
target_pointer_width="64"))]
126129
mod tests_i128 {
127130
use qc::I128;
128131

src/int/sdiv.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,14 @@ mod tests {
164164
}
165165

166166
#[cfg(test)]
167-
#[cfg(all(not(windows), target_pointer_width="64"))]
167+
#[cfg(all(not(windows),
168+
not(target_arch = "mips64"),
169+
not(target_arch = "mips64el"),
170+
target_pointer_width="64"))]
168171
mod tests_i128 {
169172
use qc::U128;
170-
171173
check! {
174+
172175
fn __divti3(f: extern fn(i128, i128) -> i128, n: U128, d: U128) -> Option<i128> {
173176
let (n, d) = (n.0 as i128, d.0 as i128);
174177
if d == 0 {

src/int/shift.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ mod tests {
105105
}
106106

107107
#[cfg(test)]
108-
#[cfg(all(not(windows), target_pointer_width="64"))]
108+
#[cfg(all(not(windows),
109+
not(target_arch = "mips64"),
110+
not(target_arch = "mips64el"),
111+
target_pointer_width="64"))]
109112
mod tests_i128 {
110113
use qc::{I128, U128};
111114

src/int/udiv.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,10 @@ mod tests {
382382
}
383383

384384
#[cfg(test)]
385-
#[cfg(all(not(windows), target_pointer_width="64"))]
385+
#[cfg(all(not(windows),
386+
not(target_arch = "mips64"),
387+
not(target_arch = "mips64el"),
388+
target_pointer_width="64"))]
386389
mod tests_i128 {
387390
use qc::U128;
388391

0 commit comments

Comments
 (0)