diff options
Diffstat (limited to 'gitlab/issues/target_hppa/host_missing/accel_missing/625.toml')
| -rw-r--r-- | gitlab/issues/target_hppa/host_missing/accel_missing/625.toml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gitlab/issues/target_hppa/host_missing/accel_missing/625.toml b/gitlab/issues/target_hppa/host_missing/accel_missing/625.toml new file mode 100644 index 000000000..b1f086bbd --- /dev/null +++ b/gitlab/issues/target_hppa/host_missing/accel_missing/625.toml @@ -0,0 +1,31 @@ +id = 625 +title = "qemu-hppa floating point POWER function is incorrect" +state = "opened" +created_at = "2021-09-17T08:04:01.442Z" +closed_at = "n/a" +labels = ["target: hppa"] +url = "https://gitlab.com/qemu-project/qemu/-/issues/625" +host-os = "Gentoo Linux" +host-arch = "AMD64" +qemu-version = "6.0.0, also with git 6.1.50 version" +guest-os = "n/a" +guest-arch = "n/a" +description = """The floating point power function produces incorrect values, and possibly stack misshapes as well.""" +reproduce = """1. $ hppa1.1-unknown-linux-gnu-gcc pow.c -o pow -lm -static +2. $ qemu-hppa pow +3. the expected result is 10.0 ^ 6.0 = 6000000.0, instead of 403.45""" +additional = """Example C source to reproduce, pow.c: +``` +#include <stdio.h> +#include <math.h> +int main() +{ + double base, expo, res; + base=10.0; + expo=6.0; + // res sould be 1e+6 + res = pow(base, expo); + printf("%.1lf^%.1lf = %.2lf\\n", base, expo, res); + return 0; +} +```""" |