Skip to content

Commit e51a967

Browse files
committedDec 9, 2016
[LLDB][MIPS] Fix TestMultipleHits for MIPS
Reviewers: clayborg, labath, zturner Subscribers: jaydeep, bhushan, slthakur, lldb-commits Differential Revision: https://reviews.llvm.org/D27085 llvm-svn: 289210
1 parent de5923a commit e51a967

File tree

1 file changed

+2
-2
lines changed
  • lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/multiple_hits

1 file changed

+2
-2
lines changed
 

‎lldb/packages/Python/lldbsuite/test/functionalities/watchpoint/multiple_hits/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
//===----------------------------------------------------------------------===//
99
#include <stdio.h>
1010
#include <stdint.h>
11-
1211
alignas(16) uint8_t buf[32];
13-
1412
// This uses inline assembly to generate an instruction that writes to a large
1513
// block of memory. If it fails on your compiler/architecture, please add
1614
// appropriate code to generate a large write to "buf". If you cannot write at
@@ -24,6 +22,8 @@ int main() {
2422
asm volatile ("stm %0, { r0, r1, r2, r3 }" : : "r"(buf));
2523
#elif defined(__aarch64__)
2624
asm volatile ("stp x0, x1, %0" : : "m"(buf));
25+
#elif defined(__mips__)
26+
asm volatile ("lw $2, %0" : : "m"(buf));
2727
#endif
2828
return 0;
2929
}

0 commit comments

Comments
 (0)
Please sign in to comment.