Bug 735847 - possible bug in xmmintrin.h
Summary: possible bug in xmmintrin.h
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 14
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-05 17:11 UTC by Jan Hranac
Modified: 2011-09-06 07:49 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-06 07:49:52 UTC


Attachments (Terms of Use)


Links
System ID Priority Status Summary Last Updated
GNU Compiler Collection 46419 None None None Never

Description Jan Hranac 2011-09-05 17:11:49 UTC
Description of problem:
Unexpected behaviour of the function _mm_cvtpu16_ps defined in /usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/xmmintrin.h

Version-Release number of selected component (if applicable):
4.5.1

How reproducible:
Write a test program.

Steps to Reproduce:
1. Define a __m64 variable containing four shorts: 1,2,3,4.
2. Load it into a __m128 variable using _mm_cvtpu16_ps.
  
Actual results:
3.0, 4.0, 1.0, 2.0

Expected results:
1.0, 2.0, 3.0, 4.0

Additional info:
The last line of the _mm_cvtpu16_ps function should be:
return (__m128) __builtin_ia32_movlhps (__rb, __ra);
instead if:
return (__m128) __builtin_ia32_movlhps (__ra, __rb);

Comment 1 Jakub Jelinek 2011-09-06 07:49:52 UTC
This is upstream PR46419, fixed in Fedora 15+ gcc.  There are no plans to update gcc 4.5.x in Fedora 14, so marking as fixed in CURRENTRELEASE.


Note You need to log in before you can comment on or make changes to this bug.