Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(860)

Unified Diff: tests/exception_test/exception_test.c

Issue 12256018: [MIPS] Add remaining parts for building tests for MIPS (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/exception_test/exception_test.c
diff --git a/tests/exception_test/exception_test.c b/tests/exception_test/exception_test.c
index 7c56582204fd857ce0c65a515db46785c4d8ce01..310593ad2e198ff1fd2ddbcb52178687ddbf7aef 100644
--- a/tests/exception_test/exception_test.c
+++ b/tests/exception_test/exception_test.c
@@ -63,7 +63,11 @@ struct AlignedType {
*/
__attribute__((noinline))
void check_pointer_is_aligned(void *pointer) {
+#if defined(__mips__)
+ assert((uintptr_t) pointer % 8 == 0);
Mark Seaborn 2013/02/13 22:14:09 But we declared it with __attribute__((aligned(16)
petarj 2013/03/05 17:50:04 attribute aligned does not work for variables on s
Mark Seaborn 2013/03/14 15:48:00 Answering your earlier question... On 2013/03/05
+#else
assert((uintptr_t) pointer % 16 == 0);
+#endif
}
void check_stack_is_aligned(void) {

Powered by Google App Engine
This is Rietveld 408576698