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

Side by Side Diff: test/Transforms/NaCl/pnacl-eh-exception-info.ll

Issue 1151093004: Changes from 3.7 merge to files not in upstream (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 7 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
1 ; RUN: opt %s -pnacl-sjlj-eh -S | FileCheck %s 1 ; RUN: opt %s -pnacl-sjlj-eh -S | FileCheck %s
2 2
3 ; Example std::type_info objects. 3 ; Example std::type_info objects.
4 @exc_typeid1 = external global i8 4 @exc_typeid1 = external global i8
5 @exc_typeid2 = external global i8 5 @exc_typeid2 = external global i8
6 @exc_typeid3 = external global i8 6 @exc_typeid3 = external global i8
7 7
8 ; This must be declared for "-pnacl-sjlj-eh" to work. 8 ; This must be declared for "-pnacl-sjlj-eh" to work.
9 @__pnacl_eh_stack = external thread_local global i8* 9 @__pnacl_eh_stack = external thread_local global i8*
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 ; CHECK: define void @test_multiple_catch_clauses 71 ; CHECK: define void @test_multiple_catch_clauses
72 ; CHECK: store i32 3, i32* %exc_info_ptr 72 ; CHECK: store i32 3, i32* %exc_info_ptr
73 73
74 74
75 define void @test_empty_filter_clause() { 75 define void @test_empty_filter_clause() {
76 invoke void @external_func() to label %cont unwind label %lpad 76 invoke void @external_func() to label %cont unwind label %lpad
77 cont: 77 cont:
78 ret void 78 ret void
79 lpad: 79 lpad:
80 landingpad i32 personality i8* null 80 landingpad i32 personality i8* null
81 filter [0 x i8*] [] 81 filter [0 x i8*] zeroinitializer
82 ret void 82 ret void
83 } 83 }
84 ; CHECK: define void @test_empty_filter_clause 84 ; CHECK: define void @test_empty_filter_clause
85 ; CHECK: store i32 4, i32* %exc_info_ptr 85 ; CHECK: store i32 4, i32* %exc_info_ptr
86 86
87 87
88 define void @test_filter_clause() { 88 define void @test_filter_clause() {
89 invoke void @external_func() to label %cont unwind label %lpad 89 invoke void @external_func() to label %cont unwind label %lpad
90 cont: 90 cont:
91 ret void 91 ret void
(...skipping 26 matching lines...) Expand all
118 invoke void @external_func() to label %cont unwind label %lpad 118 invoke void @external_func() to label %cont unwind label %lpad
119 cont: 119 cont:
120 ret void 120 ret void
121 lpad: 121 lpad:
122 landingpad i32 personality i8* null 122 landingpad i32 personality i8* null
123 cleanup 123 cleanup
124 ret void 124 ret void
125 } 125 }
126 ; CHECK: define void @test_cleanup_clause 126 ; CHECK: define void @test_cleanup_clause
127 ; CHECK: store i32 7, i32* %exc_info_ptr 127 ; CHECK: store i32 7, i32* %exc_info_ptr
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698