VirtualBox

Ignore:
Timestamp:
Aug 21, 2024 11:53:18 AM (6 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164470
Message:

Disassembler/testcase: Add tstDisasmArmv8-1 testcase for testing the ARMv8 disassembler by checking the disassembled output against the original source for semantic equality, bugref:10394 [Convert ; Comments to /* and adapt the testcase to ignore those as scm wants C style license headers for *.S files...]

Location:
trunk/src/VBox/Disassembler/testcase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Disassembler/testcase/tstDisasmArmv8-1-asm.S

    r105748 r105758  
    1 ; $Id$
    2 ;; @file
    3 ; VBox disassembler: Assembler test routines - ARMv8 A64 variant
    4 ;
     1/* $Id$ */
     2/** @file
     3 * VBox disassembler - Tables for ARMv8 A64.
     4 */
    55
    6 ;
    7 ; Copyright (C) 2024 Oracle and/or its affiliates.
    8 ;
    9 ; This file is part of VirtualBox base platform packages, as
    10 ; available from https://www.virtualbox.org.
    11 ;
    12 ; This program is free software; you can redistribute it and/or
    13 ; modify it under the terms of the GNU General Public License
    14 ; as published by the Free Software Foundation, in version 3 of the
    15 ; License.
    16 ;
    17 ; This program is distributed in the hope that it will be useful, but
    18 ; WITHOUT ANY WARRANTY; without even the implied warranty of
    19 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    20 ; General Public License for more details.
    21 ;
    22 ; You should have received a copy of the GNU General Public License
    23 ; along with this program; if not, see <https://www.gnu.org/licenses>.
    24 ;
    25 ; SPDX-License-Identifier: GPL-3.0-only
    26 ;
     6/*
     7 * Copyright (C) 2023 Oracle and/or its affiliates.
     8 *
     9 * This file is part of VirtualBox base platform packages, as
     10 * available from https://www.virtualbox.org.
     11 *
     12 * This program is free software; you can redistribute it and/or
     13 * modify it under the terms of the GNU General Public License
     14 * as published by the Free Software Foundation, in version 3 of the
     15 * License.
     16 *
     17 * This program is distributed in the hope that it will be useful, but
     18 * WITHOUT ANY WARRANTY; without even the implied warranty of
     19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     20 * General Public License for more details.
     21 *
     22 * You should have received a copy of the GNU General Public License
     23 * along with this program; if not, see <https://www.gnu.org/licenses>.
     24 *
     25 * SPDX-License-Identifier: GPL-3.0-only
     26 */
    2727
    2828.private_extern _TestProcA64
     
    5151;        bc.eq #-0x1000 Requires FEAT_HBC
    5252
     53        add x0, x0, #0x0
     54        add w0, w1, #0x10000
     55        add w0, w1, #65536
     56
     57        adds x0, x0, #0x0
     58        adds w0, w1, #0x10000
     59        adds w0, w1, #65536
     60
     61        sub x0, x0, #0x0
     62        sub w0, w1, #0x10000
     63        sub w0, w1, #65536
     64
     65        subs x0, x0, #0x0
     66        subs w0, w1, #0x10000
     67        subs w0, w1, #65536
     68
     69;       mov x0, x1 @todo Aliases are not supported right now.
     70;       mov w0, w1
     71
     72        and x0, x0, #0xffff
     73
    5374.private_extern _TestProcA64_EndProc
    5475_TestProcA64_EndProc:
  • trunk/src/VBox/Disassembler/testcase/tstDisasmArmv8-1.cpp

    r105748 r105758  
    6565
    6666
     67static const char *s_aszMultiStart[] =
     68{
     69    "/*",
     70    NULL
     71};
     72
     73
     74static const char *s_aszMultiEnd[] =
     75{
     76    "*/",
     77    NULL
     78};
     79
     80
    6781static const RTSCRIPTLEXTOKMATCH s_aMatches[] =
    6882{
     
    106120    NULL,
    107121    /** papszCommentMultiStart */
    108     NULL,
     122    s_aszMultiStart,
    109123    /** papszCommentMultiEnd */
    110     NULL,
     124    s_aszMultiEnd,
    111125    /** papszCommentSingleStart */
    112126    s_aszSingleStart,
Note: See TracChangeset for help on using the changeset viewer.

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