1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
2 ; RUN: llc < %s -mtriple=powerpc64-ibm-aix-xcoff -fast-isel -verify-machineinstrs \
3 ; RUN: -code-model=small | FileCheck %s --check-prefix=SMALL
4 ; RUN: llc < %s -mtriple=powerpc64-ibm-aix-xcoff -fast-isel -verify-machineinstrs \
5 ; RUN: -code-model=large | FileCheck %s --check-prefix=LARGE
7 @a = global i32 0, align 4 #0
9 define signext i32 @foo() #1 {
11 ; SMALL: # %bb.0: # %entry
12 ; SMALL-NEXT: la 3, a[TD](2)
13 ; SMALL-NEXT: lwa 3, 0(3)
17 ; LARGE: # %bb.0: # %entry
18 ; LARGE-NEXT: addis 3, a[TD]@u(2)
19 ; LARGE-NEXT: la 3, a[TD]@l(3)
20 ; LARGE-NEXT: lwa 3, 0(3)
23 %0 = load i32, ptr @a, align 4
27 attributes #0 = { "toc-data" }
28 attributes #1 = { noinline optnone }