https://sourceware.org/bugzilla/show_bug.cgi?id=21219
Bug ID: 21219 Summary: mips gas 2.26 report error:opcode not supported on this processor: mips32r2 (mips32r2) `mttc0 $0,$25,1' Product: binutils Version: 2.26 Status: UNCONFIRMED Severity: critical Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: zycdywe at sina dot com Target Milestone: --- Hi ALL: there is a bug in binutils2.26 of GAS, when it's ok in binutils2.20, and report an error in binutils2.26. the case is assamble code embedded, mips32r2 and the core is mips 34kc. assamble code:do { __asm__ __volatile__( "%(mttc0\t %z0,$" "25" "," "1" "; ehb%)" : : "dJ" (0)); } while (0); then gcc will compile the assamble code into " mttc0 $0,$25,1; " when I use gas 2.26 to assamble the .s file , it report error below, but it's ok for gas 2.20 Error: opcode not supported on this processor: mips32r2 (mips32r2) `mttc0 $0,$25,1' case below: 2.s: test: mttc0 $0,$25,1; mftc0 $2,$25,0; as2.20 -G 0 -G 0 -EB -mips32r2 -mno-dsp -O2 -g -no-mdebug -mabi=32 -march=34kc --trap -o 2.o 2.s -- ok as2.26 -G 0 -G 0 -EB -mips32r2 -mno-dsp -O2 -g -no-mdebug -mabi=32 -march=34kc --trap -o 2.o 2.s -- error 2.s: Assembler messages: 2.s:3: Error: opcode not supported on this processor: mips32r2 (mips32r2) `mttc0 $0,$25,1' 2.s:4: Error: opcode not supported on this processor: mips32r2 (mips32r2) `mftc0 $2,$25,0' -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils