diff options
Diffstat (limited to 'test/CodeGen/PowerPC/fast-isel-i64offset.ll')
-rw-r--r-- | test/CodeGen/PowerPC/fast-isel-i64offset.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/fast-isel-i64offset.ll b/test/CodeGen/PowerPC/fast-isel-i64offset.ll new file mode 100644 index 0000000000000..00278d68f6381 --- /dev/null +++ b/test/CodeGen/PowerPC/fast-isel-i64offset.ll @@ -0,0 +1,12 @@ +; RUN: llc -mtriple powerpc64-unknown-linux-gnu -fast-isel -O0 < %s | FileCheck %s + +; Verify that pointer offsets larger than 32 bits work correctly. + +define void @test(i32* %array) { +; CHECK-LABEL: test: +; CHECK-NOT: li {{[0-9]+}}, -8 + %element = getelementptr i32, i32* %array, i64 2147483646 + store i32 1234, i32* %element + ret void +} + |