bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/19556] New: GNURX toolchain generates incorrect opcode for "mov


From: vinay.g at kpit dot com
Subject: [Bug gas/19556] New: GNURX toolchain generates incorrect opcode for "mov.b #0xff, [r0]" instruction.
Date: Tue, 02 Feb 2016 12:53:39 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=19556

            Bug ID: 19556
           Summary: GNURX toolchain generates incorrect opcode for "mov.b
                    #0xff, [r0]" instruction.
           Product: binutils
           Version: 2.25
            Status: NEW
          Severity: critical
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: vinay.g at kpit dot com
  Target Milestone: ---

As per mailing list link :
https://sourceware.org/ml/binutils/2015-09/msg00095.html

/*testcase*/
/*test.s*/
mov.b #0xff, [r0]
mov.b #0xff, 0[r0]
mov.b #0xff, 1[r0]
mov.b #0xff, 2[r0]
mov.b #0xff, 3[r0]
mov.b #0xff, 4[r0]
mov.b #0xff, 5[r0]

$rx-elf-as test.s -o test.o -aln=test.lst
$rx-elf-objdump -d test.o > test.o.dis

$cat test.lst
   1 0000 3C 00 FF    mov.b #0xff, [r0]  --> Should be "F8 04 FF  mov.b #0xff,
[r0]"
   2 0003 3C 00 FF    mov.b #0xff, 0[r0]
   3 0006 3C 01 FF    mov.b #0xff, 1[r0]
   4 0009 3C 02 FF    mov.b #0xff, 2[r0]
   5 000c 3C 03 FF    mov.b #0xff, 3[r0]
   6 000f 3C 04 FF    mov.b #0xff, 4[r0]
   7 0012 3C 05 FF    mov.b #0xff, 5[r0]


The above testcase generates expected opcode with attched patch
"mov_imm_1388.patch".

$cat test.o.dis
test.o:     file format elf32-rx-le
Disassembly of section P:
00000000 <P>:
   0:   3c 00 ff      mov.b   #255, [r0] --> Should be "F8 04 FF  mov.b #255,
[r0]"
   3:   3c 00 ff      mov.b   #255, [r0]
   6:   3c 01 ff      mov.b   #255, 1[r0]
   9:   3c 02 ff      mov.b   #255, 2[r0]
   c:   3c 03 ff      mov.b   #255, 3[r0]
   f:   3c 04 ff      mov.b   #255, 4[r0]
  12:   3c 05 ff      mov.b   #255, 5[r0]

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]