xref: /netbsd-src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.arch/i386-float.S (revision bdc22b2e01993381dcefeff2bc9b56ca75a4235c)
1/* Copyright 2009-2016 Free Software Foundation, Inc.
2
3   This program is free software; you can redistribute it and/or modify
4   it under the terms of the GNU General Public License as published by
5   the Free Software Foundation; either version 3 of the License, or
6   (at your option) any later version.
7
8   This program is distributed in the hope that it will be useful,
9   but WITHOUT ANY WARRANTY; without even the implied warranty of
10   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11   GNU General Public License for more details.
12
13   You should have received a copy of the GNU General Public License
14   along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
16   This file is part of the gdb testsuite.  */
17
18#define CONCAT1(a, b) CONCAT2(a, b)
19#define CONCAT2(a, b) a ## b
20
21#ifdef SYMBOL_PREFIX
22# define SYMBOL(str)     CONCAT1(SYMBOL_PREFIX, str)
23#else
24# define SYMBOL(str)     str
25#endif
26
27	.text
28	.globl SYMBOL(main)
29SYMBOL(main):
30	fninit
31	fldt    val
32	fldt    bigval
33	fldt    smallval
34	ret
35.data
36	val: .byte 0x00,0x00,0x45,0x07,0x11,0x19,0x22,0xe9,0xfe,0xbf
37	smallval: .byte 0xe9,0xd0,0xd7,0x65,0x81,0xb7,0x43,0xc6,0x5c,0x6a
38	bigval:   .byte 0x6a,0x45,0x90,0xdc,0x03,0xc1,0xf8,0xc6,0xe5,0x03
39