Home
last modified time | relevance | path

Searched refs:linked_binary (Results 1 – 25 of 36) sorted by relevance

12

/third_party/spirv-tools/test/link/
Dmatching_imports_to_exports_test.cpp48 spvtest::Binary linked_binary; in TEST_F() local
49 ASSERT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)) in TEST_F()
64 ASSERT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F()
80 spvtest::Binary linked_binary; in TEST_F() local
81 ASSERT_EQ(SPV_SUCCESS, AssembleAndLink({body}, &linked_binary)) in TEST_F()
94 ASSERT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F()
110 spvtest::Binary linked_binary; in TEST_F() local
113 ASSERT_EQ(SPV_SUCCESS, AssembleAndLink({body}, &linked_binary, options)) in TEST_F()
127 ASSERT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F()
148 spvtest::Binary linked_binary; in TEST_F() local
[all …]
Dmemory_model_test.cpp34 spvtest::Binary linked_binary; in TEST_F() local
35 ASSERT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
38 EXPECT_EQ(SpvAddressingModelLogical, linked_binary[6]); in TEST_F()
39 EXPECT_EQ(SpvMemoryModelSimple, linked_binary[7]); in TEST_F()
50 spvtest::Binary linked_binary; in TEST_F() local
52 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
66 spvtest::Binary linked_binary; in TEST_F() local
68 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
81 spvtest::Binary linked_binary; in TEST_F() local
83 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
[all …]
Dentry_points_test.cpp47 spvtest::Binary linked_binary; in TEST_F() local
48 ASSERT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)) in TEST_F()
73 spvtest::Binary linked_binary; in TEST_F() local
74 ASSERT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)) in TEST_F()
99 spvtest::Binary linked_binary; in TEST_F() local
101 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
143 spvtest::Binary linked_binary; in TEST_F() local
144 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
146 EXPECT_TRUE(Validate(linked_binary)); in TEST_F()
Dlinker_fixture.h73 const std::vector<std::string>& bodies, spvtest::Binary* linked_binary,
75 if (!linked_binary) return SPV_ERROR_INVALID_POINTER;
82 return spvtools::Link(context_, binaries, linked_binary, options);
91 const std::string& templateBody, spvtest::Binary* linked_binary,
93 if (!linked_binary) return SPV_ERROR_INVALID_POINTER;
137 return AssembleAndLink(bodies, linked_binary, options);
145 spvtest::Binary linked_binary; variable
146 spv_result_t res = ExpandAndLink(templateBody, &linked_binary, options);
152 tools_.Disassemble(linked_binary, &result, disassemble_options_))
163 spvtest::Binary linked_binary; variable
[all …]
Dids_limit_test.cpp96 spvtest::Binary linked_binary; in TEST_F() local
97 ASSERT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)) << GetErrorMessage(); in TEST_F()
99 EXPECT_EQ(0x3FFFFFu, linked_binary[3]); in TEST_F()
112 spvtest::Binary linked_binary; in TEST_F() local
113 ASSERT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)) << GetErrorMessage(); in TEST_F()
118 EXPECT_EQ(0x400000u, linked_binary[3]); in TEST_F()
125 spvtest::Binary linked_binary; in TEST_F() local
127 EXPECT_EQ(SPV_ERROR_INVALID_DATA, Link(binaries, &linked_binary)); in TEST_F()
Dbinary_version_test.cpp55 spvtest::Binary linked_binary; in TEST_F() local
56 ASSERT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)) << GetErrorMessage(); in TEST_F()
58 EXPECT_EQ(SPV_SPIRV_VERSION_WORD(1, 3), linked_binary[1]); in TEST_F()
68 spvtest::Binary linked_binary; in TEST_F() local
69 ASSERT_EQ(SPV_ERROR_INTERNAL, Link(binaries, &linked_binary)) in TEST_F()
Dpartial_linkage_test.cpp49 spvtest::Binary linked_binary; in TEST_F() local
53 AssembleAndLink({body1, body2}, &linked_binary, linker_options)) in TEST_F()
69 ASSERT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F()
97 spvtest::Binary linked_binary; in TEST_F() local
99 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
Dglobal_values_amount_test.cpp83 spvtest::Binary linked_binary; in TEST_F() local
85 ASSERT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)) << GetErrorMessage(); in TEST_F()
126 spvtest::Binary linked_binary; in TEST_F() local
127 ASSERT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)) << GetErrorMessage(); in TEST_F()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/link/
Dmatching_imports_to_exports_test.cpp42 spvtest::Binary linked_binary; in TEST_F() local
43 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)) in TEST_F()
55 EXPECT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F()
68 spvtest::Binary linked_binary; in TEST_F() local
69 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body}, &linked_binary)) in TEST_F()
79 EXPECT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F()
92 spvtest::Binary linked_binary; in TEST_F() local
95 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body}, &linked_binary, options)) in TEST_F()
106 EXPECT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F()
120 spvtest::Binary linked_binary; in TEST_F() local
[all …]
Dlinker_fixture.h73 const std::vector<std::string>& bodies, spvtest::Binary* linked_binary,
75 if (!linked_binary) return SPV_ERROR_INVALID_POINTER;
82 return spvtools::Link(context_, binaries, linked_binary, options);
91 const std::string& templateBody, spvtest::Binary* linked_binary,
93 if (!linked_binary) return SPV_ERROR_INVALID_POINTER;
137 return AssembleAndLink(bodies, linked_binary, options);
145 spvtest::Binary linked_binary; variable
146 spv_result_t res = ExpandAndLink(templateBody, &linked_binary, options);
152 tools_.Disassemble(linked_binary, &result, disassemble_options_))
163 spvtest::Binary linked_binary; variable
[all …]
Dmemory_model_test.cpp34 spvtest::Binary linked_binary; in TEST_F() local
35 ASSERT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
38 EXPECT_EQ(SpvAddressingModelLogical, linked_binary[6]); in TEST_F()
39 EXPECT_EQ(SpvMemoryModelSimple, linked_binary[7]); in TEST_F()
50 spvtest::Binary linked_binary; in TEST_F() local
52 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
66 spvtest::Binary linked_binary; in TEST_F() local
68 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
Dentry_points_test.cpp43 spvtest::Binary linked_binary; in TEST_F() local
44 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
64 spvtest::Binary linked_binary; in TEST_F() local
65 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
85 spvtest::Binary linked_binary; in TEST_F() local
87 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
Dids_limit_test.cpp38 spvtest::Binary linked_binary; in TEST_F() local
40 ASSERT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)); in TEST_F()
42 EXPECT_EQ(0x3FFFFEu, linked_binary[3]); in TEST_F()
63 spvtest::Binary linked_binary; in TEST_F() local
65 EXPECT_EQ(SPV_ERROR_INVALID_ID, Link(binaries, &linked_binary)); in TEST_F()
Dpartial_linkage_test.cpp43 spvtest::Binary linked_binary; in TEST_F() local
47 AssembleAndLink({body1, body2}, &linked_binary, linker_options)); in TEST_F()
59 ASSERT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F()
81 spvtest::Binary linked_binary; in TEST_F() local
83 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
Dglobal_values_amount_test.cpp112 spvtest::Binary linked_binary; in TEST_F() local
114 EXPECT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)); in TEST_F()
144 spvtest::Binary linked_binary; in TEST_F() local
146 EXPECT_EQ(SPV_ERROR_INTERNAL, Link(binaries, &linked_binary)); in TEST_F()
Dbinary_version_test.cpp51 spvtest::Binary linked_binary; in TEST_F() local
53 ASSERT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)); in TEST_F()
56 EXPECT_EQ(0x00010500u, linked_binary[1]); in TEST_F()
Dunique_ids_test.cpp134 spvtest::Binary linked_binary; in TEST_F() local
137 spv_result_t res = AssembleAndLink(bodies, &linked_binary, options); in TEST_F()
/third_party/skia/third_party/externals/spirv-tools/test/link/
Dmatching_imports_to_exports_test.cpp42 spvtest::Binary linked_binary; in TEST_F() local
43 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)) in TEST_F()
55 EXPECT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F()
68 spvtest::Binary linked_binary; in TEST_F() local
69 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body}, &linked_binary)) in TEST_F()
79 EXPECT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F()
92 spvtest::Binary linked_binary; in TEST_F() local
95 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body}, &linked_binary, options)) in TEST_F()
106 EXPECT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F()
120 spvtest::Binary linked_binary; in TEST_F() local
[all …]
Dlinker_fixture.h73 const std::vector<std::string>& bodies, spvtest::Binary* linked_binary,
75 if (!linked_binary) return SPV_ERROR_INVALID_POINTER;
82 return spvtools::Link(context_, binaries, linked_binary, options);
91 const std::string& templateBody, spvtest::Binary* linked_binary,
93 if (!linked_binary) return SPV_ERROR_INVALID_POINTER;
137 return AssembleAndLink(bodies, linked_binary, options);
145 spvtest::Binary linked_binary; variable
146 spv_result_t res = ExpandAndLink(templateBody, &linked_binary, options);
152 tools_.Disassemble(linked_binary, &result, disassemble_options_))
163 spvtest::Binary linked_binary; variable
[all …]
Dmemory_model_test.cpp34 spvtest::Binary linked_binary; in TEST_F() local
35 ASSERT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
38 EXPECT_EQ(SpvAddressingModelLogical, linked_binary[6]); in TEST_F()
39 EXPECT_EQ(SpvMemoryModelSimple, linked_binary[7]); in TEST_F()
50 spvtest::Binary linked_binary; in TEST_F() local
52 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
66 spvtest::Binary linked_binary; in TEST_F() local
68 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
Dentry_points_test.cpp43 spvtest::Binary linked_binary; in TEST_F() local
44 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
64 spvtest::Binary linked_binary; in TEST_F() local
65 EXPECT_EQ(SPV_SUCCESS, AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
85 spvtest::Binary linked_binary; in TEST_F() local
87 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
Dids_limit_test.cpp38 spvtest::Binary linked_binary; in TEST_F() local
40 ASSERT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)); in TEST_F()
42 EXPECT_EQ(0x3FFFFEu, linked_binary[3]); in TEST_F()
63 spvtest::Binary linked_binary; in TEST_F() local
65 EXPECT_EQ(SPV_ERROR_INVALID_ID, Link(binaries, &linked_binary)); in TEST_F()
Dpartial_linkage_test.cpp43 spvtest::Binary linked_binary; in TEST_F() local
47 AssembleAndLink({body1, body2}, &linked_binary, linker_options)); in TEST_F()
59 ASSERT_EQ(SPV_SUCCESS, Disassemble(linked_binary, &res_body)) in TEST_F()
81 spvtest::Binary linked_binary; in TEST_F() local
83 AssembleAndLink({body1, body2}, &linked_binary)); in TEST_F()
Dglobal_values_amount_test.cpp112 spvtest::Binary linked_binary; in TEST_F() local
114 EXPECT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)); in TEST_F()
144 spvtest::Binary linked_binary; in TEST_F() local
146 EXPECT_EQ(SPV_ERROR_INTERNAL, Link(binaries, &linked_binary)); in TEST_F()
Dbinary_version_test.cpp51 spvtest::Binary linked_binary; in TEST_F() local
53 ASSERT_EQ(SPV_SUCCESS, Link(binaries, &linked_binary)); in TEST_F()
56 EXPECT_EQ(0x00010500u, linked_binary[1]); in TEST_F()

12