llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-lldb Author: Fred Grim (feg208) <details> <summary>Changes</summary> the assembly jazz doesn't work on arm. oops --- Full diff: https://github.com/llvm/llvm-project/pull/89267.diff 1 Files Affected: - (modified) lldb/unittests/Host/linux/HostTest.cpp (+2-1) ``````````diff diff --git a/lldb/unittests/Host/linux/HostTest.cpp b/lldb/unittests/Host/linux/HostTest.cpp index 046736dce18d7a..27d1898969fb44 100644 --- a/lldb/unittests/Host/linux/HostTest.cpp +++ b/lldb/unittests/Host/linux/HostTest.cpp @@ -71,8 +71,9 @@ TEST_F(HostTest, GetProcessInfo) { // Test timings ASSERT_TRUE(Host::GetProcessInfo(getpid(), Info)); ProcessInstanceInfo::timespec user_time = Info.GetUserTime(); + static volatile unsigned u = 0; for (unsigned i = 0; i < 10'000'000; i++) { - __asm__ __volatile__("" : "+g"(i) : :); + u = i; } ASSERT_TRUE(Host::GetProcessInfo(getpid(), Info)); ProcessInstanceInfo::timespec next_user_time = Info.GetUserTime(); `````````` </details> https://github.com/llvm/llvm-project/pull/89267 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits