aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/PowerPC/fast-isel-i64offset.ll
blob: 8316c2c4fdb3f0343cc51d5a499ff48b383b232a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; 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
}