[compiler-rt] r262581 - [LSan] Enable use_registers test for MIPS
Mohit K. Bhakkad via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 2 21:05:20 PST 2016
Author: mohit.bhakkad
Date: Wed Mar 2 23:05:20 2016
New Revision: 262581
URL: http://llvm.org/viewvc/llvm-project?rev=262581&view=rev
Log:
[LSan] Enable use_registers test for MIPS
Reviewers: samsonov
Subscribers: jaydeep, sagar, llvm-commits
Differential Revision: http://reviews.llvm.org/D17797
Modified:
compiler-rt/trunk/test/lsan/TestCases/use_registers.cc
Modified: compiler-rt/trunk/test/lsan/TestCases/use_registers.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/lsan/TestCases/use_registers.cc?rev=262581&r1=262580&r2=262581&view=diff
==============================================================================
--- compiler-rt/trunk/test/lsan/TestCases/use_registers.cc (original)
+++ compiler-rt/trunk/test/lsan/TestCases/use_registers.cc Wed Mar 2 23:05:20 2016
@@ -27,6 +27,11 @@ void *registers_thread_func(void *arg) {
:
: "r" (p)
);
+#elif defined(__mips__)
+ asm ( "move $16, %0"
+ :
+ : "r" (p)
+ );
#else
#error "Test is not supported on this architecture."
#endif
More information about the llvm-commits
mailing list