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

Side by Side Diff: tests_lit/asan_tests/alignment.ll

Issue 2095763002: Instrumented local variables and implemented runtime. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Organizational Fixes Created 4 years, 5 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 | « src/IceTargetLoweringX86BaseImpl.h ('k') | tests_lit/asan_tests/instrumentload.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 ; Translate with -fsanitize-address -O2 to test alignment
Karl 2016/06/27 17:31:07 If all RUN commands require a flag, you can use RE
tlively 2016/06/27 20:10:29 Done.
2
3 ; RUN: %if --need=target_X8632,no_allow_minimal --command %p2i --filetype=obj \
4 ; RUN: --disassemble --target x8632 -i %s --args -O2 \
5 ; RUN: -allow-externally-defined-symbols -fsanitize-address | %if \
6 ; RUN: --need=target_X8632,no_allow_minimal --command FileCheck %s
7
8 define internal i32 @func(i32 %arg1, i32 %arg2) {
9 %l1 = alloca i8, i32 4, align 4
10 %l2 = alloca i8, i32 5, align 1
11 ret i32 42
12 }
13
14 ; CHECK: func
15 ; CHECK-NEXT: sub esp,0xbc
16 ; CHECK-NEXT: lea eax,[esp+0x10]
17 ; CHECK-NEXT: mov DWORD PTR [esp],eax
18 ; CHECK-NEXT: mov DWORD PTR [esp+0x4],0x20
19 ; CHECK-NEXT: __asan_poison
20 ; CHECK-NEXT: lea eax,[esp+0x74]
21 ; CHECK-NEXT: mov DWORD PTR [esp],eax
22 ; CHECK-NEXT: mov DWORD PTR [esp+0x4],0x3c
23 ; CHECK-NEXT: __asan_poison
24 ; CHECK-NEXT: lea eax,[esp+0x35]
25 ; CHECK-NEXT: mov DWORD PTR [esp],eax
26 ; CHECK-NEXT: mov DWORD PTR [esp+0x4],0x3b
27 ; CHECK-NEXT: __asan_poison
28 ; CHECK-NEXT: lea eax,[esp+0x74]
29 ; CHECK-NEXT: mov DWORD PTR [esp],eax
30 ; CHECK-NEXT: mov DWORD PTR [esp+0x4],0x3c
31 ; CHECK-NEXT: __asan_unpoison
32 ; CHECK-NEXT: lea eax,[esp+0x35]
33 ; CHECK-NEXT: mov DWORD PTR [esp],eax
34 ; CHECK-NEXT: mov DWORD PTR [esp+0x4],0x3b
35 ; CHECK-NEXT: __asan_unpoison
36 ; CHECK-NEXT: lea eax,[esp+0x10]
37 ; CHECK-NEXT: mov DWORD PTR [esp],eax
38 ; CHECK-NEXT: mov DWORD PTR [esp+0x4],0x20
39 ; CHECK-NEXT: __asan_unpoison
40 ; CHECK-NEXT: mov eax,0x2a
41 ; CHECK-NEXT: add esp,0xbc
42 ; CHECK-NEXT: ret
OLDNEW
« no previous file with comments | « src/IceTargetLoweringX86BaseImpl.h ('k') | tests_lit/asan_tests/instrumentload.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698