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

Unified Diff: test/Transforms/NaCl/pnacl-abi-simplify-preopt.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/Transforms/NaCl/pnacl-abi-simplify-postopt.ll ('k') | test/Transforms/NaCl/pnacl-eh-exception-info.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/Transforms/NaCl/pnacl-abi-simplify-preopt.ll
diff --git a/test/Transforms/NaCl/pnacl-abi-simplify-preopt.ll b/test/Transforms/NaCl/pnacl-abi-simplify-preopt.ll
new file mode 100644
index 0000000000000000000000000000000000000000..e34c46d80c8abe3ba5abd27bd4f4d4d8a8791a9c
--- /dev/null
+++ b/test/Transforms/NaCl/pnacl-abi-simplify-preopt.ll
@@ -0,0 +1,50 @@
+; RUN: opt %s -pnacl-abi-simplify-preopt -S | FileCheck %s
+
+; "-pnacl-abi-simplify-preopt" runs various passes which are tested
+; thoroughly in other *.ll files. This file is a smoke test to check
+; that "-pnacl-abi-simplify-preopt" runs what it's supposed to run.
+
+declare void @ext_func()
+
+
+define void @invoke_func() {
+ invoke void @ext_func() to label %cont unwind label %lpad
+cont:
+ ret void
+lpad:
+ %lp = landingpad { i8*, i32 } personality i8* null cleanup
+ ret void
+}
+; CHECK-NOT: invoke void @ext_func()
+; CHECK-NOT: landingpad
+
+
+define void @varargs_func(...) {
+ ret void
+}
+; CHECK-NOT: @varargs_func(...)
+
+
+%MyStruct = type { i32, i32 }
+
+; Checks that ExpandVarArgs and ExpandStructRegs are applied in the
+; right order.
+define void @get_struct_from_varargs(i8* %va_list, %MyStruct* %dest) {
+ %val = va_arg i8* %va_list, %MyStruct
+ store %MyStruct %val, %MyStruct* %dest
+ ret void
+}
+; CHECK-NOT: va_arg
+
+
+@llvm.global_ctors = appending global [0 x { i32, void ()* }] zeroinitializer
+; CHECK-NOT: @llvm.global_ctors
+
+@tls_var = thread_local global i32 0
+; CHECK-NOT: thread_local
+
+@alias = alias i32* @tls_var
+; CHECK-NOT: @alias
+
+@weak_ref = extern_weak global i8*
+; CHECK-NOT: extern_weak
« no previous file with comments | « test/Transforms/NaCl/pnacl-abi-simplify-postopt.ll ('k') | test/Transforms/NaCl/pnacl-eh-exception-info.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698