This is the mail archive of the gcc-patches@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]

Re: [patch 2/2] AMD bdver2 processors - TBM


On 11/07/2010 02:21 PM, Quentin Neill wrote:
>  __tzcnt_u64 (unsigned long long __X)
>  {
> -  return __builtin_ctzll(__X);
> +  return __builtin_ctzl(__X);

Incorrect.  Two ll's mean long long, which matches the type.
You need the long long type for Win64.

> +DEF_FUNCTION_TYPE (UINT, UINT, UCHAR, UCHAR)
> +DEF_FUNCTION_TYPE (UINT64, UINT64, UCHAR, UCHAR)

Leftover.

> +          error ("last argument must be an immediate");
> +          mode0 = insn_data[icode].operand[0].mode;
> +          return gen_reg_rtx(mode0);

Don't create a register, just return const0_rtx.

Otherwise ok.


r~


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