1 // RUN: %clang -target s390x-linux-gnu -march=z13 -S %s -o - -msoft-float | FileCheck %s
2 // REQUIRES: systemz-registered-target
3 //
4 // Check that -msoft-float works all the way to assembly output.
5
fun0(double * A)6 double fun0(double *A) {
7 // CHECK-LABEL: fun0
8 // CHECK-NOT: {{%f[0-9]}}
9 // CHECK: brasl %r14, __adddf3@PLT
10 return *A + 1.0;
11 }
12
13 typedef int v4si __attribute__ ((vector_size (16)));
fun1(v4si * A)14 v4si fun1(v4si *A) {
15 // CHECK-LABEL: fun1
16 // CHECK-NOT: {{%[v][0-9]}}
17 // CHECK: ark
18 // CHECK-NEXT: ark
19 // CHECK-NEXT: ark
20 // CHECK-NEXT: ark
21 v4si B = {1, 1, 1, 1};
22 return *A + B;
23 }
24