1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 05:23:45 +02:00
llvm-mirror/test/MC/AsmParser/symbolic-expression.s
Petr Hosek 695c00d618 [MC] Support symbolic expressions in assembly directives
This matches the behavior of GNU assembler which supports symbolic
expressions in absolute expressions used in assembly directives.

Differential Revision: http://reviews.llvm.org/D20337

llvm-svn: 270786
2016-05-25 22:47:51 +00:00

18 lines
538 B
ArmAsm

# RUN: llvm-mc -filetype=obj -triple=i386-unknown-elf %s | llvm-objdump -t - | FileCheck %s
# CHECK: 00000000 .text 00000000 TEST0
TEST0:
.fill 0x10
# CHECK: 00000010 .text 00000000 TEST1
TEST1:
.fill TEST1 - TEST0 + 0x5
# CHECK: 00000025 .text 00000000 TEST2
TEST2:
.zero TEST2 - (TEST1 + 0x5)
# CHECK: 00000035 .text 00000000 TEST3
TEST3:
.skip (TEST1 - TEST0) * 2
# CHECK: 00000055 .text 00000000 TEST4
TEST4:
.space TEST2 - TEST1, 1