logf -lm ppc64el broken under qemu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
This program does not work as expected:
#include <altivec.h>
#include <math.h>
#include <stdio.h>
int main(int argc) {
vector float o = {4, 3, 2, 0};
printf("%f %f %f %f\n", o[0], logf(argc), logf(4.0), logf(o[0]));
}
logf always returns -inf when it is run (gcc is analyzing the constant, logf(4.0)).
ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: libc6:ppc64el 2.29-0ubuntu2
ProcVersionSign
Uname: Linux 5.0.0-13-generic x86_64
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri May 3 09:20:00 2019
Dependencies:
gcc-9-base 9-20190402-1ubuntu1
libc6 2.29-0ubuntu2
libgcc1 1:9-20190402-
libidn2-0 2.0.5-1
libunistring2 0.9.10-1ubuntu2
InstallationDate: Installed on 2019-02-23 (69 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Alpha amd64 (20190203)
PackageArchitec
SourcePackage: glibc
UpgradeStatus: No upgrade log present (probably fresh install)