[all-commits] [llvm/llvm-project] 72506e: [compiler-rt] Fix `addtf3_test.c` being skipped du...

Kostiantyn Lazukin via All-commits all-commits at lists.llvm.org
Wed Apr 16 09:55:03 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 72506eb37d9440d32e6dada187785b06aecb415c
      https://github.com/llvm/llvm-project/commit/72506eb37d9440d32e6dada187785b06aecb415c
  Author: Kostiantyn Lazukin <konstantin.lazukin at gmail.com>
  Date:   2025-04-16 (Wed, 16 Apr 2025)

  Changed paths:
    M compiler-rt/test/builtins/Unit/addtf3_test.c

  Log Message:
  -----------
  [compiler-rt] Fix `addtf3_test.c` being skipped due to misplaced include (#134106)

[compiler-rt] The test `addtf3_test.c` is currently guarded by `#if
defined(CRT_HAS_IEEE_TF)`, a macro that is declared in `int_lib.h`.
However, `int_lib.h` is included *after* the preprocessor check, which
results in the macro not being defined in time and causes the test to
always be skipped.

This patch moves the includes of `fp_test.h` and `int_lib.h` to the top
of the file so that `CRT_HAS_IEEE_TF` is defined before it is checked.

Co-authored-by: Kostiantyn Lazukin <koslaz01 at ip-10-252-21-142.eu-west-1.compute.internal>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list