| 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 |
| 6 |
|
| 7 |
@a = global i32 0, align 4 #0 |
| 8 |
|
| 9 |
define signext i32 @foo() #1 { |
| 10 |
; SMALL-LABEL: foo: |
| 11 |
; SMALL: # %bb.0: # %entry |
| 12 |
; SMALL-NEXT: la 3, a[TD](2) |
| 13 |
; SMALL-NEXT: lwa 3, 0(3) |
| 14 |
; SMALL-NEXT: blr |
| 15 |
; |
| 16 |
; LARGE-LABEL: foo: |
| 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) |
| 21 |
; LARGE-NEXT: blr |
| 22 |
entry: |
| 23 |
%0 = load i32, ptr @a, align 4 |
| 24 |
ret i32 %0 |
| 25 |
} |
| 26 |
|
| 27 |
attributes #0 = { "toc-data" } |
| 28 |
attributes #1 = { noinline optnone } |