Bug 735847

Summary: possible bug in xmmintrin.h
Product: [Fedora] Fedora Reporter: Jan Hranac <jan.hranac>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 14CC: jakub
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-06 07:49:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.