1 ; RUN: llc -relocation-model=pic < %s -mtriple=ve-unknown-unknown | FileCheck %s
3 @ptr = external global void (...)*, align 8
7 ; CHECK: .LBB{{[0-9]+}}_2:
8 ; CHECK-NEXT: lea %s15, _GLOBAL_OFFSET_TABLE_@pc_lo(-24)
9 ; CHECK-NEXT: and %s15, %s15, (32)0
10 ; CHECK-NEXT: sic %s16
11 ; CHECK-NEXT: lea.sl %s15, _GLOBAL_OFFSET_TABLE_@pc_hi(%s16, %s15)
12 ; CHECK-NEXT: lea %s0, function@got_lo
13 ; CHECK-NEXT: and %s0, %s0, (32)0
14 ; CHECK-NEXT: lea.sl %s0, function@got_hi(, %s0)
15 ; CHECK-NEXT: ld %s0, (%s0, %s15)
16 ; CHECK-NEXT: lea %s1, ptr@got_lo
17 ; CHECK-NEXT: and %s1, %s1, (32)0
18 ; CHECK-NEXT: lea.sl %s1, ptr@got_hi(, %s1)
19 ; CHECK-NEXT: ld %s1, (%s1, %s15)
20 ; CHECK-NEXT: st %s0, (, %s1)
21 ; CHECK-NEXT: or %s12, 0, %s0
22 ; CHECK-NEXT: bsic %s10, (, %s12)
23 ; CHECK-NEXT: or %s11, 0, %s9
25 store void (...)* @function, void (...)** @ptr, align 8
26 %1 = load void (...)*, void (...)** @ptr, align 8
27 %2 = bitcast void (...)* %1 to void ()*
32 declare void @function(...)