1; Test loads of f128 floating-point constants on z14. 2; 3; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s 4; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z14 | FileCheck %s -check-prefix=CONST 5 6; Test loading zero. 7define void @f1(fp128 *%x) { 8; CHECK-LABEL: f1: 9; CHECK: vzero [[REG:%v[0-9]+]] 10; CHECK: vst [[REG]], 0(%r2) 11; CHECK: br %r14 12 store fp128 0xL00000000000000000000000000000000, fp128 *%x 13 ret void 14} 15 16; Test loading of negative floating-point zero. 17define void @f2(fp128 *%x) { 18; CHECK-LABEL: f2: 19; CHECK: vzero [[REG:%v[0-9]+]] 20; CHECK: wflnxb [[REG]], [[REG]] 21; CHECK: vst [[REG]], 0(%r2) 22; CHECK: br %r14 23 store fp128 0xL00000000000000008000000000000000, fp128 *%x 24 ret void 25} 26 27; Test loading of a 128-bit floating-point constant. This value would 28; actually fit within the 32-bit format, but we don't have extending 29; loads into vector registers. 30define void @f3(fp128 *%x) { 31; CHECK-LABEL: f3: 32; CHECK: larl [[REGISTER:%r[1-5]+]], {{.*}} 33; CHECK: vl [[REG:%v[0-9]+]], 0([[REGISTER]]) 34; CHECK: vst [[REG]], 0(%r2) 35; CHECK: br %r14 36; CONST: .quad 4611404543484231680 37; CONST: .quad 0 38 store fp128 0xL00000000000000003fff000002000000, fp128 *%x 39 ret void 40} 41