Skip to content

Commit f6ffca7

Browse files
committed
Change %fp-model expansion to allow using other models
1 parent 9308808 commit f6ffca7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

sycl/test-e2e/Regression/optimization_level_debug_info_specopt.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// DEFINE: %{ffpflags} = %if cl_options %{/clang:-ffp-model=fast%} %else %{-ffp-model=fast%}
21
// DEFINE: %{Oz} = %if cl_options %{/clang:-Oz%} %else %{-Oz%}
32
// DEFINE: %{O} = %if cl_options %{/clang:-O%} %else %{-O%}
4-
// RUN: %{build} %debug_option %{ffpflags} -o %t.out
3+
// RUN: %{build} %debug_option %fp-model-fast -o %t.out
54
// RUN: %{build} %debug_option -Os -o %t.out
65
// RUN: %{build} %debug_option %{Oz} -o %t.out
76
// RUN: %{build} %debug_option -Og -o %t.out

sycl/test-e2e/lit.cfg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def open_check_file(file_name):
358358
config.substitutions.append(("%fPIC", ""))
359359
config.substitutions.append(("%shared_lib", "/LD"))
360360
config.substitutions.append(("%no_opt", "/Od"))
361-
config.substitutions.append(("%fp-model-precise", "/fp:precise"))
361+
config.substitutions.append(("%fp-model-", "/fp:"))
362362
else:
363363
config.substitutions.append(
364364
(
@@ -384,7 +384,7 @@ def open_check_file(file_name):
384384
)
385385
config.substitutions.append(("%shared_lib", "-shared"))
386386
config.substitutions.append(("%no_opt", "-O0"))
387-
config.substitutions.append(("%fp-model-precise", "-ffp-model=precise"))
387+
config.substitutions.append(("%fp-model-", "-ffp-model="))
388388

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

0 commit comments

Comments
 (0)