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

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

Issue 2145063003: Updates in preparation of wrapper script (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: minor fix to 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
« no previous file with comments | « src/IceASanInstrumentation.cpp ('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
(Empty)
1 ; Test that calls made through pointers are unchanged by ASan
2
3 ; REQUIRES: allow_dump
4
5 ; RUN: %p2i -i %s --args -verbose=inst -threads=0 -fsanitize-address \
6 ; RUN: | FileCheck --check-prefix=DUMP %s
7
8 define internal i32 @caller(i32 %callee_addr, i32 %arg) {
9 %callee = inttoptr i32 %callee_addr to i32 (i32)*
10 %result = call i32 %callee(i32 %arg)
11 ret i32 %result
12 }
13
14 ; DUMP-LABEL: ================ Initial CFG ================
15 ; DUMP-NEXT: define internal i32 @caller(i32 %callee_addr, i32 %arg) {
16 ; DUMP-NEXT: __0:
17 ; DUMP-NEXT: %result = call i32 %callee_addr(i32 %arg)
18 ; DUMP-NEXT: ret i32 %result
19 ; DUMP-NEXT: }
20 ; DUMP-LABEL: ================ Instrumented CFG ================
21 ; DUMP-NEXT: define internal i32 @caller(i32 %callee_addr, i32 %arg) {
22 ; DUMP-NEXT: __0:
23 ; DUMP-NEXT: %result = call i32 %callee_addr(i32 %arg)
24 ; DUMP-NEXT: ret i32 %result
25 ; DUMP-NEXT: }
OLDNEW
« no previous file with comments | « src/IceASanInstrumentation.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698