[PATCH, i386] PR 48743 Correctly detect AMD K6-2+ and K6-3+

2011-05-15 Thread Zuxy Meng
Misdetected as Athlon by GCC, K6-2+ and K6-3+ are processors that support 
extended 3DNow! but don't support extended MMX or CMOV.


I don't own a K6-2 or Athlon machine. Can anybody have the patch tested?

2011-05-16 Zuxy Meng 
PR i386/48743
* config/i386/cpuid.h (bit_MMXEXT): New
* config/i386/cpuid.h (bit_3DNOWP): Deleted
* config/i386/driver-i386.c (host_detect_local_cpu): Detect Athlon by the 
presence of extended MMX instead of extended 3DNow!


--
Zuxy 


k6-3+.diff
Description: Binary data


Re: [PATCH, i386] PR 48743 Correctly detect AMD K6-2+ and K6-3+

2011-05-16 Thread Zuxy Meng
2011/5/16 H.J. Lu :
> On Sun, May 15, 2011 at 10:03 PM, Zuxy Meng  wrote:
>> Misdetected as Athlon by GCC, K6-2+ and K6-3+ are processors that support
>> extended 3DNow! but don't support extended MMX or CMOV.
>>
>> I don't own a K6-2 or Athlon machine. Can anybody have the patch tested?
>>
>> 2011-05-16 Zuxy Meng 
>> PR i386/48743
>> * config/i386/cpuid.h (bit_MMXEXT): New
>> * config/i386/cpuid.h (bit_3DNOWP): Deleted
>
> Why do you remove bit_3DNOWP?  is a public header file.

Because this bit was added to detect Athlon and not used elsewhere.

cpuid.h doesn't define all the feature bits available in the output of
CPUID instruction so I thought only the actually used bits are to be
included.

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6


Re: [PATCH, i386] PR 48743 Correctly detect AMD K6-2+ and K6-3+

2011-05-16 Thread Zuxy Meng
2011/5/17 H.J. Lu :
> On Mon, May 16, 2011 at 7:41 PM, Zuxy Meng  wrote:
>> 2011/5/16 H.J. Lu :
>>> On Sun, May 15, 2011 at 10:03 PM, Zuxy Meng  wrote:
>>>> Misdetected as Athlon by GCC, K6-2+ and K6-3+ are processors that support
>>>> extended 3DNow! but don't support extended MMX or CMOV.
>>>>
>>>> I don't own a K6-2 or Athlon machine. Can anybody have the patch tested?
>>>>
>>>> 2011-05-16 Zuxy Meng 
>>>> PR i386/48743
>>>> * config/i386/cpuid.h (bit_MMXEXT): New
>>>> * config/i386/cpuid.h (bit_3DNOWP): Deleted
>>>
>>> Why do you remove bit_3DNOWP?  is a public header file.
>>
>> Because this bit was added to detect Athlon and not used elsewhere.
>
> The first part might be true and the second part is false.  Since
>  is a public header file, it may be used in any software
> packages.
>
>> cpuid.h doesn't define all the feature bits available in the output of
>> CPUID instruction so I thought only the actually used bits are to be
>> included.
>
> That is false. I would appreciate a patch to define all feature bits.

OK. Resending patch.

2011-05-16 Zuxy Meng 
PR i386/48743
* config/i386/cpuid.h (bit_MMXEXT): New
* config/i386/driver-i386.c (host_detect_local_cpu): Detect Athlon by
the presence of extended MMX instead of extended 3DNow!

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6


k6-3+.diff
Description: Binary data


Re: [PATCH, i386] PR 48743 Correctly detect AMD K6-2+ and K6-3+

2011-05-20 Thread Zuxy Meng
2011/5/18 Uros Bizjak :
> Hello!
>
>> 2011-05-16 Zuxy Meng 
>
>> PR i386/48743
>> * config/i386/cpuid.h (bit_MMXEXT): New
>> * config/i386/driver-i386.c (host_detect_local_cpu): Detect Athlon by
>> the presence of extended MMX instead of extended 3DNow!
>
> PR target/48743
>
> The patch is OK, but please also get a confirmation from someone from
> AMD (CC'd).
>

Any update?

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6