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

Reply via email to