brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · fed97e5 Raw
69 lines · plain
1; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s2;3; Test that a spill/reload of a VR32/VR64 reg uses the FP opcode supporting4; 20-bit displacement if needed and possible.5 6define void @f1(i32 %arg, ...)  {7; CHECK-LABEL: f1:8; CHECK-NOT: lay9; CHECK: stdy %f0, 4400(%r15)10bb:11  %i = alloca [4096 x i8]12  ret void13}14 15define void @f2(float %Arg) {16; CHECK-LABEL: f2:17; CHECK-NOT: lay18; CHECK: stey %f0, 4172(%r15)19bb:20  %i = alloca [1000 x float]21  %i2 = getelementptr inbounds [1000 x float], ptr %i, i64 0, i64 99922  br i1 undef, label %bb3, label %bb223 24bb2:25  store float %Arg , ptr %i226  br label %bb327 28bb3:29  ret void30}31 32define void @f3(ptr %Dst) {33; CHECK-LABEL: f3:34; CHECK-NOT: lay35; CHECK: ldy %f0, 4168(%r15)36bb:37  %i = alloca [500 x double]38  br i1 undef, label %bb3, label %bb239 40bb2:41  %i12 = getelementptr inbounds [500 x double], ptr %i, i64 0, i64 49942  %i13 = load double, ptr %i1243  %i14 = fdiv double %i13, 0.000000e+0044  store double %i14, ptr %Dst45  br label %bb346 47bb3:48  ret void49}50 51define void @f4(ptr %Dst) {52; CHECK-LABEL: f4:53; CHECK-NOT: lay54; CHECK: ley %f0, 4172(%r15)55bb:56  %i = alloca [1000 x float]57  br i1 undef, label %bb3, label %bb258 59bb2:60  %i12 = getelementptr inbounds [1000 x float], ptr %i, i64 0, i64 99961  %i13 = load float, ptr %i1262  %i14 = fdiv float %i13, 0.000000e+0063  store float %i14, ptr %Dst64  br label %bb365 66bb3:67  ret void68}69