+++ /dev/null
- .COPYRIGHT "MetaWare Incorporated, 1992"
- .VERSION "hc2.6a -O1 t3.c\n"
-
- .SPACE $PRIVATE$,SORT=16
- .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=0x1F,SORT=80,ZERO
- .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=0x1F,SORT=16
-
- .SPACE $TEXT$,SORT=8
- .SUBSPA $CODE$,QUAD=0,ALIGN=4,ACCESS=44,CODE_ONLY,SORT=24
-
- .SPACE $PRIVATE$
- .SUBSPA $DATA$
- .ALIGN 8
-$L00DATA
- .ALIGN 8
- .EXPORT s
-s
- .WORD 0x0
- .BLOCKZ 786425
- .BLOCKZ 7
-
- .SPACE $TEXT$
- .SUBSPA $CODE$
-L$001.3
-g .PROC
- .CALLINFO FRAME=0,NO_CALLS
- .ENTRY
- ;ldo 120(%r0),%r28 --> to delay slot
- bv %r0(%r2)
- .EXIT
- ldo 120(%r0),%r28
- .PROCEND
-
-
- .SPACE $PRIVATE$
- .SUBSPA $DATA$
- .ALIGN 4
- .EXPORT l
-l
- .WORD P'g
- .IMPORT common,DATA ; common section, size=0
- .IMPORT $global$,DATA
- .EXPORT g,ENTRY,PRIV_LEV=3,RTNVAL=GR
- .END
-
+++ /dev/null
- .SPACE $PRIVATE$
- .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31
- .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82
- .SPACE $TEXT$
- .SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44
- .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY
- .IMPORT $global$,DATA
- .IMPORT $$dyncall,MILLICODE
-; gcc_compiled.:
- .SPACE $TEXT$
- .SUBSPA $CODE$
-
- .align 4
- .PARAM foo,RTNVAL=GR
-foo:
- .PROC
- .CALLINFO FRAME=0,NO_CALLS
- .ENTRY
- bv,n 0(%r2)
- .EXIT
- .PROCEND
- .SPACE $TEXT$
- .SUBSPA $CODE$
-
- .align 4
-LC$0000:
- .word P%foo
- .SPACE $TEXT$
- .SUBSPA $CODE$
-
- .align 4
- .EXPORT bar,CODE
- .EXPORT bar,ENTRY,PRIV_LEV=3,RTNVAL=GR
-bar:
- .PROC
- .CALLINFO FRAME=128,CALLS,SAVE_RP
- .ENTRY
- ldil L'LC$0000,%r19
- ldw R'LC$0000(%r19),%r26
- stw %r2,-20(0,%r30)
- .CALL ARGW0=GR
- bl foo,%r2
- ldo 128(%r30),%r30
- ldw -148(0,%r30),%r2
- bv 0(%r2)
- ldo -128(%r30),%r30
- .EXIT
- .PROCEND
+++ /dev/null
- .SPACE $PRIVATE$
- .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31
- .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82
- .SPACE $TEXT$
- .SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44
- .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY
- .IMPORT $global$,DATA
- .IMPORT $$dyncall,MILLICODE
-; gcc_compiled.:
- .SPACE $TEXT$
- .SUBSPA $LIT$
-
- .align 8
-L$P0000
- .word 0x12345678
- .word 0x0
-
- .align 8
-L$C0000
- .word 0x3ff00000
- .word 0x0
- .SPACE $TEXT$
- .SUBSPA $CODE$
-
- .align 4
- .EXPORT g,ENTRY,PRIV_LEV=3,RTNVAL=FR
-g
- .PROC
- .CALLINFO FRAME=0,NO_CALLS
- .ENTRY
- stw %r19,-32(0,%r30)
- ldw T'L$C0000(%r19),%r20
- bv 0(%r2)
- fldds 0(0,%r20),%fr4
- .EXIT
- .PROCEND
- .IMPORT abort,CODE
- .IMPORT exit,CODE
- .SPACE $TEXT$
- .SUBSPA $LIT$
-
- .align 8
-L$C0001
- .word 0x3ff00000
- .word 0x0
- .SPACE $TEXT$
- .SUBSPA $CODE$
-
- .align 4
- .EXPORT main,ENTRY,PRIV_LEV=3,RTNVAL=GR
-main
- .PROC
- .CALLINFO FRAME=128,CALLS,SAVE_RP,ENTRY_GR=3
- .ENTRY
- stw %r2,-20(0,%r30)
- ldo 128(%r30),%r30
- stw %r19,-32(0,%r30)
- stw %r4,-128(0,%r30)
-
- copy %r19,%r4
- .CALL
- bl g,%r2
- copy %r4,%r19
- copy %r4,%r19
- ldw T'L$C0001(%r19),%r20
- fldds 0(0,%r20),%fr8
- fcmp,dbl,= %fr4,%fr8
- ftest
- add,tr 0,0,0
- bl,n L$0003,0
- .CALL
- bl abort,%r2
- nop
-L$0003
- .CALL ARGW0=GR
- bl exit,%r2
- ldi 0,%r26
- nop
- .EXIT
- .PROCEND