1/*	$OpenBSD: test_asm.S,v 1.1 2003/07/12 04:08:33 jason Exp $	*/
2
3/*
4 * Copyright (c) 2003 Jason L. Wright (jason@thought.net)
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 *    notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 *    notice, this list of conditions and the following disclaimer in the
14 *    documentation and/or other materials provided with the distribution.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
20 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
24 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
25 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 * POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <machine/asm.h>
30#include <machine/trap.h>
31#include <machine/frame.h>
32
33ENTRY(asm_ldq_f0)
34	retl
35	 ldq	[%o0], %f0
36
37ENTRY(asm_ldq_f4)
38	retl
39	 ldq	[%o0], %f4
40
41ENTRY(asm_ldq_f8)
42	retl
43	 ldq	[%o0], %f8
44
45ENTRY(asm_ldq_f12)
46	retl
47	 ldq	[%o0], %f12
48
49ENTRY(asm_ldq_f16)
50	retl
51	 ldq	[%o0], %f16
52
53ENTRY(asm_ldq_f20)
54	retl
55	 ldq	[%o0], %f20
56
57ENTRY(asm_ldq_f24)
58	retl
59	 ldq	[%o0], %f24
60
61ENTRY(asm_ldq_f28)
62	retl
63	 ldq	[%o0], %f28
64
65ENTRY(asm_ldq_f32)
66	retl
67	 ldq	[%o0], %f32
68
69ENTRY(asm_ldq_f36)
70	retl
71	 ldq	[%o0], %f36
72
73ENTRY(asm_ldq_f40)
74	retl
75	 ldq	[%o0], %f40
76
77ENTRY(asm_ldq_f44)
78	retl
79	 ldq	[%o0], %f44
80
81ENTRY(asm_ldq_f48)
82	retl
83	 ldq	[%o0], %f48
84
85ENTRY(asm_ldq_f52)
86	retl
87	 ldq	[%o0], %f52
88
89ENTRY(asm_ldq_f56)
90	retl
91	 ldq	[%o0], %f56
92
93ENTRY(asm_ldq_f60)
94	retl
95	 ldq	[%o0], %f60
96
97ENTRY(asm_stq_f0)
98	retl
99	 stq	%f0, [%o0]
100
101ENTRY(asm_stq_f4)
102	retl
103	 stq	%f4, [%o0]
104
105ENTRY(asm_stq_f8)
106	retl
107	 stq	%f8, [%o0]
108
109ENTRY(asm_stq_f12)
110	retl
111	 stq	%f12, [%o0]
112
113ENTRY(asm_stq_f16)
114	retl
115	 stq	%f16, [%o0]
116
117ENTRY(asm_stq_f20)
118	retl
119	 stq	%f20, [%o0]
120
121ENTRY(asm_stq_f24)
122	retl
123	 stq	%f24, [%o0]
124
125ENTRY(asm_stq_f28)
126	retl
127	 stq	%f28, [%o0]
128
129ENTRY(asm_stq_f32)
130	retl
131	 stq	%f32, [%o0]
132
133ENTRY(asm_stq_f36)
134	retl
135	 stq	%f36, [%o0]
136
137ENTRY(asm_stq_f40)
138	retl
139	 stq	%f40, [%o0]
140
141ENTRY(asm_stq_f44)
142	retl
143	 stq	%f44, [%o0]
144
145ENTRY(asm_stq_f48)
146	retl
147	 stq	%f48, [%o0]
148
149ENTRY(asm_stq_f52)
150	retl
151	 stq	%f52, [%o0]
152
153ENTRY(asm_stq_f56)
154	retl
155	 stq	%f56, [%o0]
156
157ENTRY(asm_stq_f60)
158	retl
159	 stq	%f60, [%o0]
160