1; RUN: llc -verify-machineinstrs -mtriple powerpc64-unknown-linux-gnu -fast-isel -O0 < %s | FileCheck %s
2; RUN: llc -verify-machineinstrs -mtriple powerpc64-ibm-aix-xcoff -fast-isel -O0 < %s | FileCheck %s
3
4; Verify that pointer offsets larger than 32 bits work correctly.
5
6define void @test(i32* %array) {
7; CHECK-LABEL: test:
8; CHECK-NOT: li {{[0-9]+}}, -8
9  %element = getelementptr i32, i32* %array, i64 2147483646
10  store i32 1234, i32* %element
11  ret void
12}
13
14