This is the mail archive of the gcc-help@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: How to set REX prefix when using RDRAND?


On 12/10/2015 10:34, Jeffrey Walton wrote:
> I'm not able to compile a program that uses `rdrand` and a word64 due
> to "Error: operand size mismatch for `rdrand'". If I try to explicitly
> use `rdrandq` and the word64, then it results in
> "Error: invalid instruction suffix for `rdrand'"

(I'm not a gcc developer.)

I think it would be a good idea to provide a minimal example of
what you are compiling, along with the output of
gcc -v source.{c,S}

Regards.


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