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

Side by Side Diff: tests/exception_test/direction_flag_x86.S

Issue 616813002: Non-SFI Mode: Enable compiling exception_test for x86-32. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: if defined() instead Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « site_scons/site_tools/naclsdk.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /* 7 /*
8 * get_x86_direction_flag() returns whether the x86 direction 8 * get_x86_direction_flag() returns whether the x86 direction
9 * flag is set. The normal way of reading the flag is to use 9 * flag is set. The normal way of reading the flag is to use
10 * "pushf", but this instruction is not allowed under NaCl. 10 * "pushf", but this instruction is not allowed under NaCl.
(...skipping 30 matching lines...) Expand all
41 mov %esp, %edi 41 mov %esp, %edi
42 movsb %ds:(%esi), %es:(%edi) 42 movsb %ds:(%esi), %es:(%edi)
43 43
44 /* Clear %eax */ 44 /* Clear %eax */
45 xor %eax, %eax 45 xor %eax, %eax
46 /* This sets the bottom byte of %eax if %edi < %esp (unsigned) */ 46 /* This sets the bottom byte of %eax if %edi < %esp (unsigned) */
47 cmp %esp, %edi 47 cmp %esp, %edi
48 setb %al 48 setb %al
49 49
50 add $4, %esp 50 add $4, %esp
51 #if defined(__native_client_nonsfi__)
52 ret
53 #else
51 naclret 54 naclret
55 #endif
52 56
53 #else 57 #else
54 # error Unknown platform 58 # error Unknown platform
55 #endif 59 #endif
OLDNEW
« no previous file with comments | « site_scons/site_tools/naclsdk.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698