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

            Bug ID: 16964
           Summary: "LSL Rxx" instruction assembles to "add Rxx,Rxx" on
                    AVR
           Product: binutils
           Version: 2.24
            Status: NEW
          Severity: critical
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: scotty264c at gmx dot com

avr-as --version
GNU assembler (GNU Binutils) 2.24
Copyright 2013 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `avr

Target is ATmega32U4.  I have not tried with a different AVR.

LSR is fine but LSL assembles to "add" instruction.

    lsl        ZH                                    261e:    ff 0f          
add    r31, r31
    lsr        ZH                                    2620:    f6 95          
lsr    r31

Peace and blessings,
Scott

-- 
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

Reply via email to