1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 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)
|