summaryrefslogtreecommitdiff
path: root/test/Other
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-01-13 05:16:45 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-01-13 05:16:45 +0000
commit085c07f4ed04c075173d8dfb9aa0f258c933b898 (patch)
tree3cd728a948f65d29070a535265118c7ba3eb0553 /test/Other
parent4a76032da63f0c9006336d9b9ab1074cf657b2c3 (diff)
downloadllvm-085c07f4ed04c075173d8dfb9aa0f258c933b898.tar.gz
llvm-085c07f4ed04c075173d8dfb9aa0f258c933b898.tar.bz2
llvm-085c07f4ed04c075173d8dfb9aa0f258c933b898.tar.xz
[PM] Wire up support for printing assembly output from the opt command.
This lets us round-trip IR in the expected manner with the opt tool. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199075 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Other')
-rw-r--r--test/Other/new-pass-manager.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Other/new-pass-manager.ll b/test/Other/new-pass-manager.ll
index 48b97624b8..d7cfb5ec7a 100644
--- a/test/Other/new-pass-manager.ll
+++ b/test/Other/new-pass-manager.ll
@@ -23,6 +23,12 @@
; CHECK-FUNCTION-PRINT: Finished function pass manager
; CHECK-FUNCTION-PRINT: Finished module pass manager
+; RUN: opt -S -o - -passes='no-op-module,no-op-module' %s \
+; RUN: | FileCheck %s --check-prefix=CHECK-NOOP
+; CHECK-NOOP: define void @foo() {
+; CHECK-NOOP: ret void
+; CHECK-NOOP: }
+
define void @foo() {
ret void
}