[Bug target/82465] New: vec_sqrt() for vector double erroneously fails for z13
markos at freevec dot org
gcc-bugzilla@gcc.gnu.org
Sat Oct 7 17:52:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82465
Bug ID: 82465
Summary: vec_sqrt() for vector double erroneously fails for z13
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: markos at freevec dot org
Target Milestone: ---
Host: s390x-ibm-linux-gnu
Target: s390x-ibm-linux-gnu
Build: s390x-ibm-linux-gnu
The following code:
#include <vecintrin.h>
int main() {
__vector double v = { 2.0, 1.0 };
__vector double prod = vec_sqrt(v);
}
works for z14 as expected, but fails on z13:
$ g++ -march=z13 -mzvector zvectortest2.cpp -o zvectortest2
zvectortest2.cpp: In function 'int main()':
zvectortest2.cpp:6:35: error: '__vector(4) int
__builtin_s390_vec_sqrt(__vector(4) int)' requires z14 or higher
__vector double prod = vec_sqrt(v);
I think this is a bug.
More information about the Gcc-bugs
mailing list