[Lldb-commits] [lldb] cd05406 - [testsuite] Adapt lldb-server base test helper to run on arm64

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 21 05:17:22 PDT 2020


On 20/07/2020 23:38, Davide Italiano via lldb-commits wrote:
> @@ -1601,8 +1601,18 @@ def single_step_only_steps_one_instruction(
>          # variable value
>          if re.match("s390x", arch):
>              expected_step_count = 2
> +        # ARM64 requires "4" instructions: 2 to compute the address (adrp, add),
> +        # one to materialize the constant (mov) and the store
> +        if re.match("arm64", arch):
> +            expected_step_count = 4
> +
>          self.assertEqual(step_count, expected_step_count)
>  
> +        # ARM64: Once addresses and constants are materialized, only one
> +        # instruction is needed.
> +        if re.match("arm64", arch):
> +            expected_step_count = 1
> +
>          # Verify we hit the next state.
>          args["expected_g_c1"] = "0"
>          args["expected_g_c2"] = "0"
> 

I have a feeling this was racing with aa73ee052f -- [lldb/test] Use
inline assembly for instruction counting tests.

There should be no need for magic step counts after that patch. (If
there is, I'd like to know why.)

pl


More information about the lldb-commits mailing list