diff options
| author | Kevin P. Neal <kevin.neal@sas.com> | 2019-12-23 14:05:06 -0500 |
|---|---|---|
| committer | Kevin P. Neal <kevin.neal@sas.com> | 2020-01-02 12:14:43 -0500 |
| commit | 89d6c288ba5adb20d92142e9425f7ab79b8f159e (patch) | |
| tree | 3a0ff10c788641c34d56dea328e514a4b8154dac /clang/test/CodeGen/builtins-systemz-vector.c | |
| parent | 846bf1d43f90ea99b812cab10cd66d265bcb9c7a (diff) | |
| download | bcm5719-llvm-89d6c288ba5adb20d92142e9425f7ab79b8f159e.tar.gz bcm5719-llvm-89d6c288ba5adb20d92142e9425f7ab79b8f159e.zip | |
[SystemZ] Use FNeg in s390x clang builtins
The s390x builtins are still using FSub instead of FNeg. Correct that.
Diffstat (limited to 'clang/test/CodeGen/builtins-systemz-vector.c')
| -rw-r--r-- | clang/test/CodeGen/builtins-systemz-vector.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGen/builtins-systemz-vector.c b/clang/test/CodeGen/builtins-systemz-vector.c index 85cdc30aa54..116bd8fa492 100644 --- a/clang/test/CodeGen/builtins-systemz-vector.c +++ b/clang/test/CodeGen/builtins-systemz-vector.c @@ -584,14 +584,14 @@ void test_float(void) { vd = __builtin_s390_vfmadb(vd, vd, vd); // CHECK: call <2 x double> @llvm.fma.v2f64(<2 x double> %{{.*}}, <2 x double> %{{.*}}, <2 x double> %{{.*}}) vd = __builtin_s390_vfmsdb(vd, vd, vd); - // CHECK: [[NEG:%[^ ]+]] = fsub <2 x double> <double -0.000000e+00, double -0.000000e+00>, %{{.*}} + // CHECK: [[NEG:%[^ ]+]] = fneg <2 x double> %{{.*}} // CHECK: call <2 x double> @llvm.fma.v2f64(<2 x double> %{{.*}}, <2 x double> %{{.*}}, <2 x double> [[NEG]]) vd = __builtin_s390_vflpdb(vd); // CHECK: call <2 x double> @llvm.fabs.v2f64(<2 x double> %{{.*}}) vd = __builtin_s390_vflndb(vd); // CHECK: [[ABS:%[^ ]+]] = call <2 x double> @llvm.fabs.v2f64(<2 x double> %{{.*}}) - // CHECK: fsub <2 x double> <double -0.000000e+00, double -0.000000e+00>, [[ABS]] + // CHECK: fneg <2 x double> [[ABS]] vd = __builtin_s390_vfidb(vd, 0, 0); // CHECK: call <2 x double> @llvm.rint.v2f64(<2 x double> %{{.*}}) |

