xref: /aosp_15_r20/external/llvm/test/CodeGen/PowerPC/fast-isel-i64offset.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1; RUN: llc -mtriple powerpc64-unknown-linux-gnu -fast-isel -O0 < %s | FileCheck %s
2
3; Verify that pointer offsets larger than 32 bits work correctly.
4
5define void @test(i32* %array) {
6; CHECK-LABEL: test:
7; CHECK-NOT: li {{[0-9]+}}, -8
8  %element = getelementptr i32, i32* %array, i64 2147483646
9  store i32 1234, i32* %element
10  ret void
11}
12
13