OSDN Git Service

Move picochip directory to correct location.
[pf3gnuchains/gcc-fork.git] / gcc / config / picochip / libgccExtras / parityhi2.asm
1 // picoChip ASM file
2 //.file "ucmpsi2.c"
3 //
4 //   Support for parity checks.
5 //
6 //   Copyright (C) 2003, 2004, 2005  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 2, or (at your option) any
13 //   later version.
14 //
15 //   In addition to the permissions in the GNU General Public License, the
16 //   Free Software Foundation gives you unlimited permission to link the
17 //   compiled version of this file into combinations with other programs,
18 //   and to distribute those combinations without any restriction coming
19 //   from the use of this file.  (The General Public License restrictions
20 //   do apply in other respects; for example, they cover modification of
21 //   the file, and distribution when not linked into a combine
22 //   executable.)
23 //
24 //   This file is distributed in the hope that it will be useful, but
25 //   WITHOUT ANY WARRANTY; without even the implied warranty of
26 //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
27 //   General Public License for more details.
28 //
29 //   You should have received a copy of the GNU General Public License
30 //   along with this program; see the file COPYING.  If not, write to
31 //   the Free Software Foundation, 51 Franklin Street, Fifth Floor,
32 //   Boston, MA 02110-1301, USA.
33         
34 .section .text
35
36 .align 8
37 .global ___parityhi2
38 ___parityhi2:
39 _picoMark_FUNCTION_BEGIN=
40
41 // picoChip Function Prologue : &___parityhi2 = 0 bytes
42         XOR.0 [LSR R0,8],R0,R0
43         XOR.0 [LSR R0,4],R0,R0
44         XOR.0 [LSR R0,2],R0,R0
45         JR (R12) \ XOR.0 [LSR R0,1],R0,R0
46 =->     AND.0 R0,1,R0
47
48 _picoMark_FUNCTION_END=
49 // picoChip Function Epilogue : __parityhi2
50 //============================================================================
51 // All DWARF information between this marker, and the END OF DWARF
52 // marker should be included in the source file. Search for
53 // FUNCTION_STACK_SIZE_GOES_HERE and FUNCTION NAME GOES HERE, and
54 // provide the relevent information. Add markers called
55 // _picoMark_FUNCTION_BEGIN and _picoMark_FUNCTION_END around the
56 // function in question.
57 //============================================================================
58
59 //============================================================================
60 // Frame information. 
61 //============================================================================
62
63 .section .debug_frame
64 _picoMark_DebugFrame=
65
66 // Common CIE header.
67 .unalignedInitLong _picoMark_CieEnd-_picoMark_CieBegin
68 _picoMark_CieBegin=
69 .unalignedInitLong 0xffffffff
70 .initByte 0x1   // CIE Version
71 .ascii 16#0#    // CIE Augmentation
72 .uleb128 0x1    // CIE Code Alignment Factor
73 .sleb128 2      // CIE Data Alignment Factor
74 .initByte 0xc   // CIE RA Column
75 .initByte 0xc   // DW_CFA_def_cfa
76 .uleb128 0xd
77 .uleb128 0x0
78 .align 2
79 _picoMark_CieEnd=
80
81 // FDE 
82 _picoMark_LSFDE0I900821033007563=
83 .unalignedInitLong _picoMark_FdeEnd-_picoMark_FdeBegin
84 _picoMark_FdeBegin=
85 .unalignedInitLong _picoMark_DebugFrame // FDE CIE offset
86 .unalignedInitWord _picoMark_FUNCTION_BEGIN     // FDE initial location
87 .unalignedInitWord _picoMark_FUNCTION_END-_picoMark_FUNCTION_BEGIN
88 .initByte 0xe   // DW_CFA_def_cfa_offset
89 .uleb128 0x0    // <-- FUNCTION_STACK_SIZE_GOES_HERE
90 .initByte 0x4   // DW_CFA_advance_loc4
91 .unalignedInitLong _picoMark_FUNCTION_END-_picoMark_FUNCTION_BEGIN
92 .initByte 0xe   // DW_CFA_def_cfa_offset
93 .uleb128 0x0
94 .align 2
95 _picoMark_FdeEnd=
96
97 //============================================================================
98 // Abbrevation information.
99 //============================================================================
100
101 .section .debug_abbrev
102 _picoMark_ABBREVIATIONS=
103
104 .section .debug_abbrev
105         .uleb128 0x1    // (abbrev code)
106         .uleb128 0x11   // (TAG: DW_TAG_compile_unit)
107         .initByte 0x1   // DW_children_yes
108         .uleb128 0x10   // (DW_AT_stmt_list)
109         .uleb128 0x6    // (DW_FORM_data4)
110         .uleb128 0x12   // (DW_AT_high_pc)
111         .uleb128 0x1    // (DW_FORM_addr)
112         .uleb128 0x11   // (DW_AT_low_pc)
113         .uleb128 0x1    // (DW_FORM_addr)
114         .uleb128 0x25   // (DW_AT_producer)
115         .uleb128 0x8    // (DW_FORM_string)
116         .uleb128 0x13   // (DW_AT_language)
117         .uleb128 0x5    // (DW_FORM_data2)
118         .uleb128 0x3    // (DW_AT_name)
119         .uleb128 0x8    // (DW_FORM_string)
120 .initByte 0x0
121 .initByte 0x0
122
123         .uleb128 0x2    ;# (abbrev code)
124         .uleb128 0x2e   ;# (TAG: DW_TAG_subprogram)
125 .initByte 0x0   ;# DW_children_no
126         .uleb128 0x3    ;# (DW_AT_name)
127         .uleb128 0x8    ;# (DW_FORM_string)
128         .uleb128 0x11   ;# (DW_AT_low_pc)
129         .uleb128 0x1    ;# (DW_FORM_addr)
130         .uleb128 0x12   ;# (DW_AT_high_pc)
131         .uleb128 0x1    ;# (DW_FORM_addr)
132 .initByte 0x0
133 .initByte 0x0
134
135 .initByte 0x0
136
137 //============================================================================
138 // Line information. DwarfLib requires this to be present, but it can
139 // be empty.
140 //============================================================================
141
142 .section .debug_line
143 _picoMark_LINES=
144
145 //============================================================================
146 // Debug Information
147 //============================================================================
148 .section .debug_info
149
150 //Fixed header.
151 .unalignedInitLong _picoMark_DEBUG_INFO_END-_picoMark_DEBUG_INFO_BEGIN
152 _picoMark_DEBUG_INFO_BEGIN=
153 .unalignedInitWord 0x2
154 .unalignedInitLong _picoMark_ABBREVIATIONS
155 .initByte 0x2
156
157 // Compile unit information.
158 .uleb128 0x1    // (DIE 0xb) DW_TAG_compile_unit)
159 .unalignedInitLong _picoMark_LINES
160 .unalignedInitWord _picoMark_FUNCTION_END
161 .unalignedInitWord _picoMark_FUNCTION_BEGIN
162 // Producer is `picoChip'
163 .ascii 16#70# 16#69# 16#63# 16#6f# 16#43# 16#68# 16#69# 16#70# 16#00#
164 .unalignedInitWord 0xcafe // ASM language
165 .ascii 16#0# // Name. DwarfLib expects this to be present.
166
167 .uleb128 0x2    ;# (DIE DW_TAG_subprogram)
168
169 // FUNCTION NAME GOES HERE. Use `echo name | od -t x1' to get the hex. Each hex
170 // digit is specified using the format 16#XX#
171 .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'
172 .unalignedInitWord _picoMark_FUNCTION_BEGIN     // DW_AT_low_pc
173 .unalignedInitWord _picoMark_FUNCTION_END       // DW_AT_high_pc
174
175 .initByte 0x0   // end of compile unit children.
176
177 _picoMark_DEBUG_INFO_END=
178
179 //============================================================================
180 // END OF DWARF
181 //============================================================================
182
183 .section .endFile
184 // End of picoChip ASM file