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

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

Issue 2165393002: Subzero: small cleanups (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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 | « runtime/szrt_asan.c ('k') | tests_lit/asan_tests/realloc_shrink.ll » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ; Verify that ASan properly catches and reports bugs 1 ; Verify that ASan properly catches and reports bugs
2 2
3 ; REQUIRES: no_minimal_build 3 ; REQUIRES: no_minimal_build
4 4
5 ; check with a one off the end local access 5 ; check with a one off the end local access
6 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \ 6 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \
7 ; RUN: --fsanitize-address --sz="-allow-externally-defined-symbols" \ 7 ; RUN: --fsanitize-address --sz=-allow-externally-defined-symbols \
8 ; RUN: %t.pexe -o %t && %t 2>&1 | FileCheck %s 8 ; RUN: %t.pexe -o %t && %t 2>&1 | FileCheck %s
9 9
10 ; check with a many off the end local access 10 ; check with a many off the end local access
11 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \ 11 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \
12 ; RUN: --fsanitize-address --sz="-allow-externally-defined-symbols" \ 12 ; RUN: --fsanitize-address --sz=-allow-externally-defined-symbols \
13 ; RUN: %t.pexe -o %t && %t 1 2>&1 | FileCheck %s 13 ; RUN: %t.pexe -o %t && %t 1 2>&1 | FileCheck %s
14 14
15 ; check with a one before the front local access 15 ; check with a one before the front local access
16 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \ 16 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \
17 ; RUN: --fsanitize-address --sz="-allow-externally-defined-symbols" \ 17 ; RUN: --fsanitize-address --sz=-allow-externally-defined-symbols \
18 ; RUN: %t.pexe -o %t && %t 1 2 2>&1 | FileCheck %s 18 ; RUN: %t.pexe -o %t && %t 1 2 2>&1 | FileCheck %s
19 19
20 ; check with a one off the end global access 20 ; check with a one off the end global access
21 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \ 21 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \
22 ; RUN: --fsanitize-address --sz="-allow-externally-defined-symbols" \ 22 ; RUN: --fsanitize-address --sz=-allow-externally-defined-symbols \
23 ; RUN: %t.pexe -o %t && %t 1 2 3 2>&1 | FileCheck %s 23 ; RUN: %t.pexe -o %t && %t 1 2 3 2>&1 | FileCheck %s
24 24
25 ; check with a many off the end global access 25 ; check with a many off the end global access
26 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \ 26 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \
27 ; RUN: --fsanitize-address --sz="-allow-externally-defined-symbols" \ 27 ; RUN: --fsanitize-address --sz=-allow-externally-defined-symbols \
28 ; RUN: %t.pexe -o %t && %t 1 2 3 4 2>&1 | FileCheck %s 28 ; RUN: %t.pexe -o %t && %t 1 2 3 4 2>&1 | FileCheck %s
29 29
30 ; check with a one before the front global access 30 ; check with a one before the front global access
31 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \ 31 ; RUN: llvm-as %s -o - | pnacl-freeze > %t.pexe && %S/../../pydir/szbuild.py \
32 ; RUN: --fsanitize-address --sz="-allow-externally-defined-symbols" \ 32 ; RUN: --fsanitize-address --sz=-allow-externally-defined-symbols \
33 ; RUN: %t.pexe -o %t && %t 1 2 3 4 5 2>&1 | FileCheck %s 33 ; RUN: %t.pexe -o %t && %t 1 2 3 4 5 2>&1 | FileCheck %s
34 34
35 35
36 declare external void @exit(i32) 36 declare external void @exit(i32)
37 37
38 ; A global array 38 ; A global array
39 @array = internal constant [12 x i8] zeroinitializer 39 @array = internal constant [12 x i8] zeroinitializer
40 40
41 define void @access(i32 %is_local_i, i32 %err) { 41 define void @access(i32 %is_local_i, i32 %err) {
42 ; get the base pointer to either the local or global array 42 ; get the base pointer to either the local or global array
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 neg_global: 95 neg_global:
96 ; Access one before the beginning of a global 96 ; Access one before the beginning of a global
97 call void @access(i32 0, i32 -1) 97 call void @access(i32 0, i32 -1)
98 br label %error 98 br label %error
99 error: 99 error:
100 call void @exit(i32 1) 100 call void @exit(i32 1)
101 unreachable 101 unreachable
102 } 102 }
103 103
104 ; CHECK: Illegal access of 1 bytes at 104 ; CHECK: Illegal access of 1 bytes at
OLDNEW
« no previous file with comments | « runtime/szrt_asan.c ('k') | tests_lit/asan_tests/realloc_shrink.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698