Skip to content

Commit

Permalink
Change %fp-model expansion to allow using other models
Browse files Browse the repository at this point in the history
  • Loading branch information
ayylol committed Sep 23, 2024
1 parent 9308808 commit f6ffca7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// DEFINE: %{ffpflags} = %if cl_options %{/clang:-ffp-model=fast%} %else %{-ffp-model=fast%}
// DEFINE: %{Oz} = %if cl_options %{/clang:-Oz%} %else %{-Oz%}
// DEFINE: %{O} = %if cl_options %{/clang:-O%} %else %{-O%}
// RUN: %{build} %debug_option %{ffpflags} -o %t.out
// RUN: %{build} %debug_option %fp-model-fast -o %t.out
// RUN: %{build} %debug_option -Os -o %t.out
// RUN: %{build} %debug_option %{Oz} -o %t.out
// RUN: %{build} %debug_option -Og -o %t.out
Expand Down
4 changes: 2 additions & 2 deletions sycl/test-e2e/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def open_check_file(file_name):
config.substitutions.append(("%fPIC", ""))
config.substitutions.append(("%shared_lib", "/LD"))
config.substitutions.append(("%no_opt", "/Od"))
config.substitutions.append(("%fp-model-precise", "/fp:precise"))
config.substitutions.append(("%fp-model-", "/fp:"))
else:
config.substitutions.append(
(
Expand All @@ -384,7 +384,7 @@ def open_check_file(file_name):
)
config.substitutions.append(("%shared_lib", "-shared"))
config.substitutions.append(("%no_opt", "-O0"))
config.substitutions.append(("%fp-model-precise", "-ffp-model=precise"))
config.substitutions.append(("%fp-model-", "-ffp-model="))

# Check if user passed verbose-print parameter, if yes, add VERBOSE_PRINT macro
if "verbose-print" in lit_config.params:
Expand Down

0 comments on commit f6ffca7

Please sign in to comment.