[Bug target/79202] On Power8, consider using vupkhsw/xxpermdi to sign extend an int in a vector register instead of mfvsrwz/mtvsrwa

2017-07-05 Thread meissner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79202 Michael Meissner changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/79202] On Power8, consider using vupkhsw/xxpermdi to sign extend an int in a vector register instead of mfvsrwz/mtvsrwa

2017-05-09 Thread meissner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79202 --- Comment #7 from Michael Meissner --- Author: meissner Date: Tue May 9 23:49:37 2017 New Revision: 247820 URL: https://gcc.gnu.org/viewcvs?rev=247820&root=gcc&view=rev Log: [gcc] 2017-05-09 Michael Meissner Back port from mainlin

[Bug target/79202] On Power8, consider using vupkhsw/xxpermdi to sign extend an int in a vector register instead of mfvsrwz/mtvsrwa

2017-05-05 Thread meissner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79202 --- Comment #6 from Michael Meissner --- Author: meissner Date: Fri May 5 20:21:15 2017 New Revision: 247657 URL: https://gcc.gnu.org/viewcvs?rev=247657&root=gcc&view=rev Log: [gcc] 2017-05-05 Michael Meissner PR target/79038

[Bug target/79202] On Power8, consider using vupkhsw/xxpermdi to sign extend an int in a vector register instead of mfvsrwz/mtvsrwa

2017-03-04 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79202 --- Comment #5 from Segher Boessenkool --- Can't this just use a friz? If the cast to int wouldn't fit in an int it is undefined behaviour.

[Bug target/79202] On Power8, consider using vupkhsw/xxpermdi to sign extend an int in a vector register instead of mfvsrwz/mtvsrwa

2017-01-27 Thread meissner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79202 --- Comment #4 from Michael Meissner --- Created attachment 40609 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40609&action=edit Proposed patch to fix the problem. This patch is believed to fix the following PRs * target/79038 (__float

[Bug target/79202] On Power8, consider using vupkhsw/xxpermdi to sign extend an int in a vector register instead of mfvsrwz/mtvsrwa

2017-01-24 Thread bergner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79202 --- Comment #3 from Peter Bergner --- (In reply to Peter Bergner from comment #2) > Can we instead do: > > xscvdpsxws 32,1 > vupkhsw 1,0 > xvcvsxwdp 3,33 Replying to myself, the answer is no, the vupkhsw doesn't write it

[Bug target/79202] On Power8, consider using vupkhsw/xxpermdi to sign extend an int in a vector register instead of mfvsrwz/mtvsrwa

2017-01-24 Thread bergner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79202 --- Comment #2 from Peter Bergner --- (In reply to Michael Meissner from comment #0) > It may be more optimal to generate something like: > > xscvdpsxws 32,1 > vupkhsw 1,0 > xxpermdi 2,33,33,3 > fcfid 3,2 Can we

[Bug target/79202] On Power8, consider using vupkhsw/xxpermdi to sign extend an int in a vector register instead of mfvsrwz/mtvsrwa

2017-01-24 Thread bergner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79202 Peter Bergner changed: What|Removed |Added CC||bergner at gcc dot gnu.org --- Comment #

[Bug target/79202] On Power8, consider using vupkhsw/xxpermdi to sign extend an int in a vector register instead of mfvsrwz/mtvsrwa

2017-01-23 Thread meissner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79202 Michael Meissner changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|