File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
llvm/test/CodeGen/PowerPC Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
2
2
; RUN: llc < %s -mtriple=powerpc64-ibm-aix-xcoff -fast-isel -verify-machineinstrs \
3
3
; RUN: -code-model=small | FileCheck %s --check-prefix=SMALL
4
-
5
- ;; FIXME: when toc data for 64 big large code model is supported,
6
- ;; add a run line for large code model too.
4
+ ; RUN: llc < %s -mtriple=powerpc64-ibm-aix-xcoff -fast-isel -verify-machineinstrs \
5
+ ; RUN: -code-model=large | FileCheck %s --check-prefix=LARGE
7
6
8
7
@a = global i32 0 , align 4 #0
9
8
@@ -13,6 +12,13 @@ define signext i32 @foo() #1 {
13
12
; SMALL-NEXT: la 3, a[TD](2)
14
13
; SMALL-NEXT: lwa 3, 0(3)
15
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: addi 3, 3, a[TD]@toc@l
20
+ ; LARGE-NEXT: lwa 3, 0(3)
21
+ ; LARGE-NEXT: blr
16
22
entry:
17
23
%0 = load i32 , ptr @a , align 4
18
24
ret i32 %0
You can’t perform that action at this time.
0 commit comments