From: Sanjay Patel Date: Fri, 26 Jul 2019 20:36:57 +0000 (+0000) Subject: [CodeGen] fix test that broke with rL367146 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0fc24bb8e0745c7c80157f0e41386d7087e842e;p=platform%2Fupstream%2Fllvm.git [CodeGen] fix test that broke with rL367146 This should be fixed properly to not depend on LLVM (so much). llvm-svn: 367149 --- diff --git a/clang/test/CodeGen/complex-math.c b/clang/test/CodeGen/complex-math.c index a5805b6..ecd58e9 100644 --- a/clang/test/CodeGen/complex-math.c +++ b/clang/test/CodeGen/complex-math.c @@ -1,3 +1,5 @@ +// FIXME: This file should not be using -O1; that makes it depend on the entire LLVM IR optimizer. + // RUN: %clang_cc1 %s -O1 -fno-experimental-new-pass-manager -emit-llvm -triple x86_64-unknown-unknown -o - | FileCheck %s --check-prefix=X86 // RUN: %clang_cc1 %s -O1 -fno-experimental-new-pass-manager -emit-llvm -triple x86_64-pc-win64 -o - | FileCheck %s --check-prefix=X86 // RUN: %clang_cc1 %s -O1 -fno-experimental-new-pass-manager -emit-llvm -triple i686-unknown-unknown -o - | FileCheck %s --check-prefix=X86 @@ -147,10 +149,9 @@ float _Complex div_float_rc(float a, float _Complex b) { // // BC = 0 // AARCH64-FASTMATH: [[AD:%.*]] = fmul fast float [[D]], %a - // AARCH64-FASTMATH: [[BCmAD:%.*]] = fsub fast float -0.000000e+00, [[AD]] - // - // AARCH64-FASTMATH: fdiv fast float [[AC]], [[CCpDD]] - // AARCH64-FASTMATH: fdiv fast float [[BCmAD]], [[CCpDD]] + // AARCH64-FASTMATH: [[BCmAD:%.*]] = fdiv fast float [[AC]], [[CCpDD]] + // AARCH64-FASTMATH: [[DIV:%.*]] = fdiv fast float [[AD]], [[CCpDD]] + // AARCH64-FASTMATH: fsub fast float -0.000000e+00, [[DIV]] // AARCH64-FASTMATH: ret return a / b; } @@ -325,10 +326,9 @@ double _Complex div_double_rc(double a, double _Complex b) { // // BC = 0 // AARCH64-FASTMATH: [[AD:%.*]] = fmul fast double [[D]], %a - // AARCH64-FASTMATH: [[BCmAD:%.*]] = fsub fast double -0.000000e+00, [[AD]] - // - // AARCH64-FASTMATH: fdiv fast double [[AC]], [[CCpDD]] - // AARCH64-FASTMATH: fdiv fast double [[BCmAD]], [[CCpDD]] + // AARCH64-FASTMATH: [[BCmAD:%.*]] = fdiv fast double [[AC]], [[CCpDD]] + // AARCH64-FASTMATH: [[DIV:%.*]] = fdiv fast double [[AD]], [[CCpDD]] + // AARCH64-FASTMATH: fsub fast double -0.000000e+00, [[DIV]] // AARCH64-FASTMATH: ret return a / b; } @@ -521,10 +521,9 @@ long double _Complex div_long_double_rc(long double a, long double _Complex b) { // // BC = 0 // AARCH64-FASTMATH: [[AD:%.*]] = fmul fast fp128 [[D]], %a - // AARCH64-FASTMATH: [[BCmAD:%.*]] = fsub fast fp128 0xL00000000000000008000000000000000, [[AD]] - // - // AARCH64-FASTMATH: fdiv fast fp128 [[AC]], [[CCpDD]] - // AARCH64-FASTMATH: fdiv fast fp128 [[BCmAD]], [[CCpDD]] + // AARCH64-FASTMATH: [[BCmAD:%.*]] = fdiv fast fp128 [[AC]], [[CCpDD]] + // AARCH64-FASTMATH: [[DIV:%.*]] = fdiv fast fp128 [[AD]], [[CCpDD]] + // AARCH64-FASTMATH: fsub fast fp128 0xL00000000000000008000000000000000, [[DIV]] // AARCH64-FASTMATH: ret return a / b; }