summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorColin LeMahieu <colinl@codeaurora.org>2016-03-18 18:22:07 +0000
committerColin LeMahieu <colinl@codeaurora.org>2016-03-18 18:22:07 +0000
commit01431465144de9f12ecdff4fe27d5bbdb767cbca (patch)
tree24ceed5d51843b752c73e63a0b58d9551da1d5f7 /llvm/test
parent69082f051d678e662b922b5424c0db88eb08e791 (diff)
downloadbcm5719-llvm-01431465144de9f12ecdff4fe27d5bbdb767cbca.tar.gz
bcm5719-llvm-01431465144de9f12ecdff4fe27d5bbdb767cbca.zip
[MCParser] Accept uppercase radix variants 0X and 0B
Differential Revision: http://reviews.llvm.org/D14781 llvm-svn: 263802
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/AsmParser/uppercase-hex.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/MC/AsmParser/uppercase-hex.s b/llvm/test/MC/AsmParser/uppercase-hex.s
new file mode 100644
index 00000000000..721fc7f0814
--- /dev/null
+++ b/llvm/test/MC/AsmParser/uppercase-hex.s
@@ -0,0 +1,7 @@
+# RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
+
+foo:
+.short 0X1
+# CHECK: .short 1
+.short 0B1
+# CHECK: .short 1
OpenPOWER on IntegriCloud