? BFD_ENDIAN_BIG : BFD_ENDIAN_LITTLE,
true);
}
+ else if (attr->form_is_unsigned ())
+ *value = gdb_mpz (attr->as_unsigned ());
else
*value = gdb_mpz (attr->constant_value (1));
}
if {$scenario == "minimal" && [test_compiler_info {gcc-11-*}]} {
gdb_test "print fp5_var" " = 3e-19"
}
+
+ gdb_test "p Float(Another_Fixed) = Float(Another_Delta * 5)" "true" \
+ "value of another_fixed"
}
FP5_Var : FP5_Type := 3 * Delta5;
+
+ Another_Delta : constant := 1.0/(2**63);
+ type Another_Type is delta Another_Delta range -1.0 .. (1.0 - Another_Delta);
+ for Another_Type'small use Another_Delta;
+ for Another_Type'size use 64;
+ Another_Fixed : Another_Type := Another_Delta * 5;
+
begin
Base_Object := 1.0/16.0; -- Set breakpoint here
Subtype_Object := 1.0/16.0;
Do_Nothing (FP3_Var'Address);
Do_Nothing (FP4_Var'Address);
Do_Nothing (FP5_Var'Address);
+ Do_Nothing (Another_Fixed'Address);
end Fixed_Points;