Created
March 20, 2018 22:18
-
-
Save brainlag/b09b248da2e9472c73f70e9c676e4cf9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.text | |
.file "rust-avr-bug-92.1.ll" | |
.globl retstruct1 ; -- Begin function retstruct1 | |
.p2align 1 | |
.type retstruct1,@function | |
retstruct1: ; @retstruct1 | |
; %bb.0: ; %start | |
ldi r22, 0 | |
ldi r23, 0 | |
ldi r24, 0 | |
mov r20, r22 | |
mov r21, r23 | |
ret | |
.Lfunc_end0: | |
.size retstruct1, .Lfunc_end0-retstruct1 | |
; -- End function | |
.globl retstruct2 ; -- Begin function retstruct2 | |
.p2align 1 | |
.type retstruct2,@function | |
retstruct2: ; @retstruct2 | |
; %bb.0: ; %start | |
ldi r24, 0 | |
ldi r25, 0 | |
mov r22, r24 | |
mov r23, r25 | |
mov r20, r24 | |
mov r21, r25 | |
ret | |
.Lfunc_end1: | |
.size retstruct2, .Lfunc_end1-retstruct2 | |
; -- End function | |
.globl retstruct3 ; -- Begin function retstruct3 | |
.p2align 1 | |
.type retstruct3,@function | |
retstruct3: ; @retstruct3 | |
; %bb.0: ; %start | |
ldi r24, 0 | |
ldi r25, 0 | |
mov r22, r24 | |
mov r23, r25 | |
mov r20, r24 | |
mov r21, r25 | |
mov r18, r24 | |
mov r19, r25 | |
ret | |
.Lfunc_end2: | |
.size retstruct3, .Lfunc_end2-retstruct3 | |
; -- End function | |
.globl retstruct4 ; -- Begin function retstruct4 | |
.p2align 1 | |
.type retstruct4,@function | |
retstruct4: ; @retstruct4 | |
; %bb.0: ; %start | |
mov r30, r24 | |
mov r31, r25 | |
ldi r24, 0 | |
ldi r25, 0 | |
std Z+7, r24 | |
std Z+8, r25 | |
std Z+5, r24 | |
std Z+6, r25 | |
std Z+3, r24 | |
std Z+4, r25 | |
ldi r18, 0 | |
st Z+, r18 | |
st Z, r24 | |
std Z+1, r25 | |
ret | |
.Lfunc_end3: | |
.size retstruct4, .Lfunc_end3-retstruct4 | |
; -- End function | |
.globl retstruct5 ; -- Begin function retstruct5 | |
.p2align 1 | |
.type retstruct5,@function | |
retstruct5: ; @retstruct5 | |
; %bb.0: ; %start | |
ldi r22, 0 | |
ldi r23, 0 | |
ldi r24, 0 | |
mov r20, r22 | |
mov r21, r23 | |
mov r18, r22 | |
mov r19, r23 | |
ret | |
.Lfunc_end4: | |
.size retstruct5, .Lfunc_end4-retstruct5 | |
; -- End function | |
.globl retstruct6 ; -- Begin function retstruct6 | |
.p2align 1 | |
.type retstruct6,@function | |
retstruct6: ; @retstruct6 | |
; %bb.0: ; %start | |
mov r30, r24 | |
mov r31, r25 | |
ldi r24, 0 | |
ldi r25, 0 | |
std Z+7, r24 | |
std Z+8, r25 | |
std Z+5, r24 | |
std Z+6, r25 | |
std Z+3, r24 | |
std Z+4, r25 | |
ldi r18, 0 | |
st Z+, r18 | |
st Z, r24 | |
std Z+1, r25 | |
ret | |
.Lfunc_end5: | |
.size retstruct6, .Lfunc_end5-retstruct6 | |
; -- End function | |
; Declaring this symbol tells the CRT that it should | |
;copy all variables from program memory to RAM on startup | |
.globl __do_copy_data | |
; Declaring this symbol tells the CRT that it should | |
;clear the zeroed data section on startup | |
.globl __do_clear_bss |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment