[all-commits] [llvm/llvm-project] aa73ee: [lldb/test] Use inline assembly for instruction co...
Pavel Labath via All-commits
all-commits at lists.llvm.org
Fri Mar 6 02:05:18 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: aa73ee052fffb0d06c6b7d8caf0271652c07a80d
https://github.com/llvm/llvm-project/commit/aa73ee052fffb0d06c6b7d8caf0271652c07a80d
Author: Pavel Labath <pavel at labath.sk>
Date: 2020-03-06 (Fri, 06 Mar 2020)
Changed paths:
M lldb/test/API/tools/lldb-server/main.cpp
Log Message:
-----------
[lldb/test] Use inline assembly for instruction counting tests
We have a test which checks that instruction-step really steps one
instruction, but the way it checks this makes it very susceptible to
codegen changes. This rewrites the test inferior to use inline assembly,
which guarantees a known sequence of instructions that the test can
check. This does mean we have to write separate assembly for each
architecture, but that is no better than having architecture-specific
assertions, which the test was already starting to accumulate.
More information about the All-commits
mailing list