@@ -190,33 +190,6 @@ ENTRY %main {
190190 m::GetTupleElement (m::CustomCall (), 1 ))));
191191}
192192
193- // Sort a pair of S32 tensors, keys go first.
194- TEST_F (SortRewriterTest, SortS32Pairs) {
195- constexpr char kHlo [] = R"(
196- HloModule TestModule
197-
198- %compare {
199- %lhs_key = s32[] parameter(0)
200- %rhs_key = s32[] parameter(1)
201- %lhs_value = s32[] parameter(2)
202- %rhs_value = s32[] parameter(3)
203- ROOT %lt = pred[] compare(%lhs_key, %rhs_key), direction=LT
204- }
205-
206- ENTRY %main {
207- %input_keys = s32[1000] parameter(0)
208- %input_values = s32[1000] parameter(1)
209- ROOT %sort = (s32[1000], s32[1000]) sort(%input_keys, %input_values),
210- dimensions={0}, is_stable=true, to_apply=%compare
211- })" ;
212-
213- TF_ASSERT_OK_AND_ASSIGN (auto module , ParseAndReturnVerifiedModule (kHlo ));
214- EXPECT_TRUE (RunModuleAndPass (module .get ()));
215- EXPECT_THAT (module ->entry_computation ()->root_instruction (),
216- GmockMatch (m::Tuple (m::GetTupleElement (m::CustomCall (), 0 ),
217- m::GetTupleElement (m::CustomCall (), 1 ))));
218- }
219-
220193// Sort a pair of tensors, keys go last.
221194TEST_F (SortRewriterTest, SortPairsSwapped) {
222195 constexpr char kHlo [] = R"(
0 commit comments