memop.s
1.26 KB
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 -filetype=obj -o - %s | llvm-objdump -d - | FileCheck %s
# Hexagon Programmer's Reference Manual 11.6 MEMOP
# Operation on memory byte
# CHECK: 95 d9 11 3e
memb(r17+#51) += r21
# CHECK: b5 d9 11 3e
memb(r17+#51) -= r21
# CHECK: d5 d9 11 3e
memb(r17+#51) &= r21
# CHECK: f5 d9 11 3e
memb(r17+#51) |= r21
# CHECK: 95 d9 11 3f
memb(r17+#51) += #21
# CHECK: b5 d9 11 3f
memb(r17+#51) -= #21
# CHECK: d5 d9 11 3f
memb(r17+#51) = clrbit(#21)
# CHECK: f5 d9 11 3f
memb(r17+#51) = setbit(#21)
# Operation on memory halfword
# CHECK: 95 d9 31 3e
memh(r17+#102) += r21
# CHECK: b5 d9 31 3e
memh(r17+#102) -= r21
# CHECK: d5 d9 31 3e
memh(r17+#102) &= r21
# CHECK: f5 d9 31 3e
memh(r17+#102) |= r21
# CHECK: 95 d9 31 3f
memh(r17+#102) += #21
# CHECK: b5 d9 31 3f
memh(r17+#102) -= #21
# CHECK: d5 d9 31 3f
memh(r17+#102) = clrbit(#21)
# CHECK: f5 d9 31 3f
memh(r17+#102) = setbit(#21)
# Operation on memory word
# CHECK: 95 d9 51 3e
memw(r17+#204) += r21
# CHECK: b5 d9 51 3e
memw(r17+#204) -= r21
# CHECK: d5 d9 51 3e
memw(r17+#204) &= r21
# CHECK: f5 d9 51 3e
memw(r17+#204) |= r21
# CHECK: 95 d9 51 3f
memw(r17+#204) += #21
# CHECK: b5 d9 51 3f
memw(r17+#204) -= #21
# CHECK: d5 d9 51 3f
memw(r17+#204) = clrbit(#21)
# CHECK: f5 d9 51 3f
memw(r17+#204) = setbit(#21)