diff --git a/reid-llvm-lib/src/lib.rs b/reid-llvm-lib/src/lib.rs index 0c86985..bfe7a6d 100644 --- a/reid-llvm-lib/src/lib.rs +++ b/reid-llvm-lib/src/lib.rs @@ -487,13 +487,13 @@ impl ConstValue { ConstValue::U128(_) => U128, ConstValue::StringPtr(_) => Ptr(Box::new(I8)), ConstValue::Bool(_) => Bool, - ConstValue::F16(_) => todo!(), - ConstValue::F32B(_) => todo!(), - ConstValue::F32(_) => todo!(), - ConstValue::F64(_) => todo!(), - ConstValue::F80(_) => todo!(), - ConstValue::F128(_) => todo!(), - ConstValue::F128PPC(_) => todo!(), + ConstValue::F16(_) => F16, + ConstValue::F32B(_) => F32B, + ConstValue::F32(_) => F32, + ConstValue::F64(_) => F64, + ConstValue::F80(_) => F80, + ConstValue::F128(_) => F128, + ConstValue::F128PPC(_) => F128PPC, } } } diff --git a/reid/src/codegen.rs b/reid/src/codegen.rs index ac5c719..0fffb54 100644 --- a/reid/src/codegen.rs +++ b/reid/src/codegen.rs @@ -1353,6 +1353,13 @@ impl TypeKind { TypeKind::U16 | TypeKind::U32 | TypeKind::U64 | TypeKind::U128 => { DwarfEncoding::Unsigned } + TypeKind::F16 + | TypeKind::F32 + | TypeKind::F32B + | TypeKind::F64 + | TypeKind::F80 + | TypeKind::F128 + | TypeKind::F128PPC => DwarfEncoding::Float, TypeKind::Void => DwarfEncoding::Address, TypeKind::StringPtr => DwarfEncoding::Address, TypeKind::Array(_, _) => DwarfEncoding::Address,