summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/AsmParser/directive_space.s
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2016-05-25 22:47:51 +0000
committerPetr Hosek <phosek@chromium.org>2016-05-25 22:47:51 +0000
commite25837528b677fb8f9181c2bf8c8d06c2f43da24 (patch)
treee5888b230cbb4bc522579d3a7a181ededce9e124 /llvm/test/MC/AsmParser/directive_space.s
parent6b93bf5783a1dd7b5535cff5eedbe2d965d90ac0 (diff)
downloadbcm5719-llvm-e25837528b677fb8f9181c2bf8c8d06c2f43da24.tar.gz
bcm5719-llvm-e25837528b677fb8f9181c2bf8c8d06c2f43da24.zip
[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
Diffstat (limited to 'llvm/test/MC/AsmParser/directive_space.s')
-rw-r--r--llvm/test/MC/AsmParser/directive_space.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/MC/AsmParser/directive_space.s b/llvm/test/MC/AsmParser/directive_space.s
index fc5aeb4b633..eadc4fc6383 100644
--- a/llvm/test/MC/AsmParser/directive_space.s
+++ b/llvm/test/MC/AsmParser/directive_space.s
@@ -14,3 +14,8 @@ TEST1:
# CHECK: .space 1
TEST2:
.skip 1
+
+# CHECK: TEST3
+# CHECK: .space TEST0-TEST1
+TEST3:
+ .space TEST0 - TEST1
OpenPOWER on IntegriCloud