2020-01-04 07:39:07 +08:00
|
|
|
// RUN: %clang -target s390x-linux-gnu -march=z13 -S %s -o - -msoft-float | FileCheck %s
|
2020-02-04 23:51:42 +08:00
|
|
|
// REQUIRES: systemz-registered-target
|
2020-01-04 07:39:07 +08:00
|
|
|
//
|
|
|
|
// Check that -msoft-float works all the way to assembly output.
|
|
|
|
|
|
|
|
double fun0(double *A) {
|
|
|
|
// CHECK-LABEL: fun0
|
|
|
|
// CHECK-NOT: {{%f[0-9]}}
|
|
|
|
// CHECK: brasl %r14, __adddf3@PLT
|
|
|
|
return *A + 1.0;
|
|
|
|
}
|
|
|
|
|
|
|
|
typedef int v4si __attribute__ ((vector_size (16)));
|
|
|
|
v4si fun1(v4si *A) {
|
|
|
|
// CHECK-LABEL: fun1
|
|
|
|
// CHECK-NOT: {{%[v][0-9]}}
|
|
|
|
// CHECK: ark
|
|
|
|
// CHECK-NEXT: ark
|
|
|
|
// CHECK-NEXT: ark
|
|
|
|
// CHECK-NEXT: ark
|
|
|
|
v4si B = {1, 1, 1, 1};
|
|
|
|
return *A + B;
|
|
|
|
}
|