summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/AsmParser
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2019-10-07 09:54:53 +0000
committerBill Wendling <isanbard@gmail.com>2019-10-07 09:54:53 +0000
commit6942327a8f3ba90b2480f39318901e22269d16e7 (patch)
tree3b6187e6806699517c844bff82c5c1109eb78a35 /llvm/test/MC/AsmParser
parent32b47ddb2deba6896aa00405c4239b808a62da09 (diff)
downloadbcm5719-llvm-6942327a8f3ba90b2480f39318901e22269d16e7.tar.gz
bcm5719-llvm-6942327a8f3ba90b2480f39318901e22269d16e7.zip
[IA] Recognize hexadecimal escape sequences
Summary: Implement support for hexadecimal escape sequences to match how GNU 'as' handles them. I.e., read all hexadecimal characters and truncate to the lower 16 bits. Reviewers: nickdesaulniers Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68483 llvm-svn: 373888
Diffstat (limited to 'llvm/test/MC/AsmParser')
-rw-r--r--llvm/test/MC/AsmParser/directive_ascii.s5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/MC/AsmParser/directive_ascii.s b/llvm/test/MC/AsmParser/directive_ascii.s
index a7ba7bbd5da..604f9721bcc 100644
--- a/llvm/test/MC/AsmParser/directive_ascii.s
+++ b/llvm/test/MC/AsmParser/directive_ascii.s
@@ -39,3 +39,8 @@ TEST5:
# CHECK: .byte 0
TEST6:
.string "B", "C"
+
+# CHECK: TEST7:
+# CHECK: .ascii "dk"
+TEST7:
+ .ascii "\x64\Xa6B"
OpenPOWER on IntegriCloud