[sanitizer][test] Fix FastUnwindTest on LoongArch
authorYouling Tang <tangyouling@loongson.cn>
Thu, 10 Nov 2022 05:35:49 +0000 (13:35 +0800)
committerWeining Lu <luweining@loongson.cn>
Thu, 10 Nov 2022 05:35:52 +0000 (13:35 +0800)
commit91bc4abfdba65a0ef7e40915bdff62324bccf2f2
treee0b94f3f8060743f10533374c236738181a3cc0c
parent14cd113e69935e2de9c4d300c3ab01cf83c5d4db
[sanitizer][test] Fix FastUnwindTest on LoongArch

Fixes the `FastUnwindTest` unit test for LoongArch.
This change is similar to RISCV D90574.

The following test cases pass after applying the patch:
```
$ ./runtimes/runtimes-bins/compiler-rt/lib/sanitizer_common/tests/Sanitizer-loongarch64-Test
...
[  FAILED  ] FastUnwindTest.Basic
[  FAILED  ] FastUnwindTest.FramePointerLoop
[  FAILED  ] FastUnwindTest.MisalignedFramePointer
[  FAILED  ] FastUnwindTest.FPBelowPrevFP
[  FAILED  ] FastUnwindTest.CloseToZeroFrame
```

Reviewed By: SixWeining, xen0n, MaskRay

Differential Revision: https://reviews.llvm.org/D137314
compiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp