diff options
author | 2024-08-23 16:05:19 +0200 | |
---|---|---|
committer | 2024-08-28 12:20:39 +0000 | |
commit | c9ea8725f4e71d3014850c066736d991d0f2d4bd (patch) | |
tree | 38b9cb61712cfa2cfc551ef06bc54537c74ab414 /compiler/optimizing/optimizing_unit_test.h | |
parent | 074876edf2d0329ab7772f851e321ce8264a5c2a (diff) |
Add LSE gtests for inserting type conversions.
Add tests for the cases where the LSE correctly inserts the
required type conversion instructions as needed, as well as
tests for currently broken cases. The latter are guarded by
`GTEST_SKIP()` until we fix them in a separate change.
Test: m test-art-host-gtest
Bug: 341476044
Change-Id: Id6002bc31cef542564b84258defcab45b06e6445
Diffstat (limited to 'compiler/optimizing/optimizing_unit_test.h')
-rw-r--r-- | compiler/optimizing/optimizing_unit_test.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/optimizing/optimizing_unit_test.h b/compiler/optimizing/optimizing_unit_test.h index f4f62e67ed..2fe11299fc 100644 --- a/compiler/optimizing/optimizing_unit_test.h +++ b/compiler/optimizing/optimizing_unit_test.h @@ -507,22 +507,22 @@ class OptimizingUnitTestHelper { } HInstanceFieldSet* MakeIFieldSet(HBasicBlock* block, - HInstruction* inst, + HInstruction* object, HInstruction* data, MemberOffset off, uint32_t dex_pc = kNoDexPc) { CHECK(data != nullptr); - return MakeIFieldSet(block, inst, data, data->GetType(), off, dex_pc); + return MakeIFieldSet(block, object, data, data->GetType(), off, dex_pc); } HInstanceFieldSet* MakeIFieldSet(HBasicBlock* block, - HInstruction* inst, + HInstruction* object, HInstruction* data, DataType::Type field_type, MemberOffset off, uint32_t dex_pc = kNoDexPc) { HInstanceFieldSet* ifield_set = new (GetAllocator()) HInstanceFieldSet( - inst, + object, data, /* field= */ nullptr, field_type, @@ -537,12 +537,12 @@ class OptimizingUnitTestHelper { } HInstanceFieldGet* MakeIFieldGet(HBasicBlock* block, - HInstruction* inst, + HInstruction* object, DataType::Type type, MemberOffset off, uint32_t dex_pc = kNoDexPc) { HInstanceFieldGet* ifield_get = new (GetAllocator()) HInstanceFieldGet( - inst, + object, /* field= */ nullptr, /* field_type= */ type, /* field_offset= */ off, |