OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgcc/] [config/] [picochip/] [ashlsi3.S] - Blame information for rev 734

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 734 jeremybenn
// picoChip ASM file
2
// picoChip ASM file
3
//
4
//   Support for 32-bit arithmetic shift left.
5
//
6
//   Copyright (C) 2003, 2004, 2005, 2008, 2009  Free Software Foundation, Inc.
7
//   Contributed by Picochip Ltd.
8
//   Maintained by Hariharan Sandanagobalane (hariharan@picochip.com)
9
//
10
//   This file is free software; you can redistribute it and/or modify it
11
//   under the terms of the GNU General Public License as published by the
12
//   Free Software Foundation; either version 3, or (at your option) any
13
//   later version.
14
//
15
//   This file is distributed in the hope that it will be useful, but
16
//   WITHOUT ANY WARRANTY; without even the implied warranty of
17
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18
//   General Public License for more details.
19
//
20
//   Under Section 7 of GPL version 3, you are granted additional
21
//   permissions described in the GCC Runtime Library Exception, version
22
//   3.1, as published by the Free Software Foundation.
23
//
24
//   You should have received a copy of the GNU General Public License and
25
//   a copy of the GCC Runtime Library Exception along with this program;
26
//   see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
27
//   .
28
 
29
.section .text
30
 
31
.global ___ashlsi3
32
___ashlsi3:
33
_picoMark_FUNCTION_BEGIN=
34
// picoChip Function Prologue : &___ashlsi3 = 0 bytes
35
 
36
        // if (R2 > 15) goto _L2
37
        SUB.0 15,R2,r15
38
        JMPLT _L2
39
=->     SUB.0 16,R2,R5   // R5 := R5 - R4 (HI)
40
 
41
        LSL.0 R1,R2,R1    // R3 := R1 << R2
42
        LSL.0 R0,R2,R4    // R2 := R0 << R2
43
 
44
        LSR.0 R0,R5,R5 // R5 := R12 >> R5 NEED TO CHECK - HARI
45
        OR.0 R5,R1,R5 // R3 := R5 IOR R0 (HI)
46
        SUB.0 R2,0,r15
47
        COPYNE R5,R1
48
        JR (R12)        // Return to caller
49
=->     COPY.0 R4,R0
50
 
51
_L2:
52
        LSL.0 R0,R2,R1  // R3 := R0 << R2
53
        JR (R12)        // Return to caller
54
=->     COPY.0 0,R0     // R2 := 0 (short constant)
55
 
56
_picoMark_FUNCTION_END=
57
 
58
// picoChip Function Epilogue : __ashlsi3
59
 
60
//============================================================================
61
// All DWARF information between this marker, and the END OF DWARF
62
// marker should be included in the source file. Search for
63
// FUNCTION_STACK_SIZE_GOES_HERE and FUNCTION NAME GOES HERE, and
64
// provide the relevent information. Add markers called
65
// _picoMark_FUNCTION_BEGIN and _picoMark_FUNCTION_END around the
66
// function in question.
67
//============================================================================
68
 
69
//============================================================================
70
// Frame information.
71
//============================================================================
72
 
73
.section .debug_frame
74
_picoMark_DebugFrame=
75
 
76
// Common CIE header.
77
.unalignedInitLong _picoMark_CieEnd-_picoMark_CieBegin
78
_picoMark_CieBegin=
79
.unalignedInitLong 0xffffffff
80
.initByte 0x1   // CIE Version
81
.ascii 16#0#    // CIE Augmentation
82
.uleb128 0x1    // CIE Code Alignment Factor
83
.sleb128 2      // CIE Data Alignment Factor
84
.initByte 0xc   // CIE RA Column
85
.initByte 0xc   // DW_CFA_def_cfa
86
.uleb128 0xd
87
.uleb128 0x0
88
.align 2
89
_picoMark_CieEnd=
90
 
91
// FDE
92
_picoMark_LSFDE0I900821033007563=
93
.unalignedInitLong _picoMark_FdeEnd-_picoMark_FdeBegin
94
_picoMark_FdeBegin=
95
.unalignedInitLong _picoMark_DebugFrame // FDE CIE offset
96
.unalignedInitWord _picoMark_FUNCTION_BEGIN     // FDE initial location
97
.unalignedInitWord _picoMark_FUNCTION_END-_picoMark_FUNCTION_BEGIN
98
.initByte 0xe   // DW_CFA_def_cfa_offset
99
.uleb128 0x0    // <-- FUNCTION_STACK_SIZE_GOES_HERE
100
.initByte 0x4   // DW_CFA_advance_loc4
101
.unalignedInitLong _picoMark_FUNCTION_END-_picoMark_FUNCTION_BEGIN
102
.initByte 0xe   // DW_CFA_def_cfa_offset
103
.uleb128 0x0
104
.align 2
105
_picoMark_FdeEnd=
106
 
