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

Side by Side Diff: test/Transforms/NaCl/allocate-data-segment.ll

Issue 29743003: Add passes for applying SFI sandboxing at the LLVM IR level Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Retry upload Created 6 years, 6 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 ; RUN: opt %s -allocate-data-segment -S | FileCheck %s
2 ; RUN: opt %s -allocate-data-segment -S | FileCheck %s -check-prefix=CLEAN
3
4 @var1 = global i64 1234
5 @var2 = global i32 56
6
7 @reloc = global i64* @var1
8 @reloc_end = global i32* getelementptr (i32* @var2, i32 1)
9
10
11 ; CHECK: @__sfi_data_segment = constant %data_template { i64 1234, i32 56, i64* getelementptr (%data_template* inttoptr (i32 65536 to %data_template*), i32 0, i 32 0), i32* getelementptr inbounds (i32* getelementptr (%data_template* inttoptr (i32 65536 to %data_template*), i32 0, i32 1), i32 1) }
12
13 ; CHECK: @__sfi_data_segment_size = constant i32 32
14
15 ; CLEAN-NOT: @var
16
17
18 define i32 @ref_to_var() {
19 %val = load i32* @var2
20 ret i32 %val
21 }
22 ; CHECK: define i32 @ref_to_var() {
23 ; CHECK-NEXT: %val = load i32* getelementptr (%data_template* inttoptr (i32 6553 6 to %data_template*), i32 0, i32 1)
OLDNEW
« no previous file with comments | « lib/Transforms/Scalar/LowerAtomic.cpp ('k') | test/Transforms/NaCl/allocate-data-segment-size.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698