24 lines · c
1// RUN: %clang -target s390x-linux-gnu -march=z13 -S %s -o - -msoft-float | FileCheck %s2// REQUIRES: systemz-registered-target3//4// Check that -msoft-float works all the way to assembly output.5 6double fun0(double *A) {7// CHECK-LABEL: fun08// CHECK-NOT: {{%f[0-9]}}9// CHECK: brasl %r14, __adddf3@PLT10 return *A + 1.0;11}12 13typedef int v4si __attribute__ ((vector_size (16)));14v4si fun1(v4si *A) {15// CHECK-LABEL: fun116// CHECK-NOT: {{%[v][0-9]}}17// CHECK: ark18// CHECK-NEXT: ark19// CHECK-NEXT: ark20// CHECK-NEXT: ark21 v4si B = {1, 1, 1, 1};22 return *A + B;23}24