2016-08-04 02:17:35 +08:00
|
|
|
; RUN: llc -verify-machineinstrs -mtriple powerpc64-unknown-linux-gnu -fast-isel -O0 < %s | FileCheck %s
|
2016-03-31 23:37:06 +08:00
|
|
|
|
|
|
|
; Verify that pointer offsets larger than 32 bits work correctly.
|
|
|
|
|
|
|
|
define void @test(i32* %array) {
|
|
|
|
; CHECK-LABEL: test:
|
2016-04-01 00:38:57 +08:00
|
|
|
; CHECK-NOT: li {{[0-9]+}}, -8
|
2016-03-31 23:37:06 +08:00
|
|
|
%element = getelementptr i32, i32* %array, i64 2147483646
|
|
|
|
store i32 1234, i32* %element
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|