Movatterモバイル変換


[0]ホーム

URL:


This is the mail archive of thebinutils@sources.redhat.commailing list for thebinutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav:[Date Prev] [Date Next][Thread Prev] [Thread Next]
Other format:[Raw text]

Re: [PATCH] Add .set arch=FOO support to MIPS gas.


So, before committing my tweaked version of the .set arch=FOO code, Ithought i'd, oh, compile and test it.  8-)Running make/make check for:        mips-elf        mips-linux        mips-netbsd        mips64-elf        mips64-linux        mipsisa32-elf        mipsisa32r2-elf        mipsisa64-elf        mipsisa64sb1-elfI found that the existing ".set arch=FOO" test failed for *all* ofthose except mips64-linux!it looks like you're hard-coding assumptions about the register namesused by the ABI, in the disassembly for the existing test.If you're actually bent on doing this, you should put:        -M reg-names=n32or similar on the objdump options line in the .d file.(personally, when i code testsuite entries these days, I tend to use"-M reg-names=numeric" because it makes it that much easier to verifythat input == output.)Given that, AFAICT, the only target that passed the test was the oneyou were probably testing, i'd encourage you to test morearchitectures.  8-)In case you're interested, I've included my (quick hack-ish) binutilstest scripts below.cgd

Attachment:testscripts.shar
Description: binutils test scripts


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav:[Date Prev] [Date Next][Thread Prev] [Thread Next]

[8]ページ先頭

©2009-2025 Movatter.jp