1 ; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mattr=-altivec -mtriple powerpc64-ibm-aix-xcoff \
2 ; RUN: -code-model=small < %s | FileCheck %s --check-prefix=SMALL
4 ; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mattr=-altivec -mtriple powerpc64-ibm-aix-xcoff \
5 ; RUN: -code-model=large < %s | FileCheck %s --check-prefix=LARGE
7 @a = common global i32 0
9 define zeroext i32 @test_load() {
15 ; SMALL-LABEL: .test_load:{{$}}
16 ; SMALL: ld [[REG1:[0-9]+]], L..C0(2)
17 ; SMALL: lwz [[REG2:[0-9]+]], 0([[REG1]])
20 ; LARGE-LABEL: .test_load:{{$}}
21 ; LARGE: addis [[REG1:[0-9]+]], L..C0@u(2)
22 ; LARGE: ld [[REG2:[0-9]+]], L..C0@l([[REG1]])
23 ; LARGE: lwz [[REG3:[0-9]+]], 0([[REG2]])
26 @b = common global i32 0
28 define void @test_store(i32 zeroext %0) {
33 ; SMALL-LABEL: .test_store:{{$}}
34 ; SMALL: ld [[REG1:[0-9]+]], L..C1(2)
35 ; SMALL: stw [[REG2:[0-9]+]], 0([[REG1]])
38 ; LARGE-LABEL: .test_store:{{$}}
39 ; LARGE: addis [[REG1:[0-9]+]], L..C1@u(2)
40 ; LARGE: ld [[REG2:[0-9]+]], L..C1@l([[REG1]])
41 ; LARGE: stw [[REG3:[0-9]+]], 0([[REG2]])