public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/19820] New: How to get results from a V2SF ?
@ 2005-02-08 17:26 plm at netspace dot net dot au
2005-02-08 18:58 ` [Bug c/19820] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: plm at netspace dot net dot au @ 2005-02-08 17:26 UTC (permalink / raw)
To: gcc-bugs
This is probably not really a bug, just a hole in the documentation. While
google can demonstrate how to get values into vectors, and the info pages the
names of the manipulation functions avaliable, there seems to be no
documentation on how to get at the results of the manipulation.
How do you get at the results?
typedef float V2SF __attribute__((vector_size(8)));
int main()
{
V2SF a = { 2.0, 3.0 };
V2SF b = { 4.0, 5.0 };
V2SF c;
c = __builtin_ia32_pfmul(a,b);
/* how to get at the values in c? */
return 0;
};
--
Summary: How to get results from a V2SF ?
Product: gcc
Version: 3.3.4
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: plm at netspace dot net dot au
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19820
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/19820] How to get results from a V2SF ?
2005-02-08 17:26 [Bug c/19820] New: How to get results from a V2SF ? plm at netspace dot net dot au
@ 2005-02-08 18:58 ` pinskia at gcc dot gnu dot org
2005-06-19 14:57 ` pinskia at gcc dot gnu dot org
2005-06-20 18:42 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-08 18:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-08 13:37 -------
Hmm, I thought this was documented but you use an union.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19820
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/19820] How to get results from a V2SF ?
2005-02-08 17:26 [Bug c/19820] New: How to get results from a V2SF ? plm at netspace dot net dot au
2005-02-08 18:58 ` [Bug c/19820] " pinskia at gcc dot gnu dot org
@ 2005-06-19 14:57 ` pinskia at gcc dot gnu dot org
2005-06-20 18:42 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-19 14:57 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |documentation
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19820
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/19820] How to get results from a V2SF ?
2005-02-08 17:26 [Bug c/19820] New: How to get results from a V2SF ? plm at netspace dot net dot au
2005-02-08 18:58 ` [Bug c/19820] " pinskia at gcc dot gnu dot org
2005-06-19 14:57 ` pinskia at gcc dot gnu dot org
@ 2005-06-20 18:42 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-20 18:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-20 18:42 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-06-20 18:42:25
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19820
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/19820] How to get results from a V2SF ?
[not found] <bug-19820-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2013-01-13 10:41 ` glisse at gcc dot gnu.org
@ 2014-06-12 17:37 ` glisse at gcc dot gnu.org
3 siblings, 0 replies; 9+ messages in thread
From: glisse at gcc dot gnu.org @ 2014-06-12 17:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19820
Marc Glisse <glisse at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |4.8.0
--- Comment #7 from Marc Glisse <glisse at gcc dot gnu.org> ---
4.7 branch is closed.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/19820] How to get results from a V2SF ?
[not found] <bug-19820-4@http.gcc.gnu.org/bugzilla/>
2011-11-17 22:00 ` pinskia at gcc dot gnu.org
2013-01-13 10:36 ` glisse at gcc dot gnu.org
@ 2013-01-13 10:41 ` glisse at gcc dot gnu.org
2014-06-12 17:37 ` glisse at gcc dot gnu.org
3 siblings, 0 replies; 9+ messages in thread
From: glisse at gcc dot gnu.org @ 2013-01-13 10:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19820
Marc Glisse <glisse at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |NEW
Resolution|FIXED |
--- Comment #6 from Marc Glisse <glisse at gcc dot gnu.org> 2013-01-13 10:40:44 UTC ---
Or was I too fast closing it and we need to explain the union / cast to pointer
tricks in the 4.6 and 4.7 documentations for C++ users? In doubt, I am putting
the status back to what it was, sorry.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/19820] How to get results from a V2SF ?
[not found] <bug-19820-4@http.gcc.gnu.org/bugzilla/>
2011-11-17 22:00 ` pinskia at gcc dot gnu.org
@ 2013-01-13 10:36 ` glisse at gcc dot gnu.org
2013-01-13 10:41 ` glisse at gcc dot gnu.org
2014-06-12 17:37 ` glisse at gcc dot gnu.org
3 siblings, 0 replies; 9+ messages in thread
From: glisse at gcc dot gnu.org @ 2013-01-13 10:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19820
Marc Glisse <glisse at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |glisse at gcc dot gnu.org
Resolution| |FIXED
--- Comment #5 from Marc Glisse <glisse at gcc dot gnu.org> 2013-01-13 10:35:41 UTC ---
Subscripts are documented for 4.6:
http://gcc.gnu.org/onlinedocs/gcc-4.6.3/gcc/Vector-Extensions.html
and they are available for C++ in 4.8, so closing.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/19820] How to get results from a V2SF ?
[not found] <bug-19820-4@http.gcc.gnu.org/bugzilla/>
@ 2011-11-17 22:00 ` pinskia at gcc dot gnu.org
2013-01-13 10:36 ` glisse at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-11-17 22:00 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19820
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEW
AssignedTo|pinskia at gcc dot gnu.org |unassigned at gcc dot
| |gnu.org
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-11-17 21:54:48 UTC ---
This is now fixed in 4.7.0, you can do [0] for C (not for C++).
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/19820] How to get results from a V2SF ?
[not found] <bug-19820-10066@http.gcc.gnu.org/bugzilla/>
@ 2008-11-14 23:20 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-11-14 23:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2008-11-14 23:19 -------
You can do:
float *cf = &c;
return cf[0] + cf[1];
Or after my patch just c[0] + c[1].
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19820
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2014-06-12 17:37 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-08 17:26 [Bug c/19820] New: How to get results from a V2SF ? plm at netspace dot net dot au
2005-02-08 18:58 ` [Bug c/19820] " pinskia at gcc dot gnu dot org
2005-06-19 14:57 ` pinskia at gcc dot gnu dot org
2005-06-20 18:42 ` pinskia at gcc dot gnu dot org
[not found] <bug-19820-10066@http.gcc.gnu.org/bugzilla/>
2008-11-14 23:20 ` pinskia at gcc dot gnu dot org
[not found] <bug-19820-4@http.gcc.gnu.org/bugzilla/>
2011-11-17 22:00 ` pinskia at gcc dot gnu.org
2013-01-13 10:36 ` glisse at gcc dot gnu.org
2013-01-13 10:41 ` glisse at gcc dot gnu.org
2014-06-12 17:37 ` glisse at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).