This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/21981] __m64 return value should be returned in %mm0


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-09 14:16 -------
Confirmed, ICC returns it in %mm0.
Note this is the testcase which I used:
#include <mmintrin.h>

__m64
aaa (__m64 x, __m64 y)
{
  __m64 mm1;
  mm1 = _mm_add_pi8 (x, y);
  return mm1;
}

int main() {
    __m64 mm0;
    __m64 mm1;
  union ttt {
    __m64 mm;
    char x[8];
  } temp;

  temp.mm = aaa (mm0, mm1);
  printf ("%i\n", temp.x[0]);

  return 0;
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |wrong-code
   Last reconfirmed|0000-00-00 00:00:00         |2005-06-09 14:16:35
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21981


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]