summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/108/other/625
blob: ac662fda21e025c7c9a6adb760b535cca7f7a593 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
graphic: 0.799
device: 0.746
permissions: 0.581
performance: 0.578
PID: 0.390
vnc: 0.371
semantic: 0.360
files: 0.275
debug: 0.224
boot: 0.198
network: 0.176
socket: 0.152
KVM: 0.149
other: 0.074

qemu-hppa floating point POWER function is incorrect
Description of problem:
The floating point power function produces incorrect values, and possibly stack misshapes as well.
Steps to 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 information:
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;
}
```