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

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: Made sort safe and fixed test to run 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 and -O2 to test alignment and ordering of
2 ; redzones when allocas are coalesced.
3
4 ; REQUIRES: no_minimal_build
5
6 ; RUN: %p2i --filetype=obj --disassemble --target x8632 -i %s --args -O2 \
7 ; RUN: -allow-externally-defined-symbols -fsanitize-address | FileCheck %s
8
9 define internal i32 @func(i32 %arg1, i32 %arg2) {
10 %l1 = alloca i8, i32 4, align 4
11 %l2 = alloca i8, i32 5, align 1
12 ret i32 42
13 }
14
15 ; CHECK: func
16 ; CHECK-NEXT: sub esp,0xbc
17 ; CHECK-NEXT: lea eax,[esp+0x10]
18 ; CHECK-NEXT: mov DWORD PTR [esp],eax
19 ; CHECK-NEXT: mov DWORD PTR [esp+0x4],0x20
20 ; CHECK-NEXT: __asan_poison
21 ; CHECK-NEXT: lea eax,[esp+0x74]
22 ; CHECK-NEXT: mov DWORD PTR [esp],eax
23 ; CHECK-NEXT: mov DWORD PTR [esp+0x4],0x3c
24 ; CHECK-NEXT: __asan_poison
25 ; CHECK-NEXT: lea eax,[esp+0x35]
26 ; CHECK-NEXT: mov DWORD PTR [esp],eax
27 ; CHECK-NEXT: mov DWORD PTR [esp+0x4],0x3b
28 ; CHECK-NEXT: __asan_poison
29 ; CHECK-NEXT: lea eax,[esp+0x74]
30 ; CHECK-NEXT: mov DWORD PTR [esp],eax
31 ; CHECK-NEXT: mov DWORD PTR [esp+0x4],0x3c
32 ; CHECK-NEXT: __asan_unpoison
33 ; CHECK-NEXT: lea eax,[esp+0x35]
34 ; CHECK-NEXT: mov DWORD PTR [esp],eax
35 ; CHECK-NEXT: mov DWORD PTR [esp+0x4],0x3b
36 ; CHECK-NEXT: __asan_unpoison
37 ; CHECK-NEXT: lea eax,[esp+0x10]
38 ; CHECK-NEXT: mov DWORD PTR [esp],eax
39 ; CHECK-NEXT: mov DWORD PTR [esp+0x4],0x20
40 ; CHECK-NEXT: __asan_unpoison
41 ; CHECK-NEXT: mov eax,0x2a
42 ; CHECK-NEXT: add esp,0xbc
43 ; 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