Discussion:
-mno-bmi doesn't work in GCC4.8.2
hanhwi
2014-08-10 03:46:48 UTC
Permalink
Hi, all,

I'm using GCC 4.8.2 on x86-64 machine. The compiler emits tzcnt instruction
unlike previous gcc. I want to prevent using tzcnt instruction. As I know,
tzcnt instruction is BMI extension. To disable the feature, I set -mno-bmi
but it didn't work.

Is there any way to disable tzcnt instruction?

Thanks,
Hanhwi



--
View this message in context: http://gcc.1065356.n5.nabble.com/mno-bmi-doesn-t-work-in-GCC4-8-2-tp1059079.html
Sent from the gcc - Help mailing list archive at Nabble.com.
Ryan Mansfield
2014-08-10 15:02:42 UTC
Permalink
Post by hanhwi
Hi, all,
I'm using GCC 4.8.2 on x86-64 machine. The compiler emits tzcnt instruction
unlike previous gcc. I want to prevent using tzcnt instruction. As I know,
tzcnt instruction is BMI extension. To disable the feature, I set -mno-bmi
but it didn't work.
I believe starting with 4.8 gcc unconditionally emits tzcnt, as non-bmi
targets will handle it as rep;bsf, and bmi targets will treat it as a tzcnt.

Regards,

Ryan Mansfield

Loading...