aboutsummaryrefslogtreecommitdiff
path: root/test/MC/Hexagon
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-06-22 15:53:31 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2017-06-22 15:53:31 +0000
commit52e734792d8cd91c77801a5263a51b79a4f2fc6c (patch)
tree1b8ee1e82a6bfa45d94396b439a5e8ea8b275c7e /test/MC/Hexagon
parent4c45e36dd832ef0c400bb650076cf946285760b4 (diff)
downloadllvm-52e734792d8cd91c77801a5263a51b79a4f2fc6c.tar.gz
[Hexagon] Handle a global operand to A2_addi when creating duplexes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306012 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Hexagon')
-rw-r--r--test/MC/Hexagon/duplex-addi-global-imm.s15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/MC/Hexagon/duplex-addi-global-imm.s b/test/MC/Hexagon/duplex-addi-global-imm.s
new file mode 100644
index 00000000000..e8e338c6a58
--- /dev/null
+++ b/test/MC/Hexagon/duplex-addi-global-imm.s
@@ -0,0 +1,15 @@
+# RUN: llvm-mc -arch=hexagon -show-encoding %s | FileCheck %s
+# Check that we generate a duplex for this packet.
+# CHECK: encoding: [A,0x40'A',A,A,0x01'B',0x28'B',B,0x20'B']
+
+.data
+g:
+.long 0
+
+.text
+ {
+ r0 = add(r0,##g)
+ r1 = #0
+ }
+
+