llvm-for-llvmta/test/MC/AArch64/mov-expression-as-immediate.s

11 lines
202 B
ArmAsm
Raw Normal View History

2022-04-25 10:02:23 +02:00
// RUN: llvm-mc -triple aarch64-none-linux-gnu %s -filetype=obj -o %t
// RUN: llvm-objdump -d %t | FileCheck %s
0:
.skip 4
1:
mov x0, 1b - 0b
// CHECK: mov x0, #4
mov x0, 0b - 1b
// CHECK: mov x0, #-4