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

Side by Side Diff: test/Transforms/MinSFI/expand-allocas-globalvar-exists.ll

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 10 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 -minsfi-expand-allocas -S | FileCheck %s
2
3 target datalayout = "p:32:32:32"
4 target triple = "le32-unknown-nacl"
5
6 @__sfi_stack_ptr = external global i32
7
8 ; CHECK: @__sfi_stack_ptr1 = internal global i32
9
10 define i8* @test_correct_global_var_used() {
11 %ptr = alloca i8
12 ret i8* %ptr
13 }
14
15 ; CHECK-LABEL: define i8* @test_correct_global_var_used() {
16 ; CHECK-NEXT: %frame_top = load i32* @__sfi_stack_ptr1
17 ; CHECK-NEXT: %1 = sub i32 %frame_top, 1
18 ; CHECK-NEXT: %ptr = inttoptr i32 %1 to i8*
19 ; CHECK-NEXT: ret i8* %ptr
20 ; CHECK-NEXT: }
21
22 define i32 @_start_minsfi(i32 %args) {
23 ret i32 0
24 }
OLDNEW
« no previous file with comments | « test/Transforms/MinSFI/expand-allocas.ll ('k') | test/Transforms/MinSFI/expand-allocas-no-start.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698