VirtualBox

Ignore:
Timestamp:
Aug 23, 2024 4:05:23 PM (9 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164567
Message:

Disassembler/ARMv8: Support disassembling the load/store register offset instruction variants, bugref:10394

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

Legend:

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

    r105830 r105848  
    420420        ldp x0, x1, [x28, #504]
    421421
     422        ldr  x0, [x1, x2]
     423        ldr  w0, [x1, x2]
     424        ldr  x0, [x1, x2, SXTX #0]
     425        ldr  x0, [x1, x2, LSL  #3]  ; UXTX
     426        ldr  x0, [x1, x2, SXTX #3]
     427        ldr  w0, [x1, w2, UXTW #0]
     428        ldr  w0, [x1, w2, SXTW #0]
     429        ldr  w0, [x1, w2, UXTW #2]
     430        ldr  w0, [x1, w2, SXTW #2]
     431
     432        ldrb w0, [x1, x2]
     433        ldrb w0, [x1, x2, LSL  #0]  ; UXTX
     434        ldrb w0, [x1, x2, SXTX #0]
     435        ldrb w0, [x1, w2, UXTW #0]
     436        ldrb w0, [x1, w2, SXTW #0]
     437
     438        ldrsb w0, [x1, x2]
     439        ldrsb w0, [x1, x2, LSL  #0] ; UXTX
     440        ldrsb w0, [x1, x2, SXTX #0]
     441        ldrsb w0, [x1, w2, UXTW #0]
     442        ldrsb w0, [x1, w2, SXTW #0]
     443
     444        ldrh w0, [x1, x2]
     445        ;ldrh w0, [x1, x2, LSL  #0]  ; UXTX
     446        ldrh w0, [x1, x2, SXTX #0]
     447        ldrh w0, [x1, x2, LSL  #1]   ; UXTX
     448        ldrh w0, [x1, x2, SXTX #1]
     449        ldrh w0, [x1, w2, UXTW #0]
     450        ldrh w0, [x1, w2, SXTW #0]
     451        ldrh w0, [x1, w2, UXTW #1]
     452        ldrh w0, [x1, w2, SXTW #1]
     453
     454        ldrsh w0, [x1, x2]
     455        ;ldrsh w0, [x1, x2, LSL  #0] ; UXTX
     456        ldrsh w0, [x1, x2, SXTX #0]
     457        ldrsh w0, [x1, x2, LSL  #1]   ; UXTX
     458        ldrsh w0, [x1, x2, SXTX #1]
     459        ldrsh w0, [x1, w2, UXTW #0]
     460        ldrsh w0, [x1, w2, SXTW #0]
     461        ldrsh w0, [x1, w2, UXTW #1]
     462        ldrsh w0, [x1, w2, SXTW #1]
     463
     464        ldrsw x0, [x1, x2]
     465        ;ldrsw x0, [x1, x2, LSL  #0] ; UXTX
     466        ldrsw x0, [x1, x2, SXTX #0]
     467        ldrsw x0, [x1, x2, LSL  #2]  ; UXTX
     468        ldrsw x0, [x1, x2, SXTX #2]
     469        ldrsw x0, [x1, w2, UXTW #0]
     470        ldrsw x0, [x1, w2, SXTW #0]
     471        ldrsw x0, [x1, w2, UXTW #2]
     472        ldrsw x0, [x1, w2, SXTW #2]
     473
    422474        ; Memory stores
    423475        strb w0, [x28]
     
    446498        stp x0, x1, [x28, #-512]
    447499        stp x0, x1, [x28, #504]
     500
     501        str  x0, [x1, x2]
     502        str  w0, [x1, x2]
     503        str  x0, [x1, x2, SXTX #0]
     504        str  x0, [x1, x2, LSL  #3]  ; UXTX
     505        str  x0, [x1, x2, SXTX #3]
     506        str  w0, [x1, w2, UXTW #0]
     507        str  w0, [x1, w2, SXTW #0]
     508        str  w0, [x1, w2, UXTW #2]
     509        str  w0, [x1, w2, SXTW #2]
     510
     511        strb w0, [x1, x2]
     512        strb w0, [x1, x2, LSL  #0x0]
     513        strb w0, [x1, x2, SXTX #0x0]
     514        strb w0, [x1, w2, UXTW #0x0]
     515        strb w0, [x1, w2, SXTW #0x0]
     516
     517        strh w0, [x1, x2]
     518        ;strh w0, [x1, x2, LSL  #0x0] ; UXTX
     519        strh w0, [x1, x2, SXTX #0x0]
     520        strh w0, [x1, x2, LSL  #1]   ; UXTX
     521        strh w0, [x1, x2, SXTX #1]
     522        strh w0, [x1, w2, UXTW #0x0]
     523        strh w0, [x1, w2, SXTW #0x0]
     524        strh w0, [x1, w2, UXTW #1]
     525        strh w0, [x1, w2, SXTW #1]
    448526
    449527        ; Conditional compare
  • trunk/src/VBox/Disassembler/testcase/tstDisasmArmv8-1.cpp

    r105759 r105848  
    3030*   Header Files                                                                                                                 *
    3131*********************************************************************************************************************************/
     32#define VBOX_DIS_WITH_ARMV8
    3233#include <VBox/dis.h>
    3334#include <iprt/test.h>
Note: See TracChangeset for help on using the changeset viewer.

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