Enabling ABM Support?

I have a processor that supports the popcnt instruction, but I can’t seem to figure out how to get ABM features enabled when compiling. Leaving off the --tp option should build for the host, but I get an error that the ABM instruction set is not enabled. Is there some compiler flag that I need to use? I had thought that the compiler would be automatically building for the target host? Has the compiler not been using all of the CPU features available to me?

I should clarify that using functions from intrin.h if I manually declare them works fine. In particular __popcnt.

Hi Aaron,

Can you post an example code which reproduces the “ABM instruction set is not enabled” error?

I’m not clear on what you’re trying to do so an example would be very helpful.

  • Mat