bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/14480] New: PDP11 gas generates invalid code for deferred indir


From: jguillaumes at gmail dot com
Subject: [Bug gas/14480] New: PDP11 gas generates invalid code for deferred indirect JSR with 0 index
Date: Thu, 16 Aug 2012 16:40:31 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=14480

             Bug #: 14480
           Summary: PDP11 gas generates invalid code for deferred indirect
                    JSR with 0 index
           Product: binutils
           Version: 2.22
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: address@hidden
        ReportedBy: address@hidden
    Classification: Unclassified


Created attachment 6582
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6582
Assembly source file

As seen at the following assembly listing:


GNU assembler version 2.22.0 (pdp11-aout) using BFD version (GNU Binutils)
2.22.0.20120725
GAS LISTING dic.s             page 1


   1 0000 C0151000     start:    mov    $ind,r0
   2 0004 C809             jsr    pc,@(r0)
   3 0006 F8090000         jsr    pc,@0(r0)
   4 000a F8090200         jsr    pc,@2(r0)
   5 000e 0000             halt
   6                  
   7                  
   8 0010 1400         ind:    .WORD    dest
   9 0012 1600             .WORD    dest2
  10                  
  11 0014 8700         dest:    rts    pc
  12                  
  13 0016 8700         dest2:    rts    pc
  14                      
  15                      .END

The instructions in lines 2 and 3 should both assemble to F8090000, but line 2
assembles like it was JSR PC,(R0).

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]