1 ; RUN: llc -relocation-model=static -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -code-model=medium| FileCheck --check-prefix=CHECK --check-prefix=MEDIUM %s
2 ; RUN: llc -relocation-model=static -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -code-model=large | FileCheck --check-prefix=CHECK --check-prefix=LARGE %s
5 @fooa = alias i32, i32* @foo
8 @foo2a = alias i64, i64* @foo2
12 ; MEDIUM: addis 3, 2, fooa@toc@ha
13 ; LARGE: addis 3, 2, .L[[L0:.*]]@toc@ha
14 %a = load i32, i32* @fooa
20 ; MEDIUM: addis 3, 2, foo2a@toc@ha
21 ; MEDIUM: addi 3, 3, foo2a@toc@l
22 ; LARGE: addis 3, 2, .L[[L1:.*]]@toc@ha
23 %a = load i64, i64* @foo2a
28 ; LARGE-NEXT: .tc fooa[TC],fooa
31 ; LARGE-NEXT: .tc foo2a[TC],foo2a