diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2017-06-22 15:53:31 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2017-06-22 15:53:31 +0000 |
commit | 52e734792d8cd91c77801a5263a51b79a4f2fc6c (patch) | |
tree | 1b8ee1e82a6bfa45d94396b439a5e8ea8b275c7e /test/MC/Hexagon | |
parent | 4c45e36dd832ef0c400bb650076cf946285760b4 (diff) | |
download | llvm-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.s | 15 |
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 + } + + |