VirtualBox

source: vbox/trunk/src/VBox/VMM/testcase/tstIEMAImplDataSseBinary.S@ 96378

Last change on this file since 96378 was 96378, checked in by vboxsync, 3 years ago

tstIEMAImpl: Use assembler macro for both darwin and elf. bugref:9898

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1/* $Id: tstIEMAImplDataSseBinary.S 96378 2022-08-20 16:20:36Z vboxsync $ */
2/** @file
3 * tstIEMAImplDataSseBinary - Test data for SSE binary instructions.
4 */
5
6/*
7 * Copyright (C) 2022 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18
19#ifdef RT_OS_DARWIN
20# define NAME(a_Name) _##a_Name
21#else
22# define NAME(a_Name) a_Name
23#endif
24
25#ifdef RT_OS_DARWIN
26.section __TEXT,__const
27#else
28.section __TEXT
29#endif
30
31.macro IEM_TEST_DATA a_Instr, a_szDataFile
32 .p2align 6
33 .globl NAME(g_aTests_\a_Instr)
34NAME(g_aTests_\a_Instr):
35 .incbin "\a_szDataFile"
36NAME(g_aTests_end_\a_Instr):
37#ifdef ASM_FORMAT_ELF
38 .size NAME(g_aTests_\a_Instr), . - NAME(g_aTests_\a_Instr)
39 .type NAME(g_aTests_\a_Instr), object
40#endif
41
42 .p2align 2
43 .globl NAME(g_cbTests_\a_Instr)
44NAME(g_cbTests_\a_Instr):
45 .int NAME(g_aTests_end_\a_Instr) - NAME(g_aTests_\a_Instr)
46#ifdef ASM_FORMAT_ELF
47 .size NAME(g_cbTests_\a_Instr), 4
48 .type NAME(g_cbTests_\a_Instr), object
49#endif
50.endm
51
52IEM_TEST_DATA addps_u128, "tstIEMAImplDataSseBinary-addps_u128.bin"
53IEM_TEST_DATA mulps_u128, "tstIEMAImplDataSseBinary-mulps_u128.bin"
54IEM_TEST_DATA subps_u128, "tstIEMAImplDataSseBinary-subps_u128.bin"
55IEM_TEST_DATA minps_u128, "tstIEMAImplDataSseBinary-minps_u128.bin"
56IEM_TEST_DATA divps_u128, "tstIEMAImplDataSseBinary-divps_u128.bin"
57IEM_TEST_DATA maxps_u128, "tstIEMAImplDataSseBinary-maxps_u128.bin"
58
59IEM_TEST_DATA addss_u128_r32, "tstIEMAImplDataSseBinary-addss_u128_r32.bin"
60IEM_TEST_DATA mulss_u128_r32, "tstIEMAImplDataSseBinary-mulss_u128_r32.bin"
61IEM_TEST_DATA subss_u128_r32, "tstIEMAImplDataSseBinary-subss_u128_r32.bin"
62IEM_TEST_DATA minss_u128_r32, "tstIEMAImplDataSseBinary-minss_u128_r32.bin"
63IEM_TEST_DATA divss_u128_r32, "tstIEMAImplDataSseBinary-divss_u128_r32.bin"
64IEM_TEST_DATA maxss_u128_r32, "tstIEMAImplDataSseBinary-maxss_u128_r32.bin"
65
66IEM_TEST_DATA addpd_u128, "tstIEMAImplDataSseBinary-addpd_u128.bin"
67IEM_TEST_DATA mulpd_u128, "tstIEMAImplDataSseBinary-mulpd_u128.bin"
68IEM_TEST_DATA subpd_u128, "tstIEMAImplDataSseBinary-subpd_u128.bin"
69IEM_TEST_DATA minpd_u128, "tstIEMAImplDataSseBinary-minpd_u128.bin"
70IEM_TEST_DATA divpd_u128, "tstIEMAImplDataSseBinary-divpd_u128.bin"
71IEM_TEST_DATA maxpd_u128, "tstIEMAImplDataSseBinary-maxpd_u128.bin"
72
73IEM_TEST_DATA addsd_u128_r64, "tstIEMAImplDataSseBinary-addsd_u128_r64.bin"
74IEM_TEST_DATA mulsd_u128_r64, "tstIEMAImplDataSseBinary-mulsd_u128_r64.bin"
75IEM_TEST_DATA subsd_u128_r64, "tstIEMAImplDataSseBinary-subsd_u128_r64.bin"
76IEM_TEST_DATA minsd_u128_r64, "tstIEMAImplDataSseBinary-minsd_u128_r64.bin"
77IEM_TEST_DATA divsd_u128_r64, "tstIEMAImplDataSseBinary-divsd_u128_r64.bin"
78IEM_TEST_DATA maxsd_u128_r64, "tstIEMAImplDataSseBinary-maxsd_u128_r64.bin"
79
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette