Ehsan Amiri | a538b0f | 2016-08-03 18:17:35 +0000 | [diff] [blame] | 1 | ; RUN: llc -verify-machineinstrs -mtriple powerpc64-unknown-linux-gnu -fast-isel -O0 < %s | FileCheck %s |
Ulrich Weigand | 3707ba8 | 2016-03-31 15:37:06 +0000 | [diff] [blame] | 2 | |
| 3 | ; Verify that pointer offsets larger than 32 bits work correctly. |
| 4 | |
| 5 | define void @test(i32* %array) { |
| 6 | ; CHECK-LABEL: test: |
Ulrich Weigand | 6ad762d | 2016-03-31 16:38:57 +0000 | [diff] [blame] | 7 | ; CHECK-NOT: li {{[0-9]+}}, -8 |
Ulrich Weigand | 3707ba8 | 2016-03-31 15:37:06 +0000 | [diff] [blame] | 8 | %element = getelementptr i32, i32* %array, i64 2147483646 |
| 9 | store i32 1234, i32* %element |
| 10 | ret void |
| 11 | } |
| 12 | |