[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

as problem


I would like to compile some stuff containing inline assembler like:

void foo() {
    long x;
    asm("unpkbw %1, %0" : "=r"(x) : "r"(123456));

This works if I pass -Wa,-mpca56. But it will *not* work if I also use
-mcpu=ev56 for gcc, since gcc then emits .arch ev56 into the .s, and
as complains ev56 can't handle unpkbw. What should I do? Convince gcc
not to emit .arch? Convince as to prefer the command line option? Some
other suggestions?


Reply to: