[LLVMbugs] [Bug 4566] Invalid asmprinting for Thumb RSB instruction [ generic asmprinter construction problem?]

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Sep 9 04:13:12 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4566


Xerxes Rånby <xerxes at zafena.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xerxes at zafena.se
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED




--- Comment #7 from Xerxes Rånby <xerxes at zafena.se>  2009-09-09 06:13:11 ---
testcase looks OK using rev 81322 from TOT

xerxes at overo:/usr/src/openembedded/verdexpro/tmp/work/armv5te-angstrom-linux-gnueabi/llvm2.6-2.5+svnr81322-r1/trunk/build/bin$
./llc -march=pic16 /home/xerxe
s/4566.bc 
xerxes at overo:/usr/src/openembedded/verdexpro/tmp/work/armv5te-angstrom-linux-gnueabi/llvm2.6-2.5+svnr81322-r1/trunk/build/bin$
cat /home/xerxes/4566.s 

        #include P16F1937.INC

;Function Declarations - BEGIN.
        global  @main
        global  @main.ret.
        global  @main.args.
;Function Declarations - END.

;Exported Variables - BEGIN
        global  @i
        global  @j
        global  @pc
;Exported Variables - END

@idata.0.# IDATA
@i dl 4294967286                                            ; 0xFFFFFFF6
@j dl 4294967276                                            ; 0xFFFFFFEC
@pc dw 160

@main.frame_section.# UDATA_OVR
@main.frame.:
@main.ret.: 
@main.args. RES 0
@main.temp. RES  6

@main.autos_section.# UDATA_OVR
@main.auto.k  RES  4

@main.code_section.# CODE
        retlw  low(@main.frame.)
        retlw  high(@main.frame.)
@main:

        banksel @i
        movf @i + 3, W
        banksel @main.temp.
        movwf @main.temp. + 0
        banksel @i
        movf @i + 2, W
        banksel @main.temp.
        movwf @main.temp. + 1
        banksel @i
        movf @i + 0, W
        banksel @main.temp.
        movwf @main.temp. + 2
        banksel @i
        movf @i + 1, W
        banksel @main.temp.
        movwf @main.temp. + 3
        movf @main.temp. + 2, W
        banksel @j
        addwf @j + 0, W
        banksel @main.temp.
        movwf @main.temp. + 2
        movf @main.temp. + 3, W
        banksel @j
        addwfc @j + 1, W
        banksel @main.temp.
        movwf @main.temp. + 3
        movf @main.temp. + 1, W
        banksel @j
        addwfc @j + 2, W
        banksel @main.temp.
        movwf @main.temp. + 1
        movf @main.temp. + 0, W
        banksel @j
        addwfc @j + 3, W
        banksel @main.auto.k
        movwf @main.auto.k + 3
        banksel @main.temp.
        movf @main.temp. + 1, W
        banksel @main.auto.k
        movwf @main.auto.k + 2
        banksel @main.temp.
        movf @main.temp. + 3, W
        banksel @main.auto.k
        movwf @main.auto.k + 1
        banksel @main.temp.
        movf @main.temp. + 2, W
        banksel @main.auto.k
        movwf @main.auto.k + 0
        banksel @pc
        movf @pc + 0, W
        banksel @main.temp.
        movwf @main.temp. + 4
        banksel @pc
        movf @pc + 1, W
        banksel @main.temp.
        movwf @main.temp. + 5
        movf @main.temp. + 4, W
        movwf FSR0L
        movf @main.temp. + 5, W
        movwf FSR0H
        movf @main.temp. + 2, W
        addlw 32
        movwi 0[FSR0]
        banksel @pc
        movf @pc + 0, W
        movwf FSR0L
        movf @pc + 1, W
        movwf FSR0H
        moviw 0[FSR0]
        addlw -1
        movwi 0[FSR0]
        return

        END
xerxes at overo:/usr/src/openembedded/verdexpro/tmp/work/armv5te-angstrom-linux-gnueabi/llvm2.6-2.5+svnr81322-r1/trunk/build/bin$


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list