diff options
Diffstat (limited to 'test/MC/Disassembler/Hexagon/memop.txt')
-rw-r--r-- | test/MC/Disassembler/Hexagon/memop.txt | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/test/MC/Disassembler/Hexagon/memop.txt b/test/MC/Disassembler/Hexagon/memop.txt new file mode 100644 index 0000000..47dfd93 --- /dev/null +++ b/test/MC/Disassembler/Hexagon/memop.txt @@ -0,0 +1,56 @@ +# RUN: llvm-mc -triple=hexagon -disassemble < %s | FileCheck %s +# Hexagon Programmer's Reference Manual 11.6 MEMOP + +# Operation on memory byte +0x95 0xd9 0x11 0x3e +# CHECK: memb(r17+#51) += r21 +0xb5 0xd9 0x11 0x3e +# CHECK: memb(r17+#51) -= r21 +0xd5 0xd9 0x11 0x3e +# CHECK: memb(r17+#51) &= r21 +0xf5 0xd9 0x11 0x3e +# CHECK: memb(r17+#51) |= r21 +0x95 0xd9 0x11 0x3f +# CHECK: memb(r17+#51) += #21 +0xb5 0xd9 0x11 0x3f +# CHECK: memb(r17+#51) -= #21 +0xd5 0xd9 0x11 0x3f +# CHECK: memb(r17+#51) = clrbit(#21) +0xf5 0xd9 0x11 0x3f +# CHECK: memb(r17+#51) = setbit(#21) + +# Operation on memory halfword +0x95 0xd9 0x31 0x3e +# CHECK: memh(r17+#102) += r21 +0xb5 0xd9 0x31 0x3e +# CHECK: memh(r17+#102) -= r21 +0xd5 0xd9 0x31 0x3e +# CHECK: memh(r17+#102) &= r21 +0xf5 0xd9 0x31 0x3e +# CHECK: memh(r17+#102) |= r21 +0x95 0xd9 0x31 0x3f +# CHECK: memh(r17+#102) += #21 +0xb5 0xd9 0x31 0x3f +# CHECK: memh(r17+#102) -= #21 +0xd5 0xd9 0x31 0x3f +# CHECK: memh(r17+#102) = clrbit(#21) +0xf5 0xd9 0x31 0x3f +# CHECK: memh(r17+#102) = setbit(#21) + +# Operation on memory word +0x95 0xd9 0x51 0x3e +# CHECK: memw(r17+#204) += r21 +0xb5 0xd9 0x51 0x3e +# CHECK: memw(r17+#204) -= r21 +0xd5 0xd9 0x51 0x3e +# CHECK: memw(r17+#204) &= r21 +0xf5 0xd9 0x51 0x3e +# CHECK: memw(r17+#204) |= r21 +0x95 0xd9 0x51 0x3f +# CHECK: memw(r17+#204) += #21 +0xb5 0xd9 0x51 0x3f +# CHECK: memw(r17+#204) -= #21 +0xd5 0xd9 0x51 0x3f +# CHECK: memw(r17+#204) = clrbit(#21) +0xf5 0xd9 0x51 0x3f +# CHECK: memw(r17+#204) = setbit(#21) |