I have the following C file
int foo (int input)
{
if (input == 0)
input = 1;
return input;
}
When I create an object file using gcc foo.c -m32 -Wa,-march=i486 -c
, everything goes well. However, when I add a -O3
to the command, I get the following error:
/tmp/cc7br7gY.s: Assembler messages:
/tmp/cc7br7gY.s:12: Error: `cmove' is not supported on `i486'
Do I have to provide an additional option for the assembly optimizer to tell it that I want instructions that will work on i486?
gcc --version
outputs gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
.