1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z15 | FileCheck %s
4 ; Test that the big offsets are handled by only one AGFI.
6 define void @fun(ptr %Src, ptr %Dst) {
9 ; CHECK-NEXT: agfi %r2, 1048576
10 ; CHECK-NEXT: lg %r0, 0(%r2)
11 ; CHECK-NEXT: stg %r0, 0(%r3)
12 ; CHECK-NEXT: lg %r0, 8(%r2)
13 ; CHECK-NEXT: stg %r0, 0(%r3)
15 %S0 = getelementptr i64, ptr %Src, i64 131072
16 %V0 = load i64, ptr %S0
17 store volatile i64 %V0, ptr %Dst
19 %S1 = getelementptr i64, ptr %Src, i64 131073
20 %V1 = load i64, ptr %S1
21 store volatile i64 %V1, ptr %Dst