add support for quadruple precision floating point

This currently requires linking against a library like libquadmath (or
libgcc), because compiler-rt barely has any support for this and most
hardware does not yet have 128-bit precision floating point. For this
reason, it's currently hidden behind a feature gate.

When compiler-rt is updated to trunk, some tests can be added for
constant evaluation since there will be support for the comparison
operators.

Closes #13381
This commit is contained in:
Daniel Micay
2014-04-08 18:08:08 -04:00
parent 09bfb92fdc
commit dc7d7d2698
21 changed files with 81 additions and 10 deletions

View File

@@ -187,7 +187,7 @@ pub fn uint_ty_max(t: UintTy) -> u64 {
}
pub fn float_ty_to_str(t: FloatTy) -> ~str {
match t { TyF32 => "f32".to_owned(), TyF64 => "f64".to_owned() }
match t { TyF32 => "f32".to_owned(), TyF64 => "f64".to_owned(), TyF128 => "f128".to_owned() }
}
pub fn is_call_expr(e: @Expr) -> bool {