1#RUN: llvm-mc -arch=hexagon -filetype=obj %s | llvm-objdump -d - | FileCheck %s
2
3# Check encoding bits for GP-relative loads.
4
5#CHECK: 4fc6ff8c { r13:12 = memd(gp+#421856) }
6r13:12 = memd(gp+#421856)
7#CHECK: 4fc6ff8c { r13:12 = memd(gp+#421856) }
8r13:12 = memd(#421856)
9
10#CHECK: 4d1ac4d2 { r18 = memb(gp+#46118) }
11r18 = memb(gp+#46118)
12#CHECK: 4d1ac4d2 { r18 = memb(gp+#46118) }
13r18 = memb(#46118)
14
15#CHECK: 4d81f772 { r18 = memw(gp+#134892) }
16r18 = memw(gp+#134892)
17#CHECK: 4d81f772 { r18 = memw(gp+#134892) }
18r18 = memw(#134892)
19
20#CHECK: 497de287 { r7 = memuh(gp+#30248) }
21r7 = memuh(gp+#30248)
22#CHECK: 497de287 { r7 = memuh(gp+#30248) }
23r7 = memuh(#30248)
24
25#CHECK: 4b43e87a { r26 = memh(gp+#36486) }
26r26 = memh(gp+#36486)
27#CHECK: 4b43e87a { r26 = memh(gp+#36486) }
28r26 = memh(#36486)
29
30#CHECK: 4f37d07f { r31 = memub(gp+#61059) }
31r31 = memub(gp+#61059)
32#CHECK: 4f37d07f { r31 = memub(gp+#61059) }
33r31 = memub(#61059)
34