Merge pull request #287 from alexcrichton/reenable-mips
Enable historically segfaulting tests on MIPS
This commit is contained in:
commit
fd7d1b0a45
|
@ -594,14 +594,12 @@ fn main() {
|
||||||
}");
|
}");
|
||||||
gen(|(a, b): (MyI128, MyI128)| Some(a.0.wrapping_mul(b.0)),
|
gen(|(a, b): (MyI128, MyI128)| Some(a.0.wrapping_mul(b.0)),
|
||||||
"builtins::int::mul::__multi3(a, b)");
|
"builtins::int::mul::__multi3(a, b)");
|
||||||
if !target_arch_mips { // FIXME(#137)
|
|
||||||
gen(|(a, b): (MyI128, MyI128)| Some(a.0.overflowing_mul(b.0)),
|
gen(|(a, b): (MyI128, MyI128)| Some(a.0.overflowing_mul(b.0)),
|
||||||
"{
|
"{
|
||||||
let mut o = 2;
|
let mut o = 2;
|
||||||
let c = builtins::int::mul::__muloti4(a, b, &mut o);
|
let c = builtins::int::mul::__muloti4(a, b, &mut o);
|
||||||
(c, match o { 0 => false, 1 => true, _ => panic!() })
|
(c, match o { 0 => false, 1 => true, _ => panic!() })
|
||||||
}");
|
}");
|
||||||
}
|
|
||||||
|
|
||||||
// int/sdiv.rs
|
// int/sdiv.rs
|
||||||
gen(|(a, b): (MyI64, MyI64)| {
|
gen(|(a, b): (MyI64, MyI64)| {
|
||||||
|
@ -658,7 +656,6 @@ fn main() {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"builtins::int::sdiv::__moddi3(a, b)");
|
"builtins::int::sdiv::__moddi3(a, b)");
|
||||||
if !target_arch_mips { // FIXME(#137)
|
|
||||||
gen(|(a, b): (MyI128, MyI128)| {
|
gen(|(a, b): (MyI128, MyI128)| {
|
||||||
if b.0 == 0 {
|
if b.0 == 0 {
|
||||||
None
|
None
|
||||||
|
@ -675,7 +672,6 @@ fn main() {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"builtins::int::sdiv::__modti3(a, b)");
|
"builtins::int::sdiv::__modti3(a, b)");
|
||||||
}
|
|
||||||
|
|
||||||
// int/shift.rs
|
// int/shift.rs
|
||||||
gen(|(a, b): (MyU64, MyU32)| Some(a.0 << (b.0 % 64)),
|
gen(|(a, b): (MyU64, MyU32)| Some(a.0 << (b.0 % 64)),
|
||||||
|
@ -746,7 +742,6 @@ fn main() {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"builtins::int::udiv::__umoddi3(a, b)");
|
"builtins::int::udiv::__umoddi3(a, b)");
|
||||||
if !target_arch_mips { // FIXME(#137)
|
|
||||||
gen(|(a, b): (MyU128, MyU128)| {
|
gen(|(a, b): (MyU128, MyU128)| {
|
||||||
if b.0 == 0 {
|
if b.0 == 0 {
|
||||||
None
|
None
|
||||||
|
@ -774,7 +769,6 @@ fn main() {
|
||||||
let mut r = 0;
|
let mut r = 0;
|
||||||
(builtins::int::udiv::__udivmodti4(a, b, Some(&mut r)), r)
|
(builtins::int::udiv::__udivmodti4(a, b, Some(&mut r)), r)
|
||||||
}");
|
}");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
macro_rules! gen_float {
|
macro_rules! gen_float {
|
||||||
|
|
Loading…
Reference in New Issue