llvm-project/llvm/test/CodeGen/PowerPC/fast-isel-i64offset.ll
Kai Nacke 427fb35192 [PPC] Opaque pointer migration, part 1.
The LIT test cases were migrated with the script provided by
Nikita Popov. Due to the size of the change it is split into
several parts.

Reviewed By: nemanja, amyk, nikic, PowerPC

Differential Revision: https://reviews.llvm.org/D135470
2022-10-11 17:24:06 +00:00

14 lines
462 B
LLVM

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