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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [config/] [picochip/] [libgccExtras/] [parityhi2.asm] - Blame information for rev 301

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 282 jeremybenn
// picoChip ASM file
2
//.file "ucmpsi2.c"
3
//
4
//   Support for parity checks.
5
//
6
//   Copyright (C) 2003, 2004, 2005, 2008, 2009  Free Software Foundation, Inc.
7
//   Contributed by picoChip Designs Ltd.
8
//   Maintained by Daniel Towner (daniel.towner@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
.align 8
32
.global ___parityhi2
33
___parityhi2:
34
_picoMark_FUNCTION_BEGIN=
35
 
36
// picoChip Function Prologue : &___parityhi2 = 0 bytes
37
        XOR.0 [LSR R0,8],R0,R0
38
        XOR.0 [LSR R0,4],R0,R0
39
        XOR.0 [LSR R0,2],R0,R0
40
        JR (R12) \ XOR.0 [LSR R0,1],R0,R0
41
=->     AND.0 R0,1,R0
42
 
43
_picoMark_FUNCTION_END=
44
// picoChip Function Epilogue : __parityhi2
45
//============================================================================
46
// All DWARF information between this marker, and the END OF DWARF
47
// marker should be included in the source file. Search for
48
// FUNCTION_STACK_SIZE_GOES_HERE and FUNCTION NAME GOES HERE, and
49
// provide the relevent information. Add markers called
50
// _picoMark_FUNCTION_BEGIN and _picoMark_FUNCTION_END around the
51
// function in question.
52
//============================================================================
53
 
54
//============================================================================
55
// Frame information.
56
//============================================================================
57
 
58
.section .debug_frame
59
_picoMark_DebugFrame=
60
 
61
// Common CIE header.
62
.unalignedInitLong _picoMark_CieEnd-_picoMark_CieBegin
63
_picoMark_CieBegin=
64
.unalignedInitLong 0xffffffff
65
.initByte 0x1   // CIE Version
66
.ascii 16#0#    // CIE Augmentation
67
.uleb128 0x1    // CIE Code Alignment Factor
68
.sleb128 2      // CIE Data Alignment Factor
69
.initByte 0xc   // CIE RA Column
70
.initByte 0xc   // DW_CFA_def_cfa
71
.uleb128 0xd
72
.uleb128 0x0
73
.align 2
74
_picoMark_CieEnd=
75
 
76
// FDE
77
_picoMark_LSFDE0I900821033007563=
78
.unalignedInitLong _picoMark_FdeEnd-_picoMark_FdeBegin
79
_picoMark_FdeBegin=
80
.unalignedInitLong _picoMark_DebugFrame // FDE CIE offset
81
.unalignedInitWord _picoMark_FUNCTION_BEGIN     // FDE initial location
82
.unalignedInitWord _picoMark_FUNCTION_END-_picoMark_FUNCTION_BEGIN
83
.initByte 0xe   // DW_CFA_def_cfa_offset
84
.uleb128 0x0    // <-- FUNCTION_STACK_SIZE_GOES_HERE
85
.initByte 0x4   // DW_CFA_advance_loc4
86
.unalignedInitLong _picoMark_FUNCTION_END-_picoMark_FUNCTION_BEGIN
87
.initByte 0xe   // DW_CFA_def_cfa_offset
88
.uleb128 0x0
89
.align 2
90
_picoMark_FdeEnd=
91
 
92
//============================================================================
93
// Abbrevation information.
94
//============================================================================
95
 
96
.section .debug_abbrev
97
_picoMark_ABBREVIATIONS=
98
 
99
.section .debug_abbrev
100
        .uleb128 0x1    // (abbrev code)
101
        .uleb128 0x11   // (TAG: DW_TAG_compile_unit)
102
        .initByte 0x1   // DW_children_yes
103
        .uleb128 0x10   // (DW_AT_stmt_list)
104
        .uleb128 0x6    // (DW_FORM_data4)
105
        .uleb128 0x12   // (DW_AT_high_pc)
106
        .uleb128 0x1    // (DW_FORM_addr)
107
        .uleb128 0x11   // (DW_AT_low_pc)
108
        .uleb128 0x1    // (DW_FORM_addr)
109
        .uleb128 0x25   // (DW_AT_producer)
110
        .uleb128 0x8    // (DW_FORM_string)
111
        .uleb128 0x13   // (DW_AT_language)
112
        .uleb128 0x5    // (DW_FORM_data2)
113
        .uleb128 0x3    // (DW_AT_name)
114
        .uleb128 0x8    // (DW_FORM_string)
115
.initByte 0x0
116
.initByte 0x0
117
 
118
        .uleb128 0x2    ;# (abbrev code)
119
        .uleb128 0x2e   ;# (TAG: DW_TAG_subprogram)
120
.initByte 0x0   ;# DW_children_no
121
        .uleb128 0x3    ;# (DW_AT_name)
122
        .uleb128 0x8    ;# (DW_FORM_string)
123
        .uleb128 0x11   ;# (DW_AT_low_pc)
124
        .uleb128 0x1    ;# (DW_FORM_addr)
125
        .uleb128 0x12   ;# (DW_AT_high_pc)
126
        .uleb128 0x1    ;# (DW_FORM_addr)
127
.initByte 0x0
128
.initByte 0x0
129
 
130
.initByte 0x0
131
 
132
//============================================================================
133
// Line information. DwarfLib requires this to be present, but it can
134
// be empty.
135
//============================================================================
136
 
137
.section .debug_line
138
_picoMark_LINES=
139
 
140
//============================================================================
141
// Debug Information
142
//============================================================================
143
.section .debug_info
144
 
145
//Fixed header.
146
.unalignedInitLong _picoMark_DEBUG_INFO_END-_picoMark_DEBUG_INFO_BEGIN
147
_picoMark_DEBUG_INFO_BEGIN=
148
.unalignedInitWord 0x2
149
.unalignedInitLong _picoMark_ABBREVIATIONS
150
.initByte 0x2
151
 
152
// Compile unit information.
153
.uleb128 0x1    // (DIE 0xb) DW_TAG_compile_unit)
154
.unalignedInitLong _picoMark_LINES
155
.unalignedInitWord _picoMark_FUNCTION_END
156
.unalignedInitWord _picoMark_FUNCTION_BEGIN
157
// Producer is `picoChip'
158
.ascii 16#70# 16#69# 16#63# 16#6f# 16#43# 16#68# 16#69# 16#70# 16#00#
159
.unalignedInitWord 0xcafe // ASM language
160
.ascii 16#0# // Name. DwarfLib expects this to be present.
161
 
162
.uleb128 0x2    ;# (DIE DW_TAG_subprogram)
163
 
164
// FUNCTION NAME GOES HERE. Use `echo name | od -t x1' to get the hex. Each hex
165
// digit is specified using the format 16#XX#
166
.ascii 16#5f# 16#5f# 16#70# 16#61# 16#72# 16#69# 16#74# 16#79# 16#68# 16#69# 16#32# 16#0# // Function name `__parityhi2'
167
.unalignedInitWord _picoMark_FUNCTION_BEGIN     // DW_AT_low_pc
168
.unalignedInitWord _picoMark_FUNCTION_END       // DW_AT_high_pc
169
 
170
.initByte 0x0   // end of compile unit children.
171
 
172
_picoMark_DEBUG_INFO_END=
173
 
174
//============================================================================
175
// END OF DWARF
176
//============================================================================
177
 
178
.section .endFile
179
// End of picoChip ASM file

powered by: WebSVN 2.1.0

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