107
//============================================================================
108
// Abbrevation information.
109
//============================================================================
110
 
111
.section .debug_abbrev
112
_picoMark_ABBREVIATIONS=
113
 
114
.section .debug_abbrev
115
        .uleb128 0x1    // (abbrev code)
116
        .uleb128 0x11   // (TAG: DW_TAG_compile_unit)
117
        .initByte 0x1   // DW_children_yes
118
        .uleb128 0x10   // (DW_AT_stmt_list)
119
        .uleb128 0x6    // (DW_FORM_data4)
120
        .uleb128 0x12   // (DW_AT_high_pc)
121
        .uleb128 0x1    // (DW_FORM_addr)
122
        .uleb128 0x11   // (DW_AT_low_pc)
123
        .uleb128 0x1    // (DW_FORM_addr)
124
        .uleb128 0x25   // (DW_AT_producer)
125
        .uleb128 0x8    // (DW_FORM_string)
126
        .uleb128 0x13   // (DW_AT_language)
127
        .uleb128 0x5    // (DW_FORM_data2)
128
        .uleb128 0x3    // (DW_AT_name)
129
        .uleb128 0x8    // (DW_FORM_string)
130
.initByte 0x0
131
.initByte 0x0
132
 
133
        .uleb128 0x2    ;# (abbrev code)
134
        .uleb128 0x2e   ;# (TAG: DW_TAG_subprogram)
135
.initByte 0x0   ;# DW_children_no
136
        .uleb128 0x3    ;# (DW_AT_name)
137
        .uleb128 0x8    ;# (DW_FORM_string)
138
        .uleb128 0x11   ;# (DW_AT_low_pc)
139
        .uleb128 0x1    ;# (DW_FORM_addr)
140
        .uleb128 0x12   ;# (DW_AT_high_pc)
141
        .uleb128 0x1    ;# (DW_FORM_addr)
142
.initByte 0x0
143
.initByte 0x0
144
 
145
.initByte 0x0
146
 
147
//============================================================================
148
// Line information. DwarfLib requires this to be present, but it can
149
// be empty.
150
//============================================================================
151
 
152
.section .debug_line
153
_picoMark_LINES=
154
 
155
//============================================================================
156
// Debug Information
157
//============================================================================
158
.section .debug_info
159
 
160
//Fixed header.
161
.unalignedInitLong _picoMark_DEBUG_INFO_END-_picoMark_DEBUG_INFO_BEGIN
162
_picoMark_DEBUG_INFO_BEGIN=
163
.unalignedInitWord 0x2
164
.unalignedInitLong _picoMark_ABBREVIATIONS
165
.initByte 0x2
166
 
167
// Compile unit information.
168
.uleb128 0x1    // (DIE 0xb) DW_TAG_compile_unit)
169
.unalignedInitLong _picoMark_LINES
170
.unalignedInitWord _picoMark_FUNCTION_END
171
.unalignedInitWord _picoMark_FUNCTION_BEGIN
172
// Producer is `picoChip'
173
.ascii 16#70# 16#69# 16#63# 16#6f# 16#43# 16#68# 16#69# 16#70# 16#00#
174
.unalignedInitWord 0xcafe // ASM language
175
.ascii 16#0# // Name. DwarfLib expects this to be present.
176
 
177
.uleb128 0x2    ;# (DIE DW_TAG_subprogram)
178
 
179
// FUNCTION NAME GOES HERE. Use `echo name | od -t x1' to get the hex. Each hex
180
// digit is specified using the format 16#XX#
181
.ascii 16#5f# 16#61# 16#73# 16#68# 16#6c# 16#73# 16#69# 16#33# 16#0# // Function name `_ashlsi3'
182
.unalignedInitWord _picoMark_FUNCTION_BEGIN     // DW_AT_low_pc
183
.unalignedInitWord _picoMark_FUNCTION_END       // DW_AT_high_pc
184
 
185
.initByte 0x0   // end of compile unit children.
186
 
187
_picoMark_DEBUG_INFO_END=
188
 
189
//============================================================================
190
// END OF DWARF
191
//============================================================================
192
 
193
.section .endFile

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.