llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Joshua Cranmer (jcranmer-intel) <details> <summary>Changes</summary> The root cause of the failure is that the output syntax only outputs the +/-snan syntax for ppc_fp128 if the trailing double is 0. The clang test here is triggering -LDBL_SNAN, which is actually an fneg(snan constant), and the fneg causes the signs of both doubles in the ppc_fp128 to flip. As a result, only the ppc_fp128 form is output in the hexadecimal format rather than the -snan format, necessitating a change to the test output. --- Full diff: https://github.com/llvm/llvm-project/pull/196407.diff 1 Files Affected: - (modified) clang/test/C/C2y/n3364.c (+1-1) ``````````diff diff --git a/clang/test/C/C2y/n3364.c b/clang/test/C/C2y/n3364.c index 11c2999cb9be6..1662d637da071 100644 --- a/clang/test/C/C2y/n3364.c +++ b/clang/test/C/C2y/n3364.c @@ -39,4 +39,4 @@ long double ld2 = +LDBL_SNAN; long double ld3 = -LDBL_SNAN; // CHECK: @ld1 = {{.*}}global {{double|x86_fp80|fp128|ppc_fp128}} +snan( // CHECK: @ld2 = {{.*}}global {{double|x86_fp80|fp128|ppc_fp128}} +snan( -// CHECK: @ld3 = {{.*}}global {{double|x86_fp80|fp128|ppc_fp128}} -snan( +// CHECK: @ld3 = {{.*}}global {{double|x86_fp80|fp128|ppc_fp128}} {{-snan\(|f0x8000000000000000FFF4000000000000}} `````````` </details> https://github.com/llvm/llvm-project/pull/196407 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
