VirtualBox

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

Last change on this file since 96351 was 96350, checked in by vboxsync, 2 years ago

VMM/testcase/tstIEMAImpl: Implement basic divss/divsd testcases, bugref:9898

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.3 KB
Line 
1/* $Id: tstIEMAImplDataSseBinary.S 96350 2022-08-19 17:05:35Z 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#ifdef ASM_FORMAT_ELF
32# define IEM_TEST_DATA(a_Instr, a_DataFile) \
33 .p2align 6 \
34 .globl NAME(g_aTests_ ## a_Instr) \
35 NAME(g_aTests_ ## a_Instr): \
36 .incbin # a_DataFile \
37 end_g_aTests_ ## a_Instr: \
38 .p2align 2 \
39 .globl NAME(g_cbTests_ ## a_Instr) \
40 NAME(g_cbTests_ ## a_Instr): \
41 .long end_g_aTests_ ## a_Instr - NAME(g_aTests_ ## a_Instr) \
42 .size g_aTests_ ## a_Instr, end_g_aTests_ ## a_Instr - NAME(g_aTests_ ## a_Instr) \
43 .type g_aTests_ ## a_Instr, object \
44 .size g_cbTests_ ## a_Instr, 4 \
45 .type g_cbTests_ ## a_Instr, object \
46#else
47# define IEM_TEST_DATA(a_Instr, a_DataFile) \
48 .p2align 6 \
49 .globl NAME(g_aTests_ ## a_Instr) \
50 NAME(g_aTests_ ## a_Instr): \
51 .incbin # a_DataFile \
52 end_g_aTests_ ## a_Instr: \
53 .p2align 2 \
54 .globl NAME(g_cbTests_ ## a_Instr) \
55 NAME(g_cbTests_ ## a_Instr): \
56 .long end_g_aTests_ ## a_Instr - NAME(g_aTests_ ## a_Instr)
57#endif
58
59IEM_TEST_DATA(addps_u128, "tstIEMAImplDataSseBinary-addps_u128.bin")
60IEM_TEST_DATA(mulps_u128, "tstIEMAImplDataSseBinary-mulps_u128.bin")
61IEM_TEST_DATA(subps_u128, "tstIEMAImplDataSseBinary-subps_u128.bin")
62IEM_TEST_DATA(minps_u128, "tstIEMAImplDataSseBinary-minps_u128.bin")
63IEM_TEST_DATA(divps_u128, "tstIEMAImplDataSseBinary-divps_u128.bin")
64IEM_TEST_DATA(maxps_u128, "tstIEMAImplDataSseBinary-maxps_u128.bin")
65
66IEM_TEST_DATA(addss_u128_r32, "tstIEMAImplDataSseBinary-addss_u128_r32.bin")
67IEM_TEST_DATA(mulss_u128_r32, "tstIEMAImplDataSseBinary-mulss_u128_r32.bin")
68IEM_TEST_DATA(subss_u128_r32, "tstIEMAImplDataSseBinary-subss_u128_r32.bin")
69IEM_TEST_DATA(minss_u128_r32, "tstIEMAImplDataSseBinary-minss_u128_r32.bin")
70IEM_TEST_DATA(divss_u128_r32, "tstIEMAImplDataSseBinary-divss_u128_r32.bin")
71
72IEM_TEST_DATA(addpd_u128, "tstIEMAImplDataSseBinary-addpd_u128.bin")
73IEM_TEST_DATA(mulpd_u128, "tstIEMAImplDataSseBinary-mulpd_u128.bin")
74IEM_TEST_DATA(subpd_u128, "tstIEMAImplDataSseBinary-subpd_u128.bin")
75IEM_TEST_DATA(minpd_u128, "tstIEMAImplDataSseBinary-minpd_u128.bin")
76IEM_TEST_DATA(divpd_u128, "tstIEMAImplDataSseBinary-divpd_u128.bin")
77IEM_TEST_DATA(maxpd_u128, "tstIEMAImplDataSseBinary-maxpd_u128.bin")
78
79IEM_TEST_DATA(addsd_u128_r64, "tstIEMAImplDataSseBinary-addsd_u128_r64.bin")
80IEM_TEST_DATA(mulsd_u128_r64, "tstIEMAImplDataSseBinary-mulsd_u128_r64.bin")
81IEM_TEST_DATA(subsd_u128_r64, "tstIEMAImplDataSseBinary-subsd_u128_r64.bin")
82IEM_TEST_DATA(minsd_u128_r64, "tstIEMAImplDataSseBinary-minsd_u128_r64.bin")
83IEM_TEST_DATA(divsd_u128_r64, "tstIEMAImplDataSseBinary-divsd_u128_r64.bin")
Note: See TracBrowser for help on using the repository browser.

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