diff options
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 + } + + |