1 ; RUN: llc -relocation-model=pic < %s -mtriple=ve-unknown-unknown | FileCheck %s
3 @dst = external global i32, align 4
4 @ptr = external global ptr, align 8
5 @src = external global i32, align 4
10 ; CHECK-NEXT: st %s15, 24(, %s11)
11 ; CHECK-NEXT: st %s16, 32(, %s11)
12 ; CHECK-NEXT: lea %s15, _GLOBAL_OFFSET_TABLE_@pc_lo(-24)
13 ; CHECK-NEXT: and %s15, %s15, (32)0
14 ; CHECK-NEXT: sic %s16
15 ; CHECK-NEXT: lea.sl %s15, _GLOBAL_OFFSET_TABLE_@pc_hi(%s16, %s15)
16 ; CHECK-NEXT: lea %s0, dst@got_lo
17 ; CHECK-NEXT: and %s0, %s0, (32)0
18 ; CHECK-NEXT: lea.sl %s0, dst@got_hi(, %s0)
19 ; CHECK-NEXT: ld %s1, (%s0, %s15)
20 ; CHECK-NEXT: lea %s0, ptr@got_lo
21 ; CHECK-NEXT: and %s0, %s0, (32)0
22 ; CHECK-NEXT: lea %s2, src@got_lo
23 ; CHECK-NEXT: and %s2, %s2, (32)0
24 ; CHECK-NEXT: lea.sl %s2, src@got_hi(, %s2)
25 ; CHECK-NEXT: ld %s2, (%s2, %s15)
26 ; CHECK-NEXT: lea.sl %s0, ptr@got_hi(, %s0)
27 ; CHECK-NEXT: ld %s0, (%s0, %s15)
28 ; CHECK-NEXT: ldl.sx %s2, (, %s2)
29 ; CHECK-NEXT: st %s1, (, %s0)
30 ; CHECK-NEXT: or %s0, 1, (0)1
31 ; CHECK-NEXT: stl %s2, (, %s1)
32 ; CHECK-NEXT: ld %s16, 32(, %s11)
33 ; CHECK-NEXT: ld %s15, 24(, %s11)
34 ; CHECK-NEXT: b.l.t (, %s10)
36 store ptr @dst, ptr @ptr, align 8
37 %1 = load i32, ptr @src, align 4
38 store i32 %1, ptr @dst, align 4