llvm-project/llvm/test/MC/ARM/gas-compl-mem-offset-paren.s

21 lines
387 B
ArmAsm

@ RUN: llvm-mc -triple=arm-linux-gnueabi < %s | FileCheck %s
@ CHECK: ldr r12, [sp, #15]
ldr r12, [sp, (15)]
@ CHECK: ldr r12, [sp, #15]
ldr r12, [sp, #(15)]
@ CHECK: ldr r12, [sp, #15]
ldr r12, [sp, $(15)]
@ CHECK: ldr r12, [sp, #100]
ldr r12, [sp, (((15+5)*5))]
@ CHECK: ldr r12, [sp, #100]
ldr r12, [sp, #(((15+5)*5))]
@ CHECK: ldr r12, [sp, #100]
ldr r12, [sp, $(((15+5)*5))]