summaryrefslogtreecommitdiffstats
path: root/yql/essentials/minikql/codegen/codegen_ut.cpp
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2025-04-15 13:58:49 +0300
committerrobot-piglet <[email protected]>2025-04-15 14:11:49 +0300
commit3b86e7a6fe7294d1b20478e1160df641b93570ea (patch)
treee4cbdd7130465cae91603bc4412178fe33b43620 /yql/essentials/minikql/codegen/codegen_ut.cpp
parent637005dc7a720b8c168171ec6f7596b7c43bb18b (diff)
Intermediate changes
commit_hash:c4550cac5dcb439e190f089fb6c9dca01277f4f5
Diffstat (limited to 'yql/essentials/minikql/codegen/codegen_ut.cpp')
-rw-r--r--yql/essentials/minikql/codegen/codegen_ut.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/yql/essentials/minikql/codegen/codegen_ut.cpp b/yql/essentials/minikql/codegen/codegen_ut.cpp
index 9ac6030358d..5d96b342017 100644
--- a/yql/essentials/minikql/codegen/codegen_ut.cpp
+++ b/yql/essentials/minikql/codegen/codegen_ut.cpp
@@ -8,6 +8,12 @@
using namespace NYql::NCodegen;
using namespace llvm;
+#ifdef _win_
+constexpr bool SupportsBitCode = false;
+#else
+constexpr bool SupportsBitCode = true;
+#endif
+
extern "C" int mul(int x, int y) {
return x * y;
}
@@ -268,6 +274,10 @@ Y_UNIT_TEST_SUITE(TCodegenTests) {
}
Y_UNIT_TEST(FibFromBitCode) {
+ if (!SupportsBitCode) {
+ return;
+ }
+
auto codegen = ICodegen::Make(ETarget::Native);
auto bitcode = NResource::Find("/llvm_bc/Funcs");
codegen->LoadBitCode(bitcode, "Funcs");
@@ -281,6 +291,10 @@ Y_UNIT_TEST_SUITE(TCodegenTests) {
}
Y_UNIT_TEST(LinkWithNativeFunction) {
+ if (!SupportsBitCode) {
+ return;
+ }
+
auto codegen = ICodegen::Make(ETarget::Native);
auto bitcode = NResource::Find("/llvm_bc/Funcs");
codegen->LoadBitCode(bitcode, "Funcs");
@@ -295,6 +309,10 @@ Y_UNIT_TEST_SUITE(TCodegenTests) {
}
Y_UNIT_TEST(LinkWithGeneratedFunction) {
+ if (!SupportsBitCode) {
+ return;
+ }
+
auto codegen = ICodegen::Make(ETarget::Native);
auto mulFunc = CreateMulFunction(codegen->GetModule(), codegen->GetContext());
Y_UNUSED(mulFunc);
@@ -310,6 +328,10 @@ Y_UNIT_TEST_SUITE(TCodegenTests) {
}
Y_UNIT_TEST(ReuseExternalCode) {
+ if (!SupportsBitCode) {
+ return;
+ }
+
auto codegen = ICodegen::Make(ETarget::Native);
auto bitcode = NResource::Find("/llvm_bc/Funcs");
codegen->LoadBitCode(bitcode, "Funcs");
@@ -323,6 +345,10 @@ Y_UNIT_TEST_SUITE(TCodegenTests) {
}
Y_UNIT_TEST(UseObjectReference) {
+ if (!SupportsBitCode) {
+ return;
+ }
+
auto codegen = ICodegen::Make(ETarget::Native);
auto bitcode = NResource::Find("/llvm_bc/Funcs");
codegen->LoadBitCode(bitcode, "Funcs");
@@ -349,6 +375,10 @@ Y_UNIT_TEST_SUITE(TCodegenTests) {
}
Y_UNIT_TEST(UseExternalFromGeneratedFunction) {
+ if (!SupportsBitCode) {
+ return;
+ }
+
auto codegen = ICodegen::Make(ETarget::Native);
auto bitcode = NResource::Find("/llvm_bc/Funcs");
codegen->LoadBitCode(bitcode, "Funcs");
@@ -363,6 +393,10 @@ Y_UNIT_TEST_SUITE(TCodegenTests) {
}
Y_UNIT_TEST(UseExternalFromGeneratedFunction_128bit_Compiled) {
+ if (!SupportsBitCode) {
+ return;
+ }
+
auto codegen = ICodegen::Make(ETarget::Native);
auto bitcode = NResource::Find("/llvm_bc/Funcs");
codegen->LoadBitCode(bitcode, "Funcs");
@@ -389,6 +423,10 @@ Y_UNIT_TEST_SUITE(TCodegenTests) {
}
Y_UNIT_TEST(UseExternalFromGeneratedFunction_128bit_Bitcode) {
+ if (!SupportsBitCode) {
+ return;
+ }
+
auto codegen = ICodegen::Make(ETarget::Native);
auto bitcode = NResource::Find("/llvm_bc/Funcs");
codegen->LoadBitCode(bitcode, "Funcs");