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

Unified Diff: test/Transforms/NaCl/pnacl-abi-simplify-postopt.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.ll ('k') | test/Transforms/NaCl/pnacl-abi-simplify-preopt.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-postopt.ll
diff --git a/test/Transforms/NaCl/pnacl-abi-simplify-postopt.ll b/test/Transforms/NaCl/pnacl-abi-simplify-postopt.ll
new file mode 100644
index 0000000000000000000000000000000000000000..74b7f8cf9b0ec6f98a3865a82a60de5e298567a2
--- /dev/null
+++ b/test/Transforms/NaCl/pnacl-abi-simplify-postopt.ll
@@ -0,0 +1,23 @@
+; RUN: opt %s -pnacl-abi-simplify-postopt -S | FileCheck %s
+; RUN: opt %s -pnacl-abi-simplify-postopt -S \
+; RUN: | FileCheck %s -check-prefix=CLEANUP
+
+; "-pnacl-abi-simplify-postopt" runs various passes which are tested
+; thoroughly in other *.ll files. This file is a smoke test to check
+; that the passes work together OK.
+
+target datalayout = "p:32:32:32"
+
+@var = global i32 256
+; CHECK: @var = global [4 x i8]
+
+define i16 @read_var() {
+ %val = load i16* bitcast (i32* @var to i16*)
+ ret i16 %val
+}
+; CHECK: = bitcast [4 x i8]* @var
+; CHECK-NEXT: load i16*
+
+; Check that dead prototypes are successfully removed.
+declare void @unused_prototype(i8*)
+; CLEANUP-NOT: unused_prototype
« no previous file with comments | « test/Transforms/NaCl/pnacl-abi-simplify.ll ('k') | test/Transforms/NaCl/pnacl-abi-simplify-preopt.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698