llvm.org GIT mirror llvm / release_70 test / MC / ARM / ldrd-strd-gnu-thumb.s
release_70

Tree @release_70 (Download .tar.gz)

ldrd-strd-gnu-thumb.s @release_70raw · history · blame

@ PR18921
@ RUN: llvm-mc -triple=armv7-linux-gnueabi -show-encoding < %s | FileCheck %s
.text
.thumb

@ CHECK: .code	16

@ CHECK: ldrd	r0, r1, [r10, #512]!    @ encoding: [0xfa,0xe9,0x80,0x01]
@ CHECK: ldrd	r0, r1, [r10], #512     @ encoding: [0xfa,0xe8,0x80,0x01]
@ CHECK: ldrd	r0, r1, [r10, #512]     @ encoding: [0xda,0xe9,0x80,0x01]
        ldrd    r0, [r10, #512]!
        ldrd    r0, [r10], #512
        ldrd    r0, [r10, #512]

@ CHECK: strd	r0, r1, [r10, #512]!    @ encoding: [0xea,0xe9,0x80,0x01]
@ CHECK: strd	r0, r1, [r10], #512     @ encoding: [0xea,0xe8,0x80,0x01]
@ CHECK: strd	r0, r1, [r10, #512]     @ encoding: [0xca,0xe9,0x80,0x01]
        strd    r0, [r10, #512]!
        strd    r0, [r10], #512
        strd    r0, [r10, #512]

@ Rt is allowed to be odd for Thumb (but not ARM)
@ CHECK: ldrd	r1, r2, [r10, #512]!    @ encoding: [0xfa,0xe9,0x80,0x12]
@ CHECK: ldrd	r1, r2, [r10], #512     @ encoding: [0xfa,0xe8,0x80,0x12]
@ CHECK: ldrd	r1, r2, [r10, #512]     @ encoding: [0xda,0xe9,0x80,0x12]
        ldrd    r1, [r10, #512]!
        ldrd    r1, [r10], #512
        ldrd    r1, [r10, #512]

@ CHECK: strd	r1, r2, [r10, #512]!    @ encoding: [0xea,0xe9,0x80,0x12]
@ CHECK: strd	r1, r2, [r10], #512     @ encoding: [0xea,0xe8,0x80,0x12]
@ CHECK: strd	r1, r2, [r10, #512]     @ encoding: [0xca,0xe9,0x80,0x12]
        strd    r1, [r10, #512]!
        strd    r1, [r10], #512
        strd    r1, [r10, #512]