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

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

Powered by Google App Engine
This is Rietveld 408576698