need help on llc option -march=?

I am using LLVM 2.8 on Ubuntu 10.10. (new to both)

I change name of instruction on XXXInstrInfo.td ( Sparc, X86 and XCore). I looked into XXXGenAsmWriter.inc and I have seen the new instruction name. But when I run llc for the three targets it prints out the old instruction name.

For example in XCoreInstrInfo.td I change the name of one of the instruction let say “divs” to “newdivs”,

like

def DIVS_l3r : FL3R<“newdivs”, sdiv>;

When I run llc with option -march=xcore, after I make the modification, it still outputs “divs”, not “newdivs”. I looked into XCoreGenAsmWriter.inc, and made sure that string AsmStrs includes “newdivs”.

If this is linkage problem how can I solve it?

Hi Atse,

I change name of instruction on XXXInstrInfo.td ( Sparc, X86 and XCore).I looked
into XXXGenAsmWriter.inc and I have seen the new instruction name. But when I
run llc for the three targets it prints out the old instruction name.

are you sure you are running the new llc and not the old?

Ciao, Duncan.