1 ; RUN: llc -verify-machineinstrs -mtriple="powerpc64le-unknown-linux-gnu" -relocation-model=pic < %s | FileCheck %s
3 @a = thread_local global i32* null, align 8
5 define void @test_foo(i32* nocapture %x01, i32* nocapture %x02, i32* nocapture %x03, i32* nocapture %x04, i32* nocapture %x05, i32* nocapture %x06, i32* nocapture %x07, i32* nocapture %x08) #0 {
8 ; CHECK-LABEL: test_foo:
9 ; CHECK-DAG: stdu 1, {{-?[0-9]+}}(1)
10 ; CHECK-DAG: mr [[BACKUP_3:[0-9]+]], 3
11 ; CHECK-DAG: mr [[BACKUP_4:[0-9]+]], 4
12 ; CHECK-DAG: mr [[BACKUP_5:[0-9]+]], 5
13 ; CHECK-DAG: mr [[BACKUP_6:[0-9]+]], 6
14 ; CHECK-DAG: mr [[BACKUP_7:[0-9]+]], 7
15 ; CHECK-DAG: mr [[BACKUP_8:[0-9]+]], 8
16 ; CHECK-DAG: mr [[BACKUP_9:[0-9]+]], 9
17 ; CHECK-DAG: mr [[BACKUP_10:[0-9]+]], 10
18 ; CHECK-DAG: std [[BACKUP_3]], {{-?[0-9]+}}(1)
19 ; CHECK-DAG: std [[BACKUP_4]], {{-?[0-9]+}}(1)
20 ; CHECK-DAG: std [[BACKUP_5]], {{-?[0-9]+}}(1)
21 ; CHECK-DAG: std [[BACKUP_6]], {{-?[0-9]+}}(1)
22 ; CHECK-DAG: std [[BACKUP_7]], {{-?[0-9]+}}(1)
23 ; CHECK-DAG: std [[BACKUP_8]], {{-?[0-9]+}}(1)
24 ; CHECK-DAG: std [[BACKUP_9]], {{-?[0-9]+}}(1)
25 ; CHECK-DAG: std [[BACKUP_10]], {{-?[0-9]+}}(1)
26 ; CHECK: bl __tls_get_addr
27 ; CHECK-DAG: stw 3, 0([[BACKUP_3]])
28 ; CHECK-DAG: stw 3, 0([[BACKUP_4]])
29 ; CHECK-DAG: stw 3, 0([[BACKUP_5]])
30 ; CHECK-DAG: stw 3, 0([[BACKUP_6]])
31 ; CHECK-DAG: stw 3, 0([[BACKUP_7]])
32 ; CHECK-DAG: stw 3, 0([[BACKUP_8]])
33 ; CHECK-DAG: stw 3, 0([[BACKUP_9]])
34 ; CHECK-DAG: stw 3, 0([[BACKUP_10]])
37 %0 = load i32*, i32** @a, align 8
38 %cmp = icmp eq i32* %0, null
39 br i1 %cmp, label %return, label %if.end
41 if.end: ; preds = %entry
42 store i32 0, i32* %x01, align 4
43 store i32 0, i32* %x02, align 4
44 store i32 0, i32* %x03, align 4
45 store i32 0, i32* %x04, align 4
46 store i32 0, i32* %x05, align 4
47 store i32 0, i32* %x06, align 4
48 store i32 0, i32* %x07, align 4
49 store i32 0, i32* %x08, align 4
52 return: ; preds = %entry, %if.end