summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-04-20 15:54:13 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-04-20 15:54:13 +0000
commit562670383715f313fb6e6192e1620622e739de4b (patch)
tree8291140039eae438701fb15de6376c55ac100e1c /llvm/test/MC
parent143d15bc29bdd913c9bfa92123738bcd141013b9 (diff)
downloadbcm5719-llvm-562670383715f313fb6e6192e1620622e739de4b.tar.gz
bcm5719-llvm-562670383715f313fb6e6192e1620622e739de4b.zip
[Hexagon] Fix handling of lcomm directive
Patch by Colin LeMahieu. llvm-svn: 266882
Diffstat (limited to 'llvm/test/MC')
-rw-r--r--llvm/test/MC/Hexagon/lcomm.s19
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/MC/Hexagon/lcomm.s b/llvm/test/MC/Hexagon/lcomm.s
new file mode 100644
index 00000000000..ba44bc842c7
--- /dev/null
+++ b/llvm/test/MC/Hexagon/lcomm.s
@@ -0,0 +1,19 @@
+# RUN: llvm-mc -filetype=obj -triple=hexagon %s | llvm-objdump -t - | FileCheck %s
+.lcomm dst1,1,1,1
+.lcomm dst2,2,2,2
+.lcomm dst4,4,4,4
+.lcomm dst8,8,8,8
+
+r0 = add(pc, ##dst1@PCREL)
+r0 = add(pc, ##dst2@PCREL)
+r0 = add(pc, ##dst4@PCREL)
+r0 = add(pc, ##dst8@PCREL)
+
+# CHECK: 00000000 l .sbss.1 00000001 dst1
+# CHECK: 00000000 l .sbss.2 00000002 dst2
+# CHECK: 00000000 l .sbss.4 00000004 dst4
+# CHECK: 00000000 l .sbss.8 00000008 dst8
+# CHECK: 00000000 l d .sbss.1 00000000 .sbss.1
+# CHECK: 00000000 l d .sbss.2 00000000 .sbss.2
+# CHECK: 00000000 l d .sbss.4 00000000 .sbss.4
+# CHECK: 00000000 l d .sbss.8 00000000 .sbss.8 \ No newline at end of file
OpenPOWER on IntegriCloud