diff options
author | dim <dim@FreeBSD.org> | 2012-08-15 19:34:23 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-08-15 19:34:23 +0000 |
commit | 721c201bd55ffb73cb2ba8d39e0570fa38c44e15 (patch) | |
tree | eacfc83d988e4b9d11114387ae7dc41243f2a363 /test/Other | |
parent | 2b2816e083a455f7a656ae88b0fd059d1688bb36 (diff) | |
download | FreeBSD-src-721c201bd55ffb73cb2ba8d39e0570fa38c44e15.zip FreeBSD-src-721c201bd55ffb73cb2ba8d39e0570fa38c44e15.tar.gz |
Vendor import of llvm trunk r161861:
http://llvm.org/svn/llvm-project/llvm/trunk@161861
Diffstat (limited to 'test/Other')
-rw-r--r-- | test/Other/2003-02-19-LoopInfoNestingBug.ll | 2 | ||||
-rw-r--r-- | test/Other/2008-10-15-MissingSpace.ll | 2 | ||||
-rw-r--r-- | test/Other/close-stderr.ll | 6 | ||||
-rw-r--r-- | test/Other/constant-fold-gep.ll | 6 | ||||
-rw-r--r-- | test/Other/invalid-commandline-option.ll | 2 | ||||
-rw-r--r-- | test/Other/lint.ll | 2 | ||||
-rw-r--r-- | test/Other/optimize-options.ll | 8 |
7 files changed, 17 insertions, 11 deletions
diff --git a/test/Other/2003-02-19-LoopInfoNestingBug.ll b/test/Other/2003-02-19-LoopInfoNestingBug.ll index 13f8351..b807c44 100644 --- a/test/Other/2003-02-19-LoopInfoNestingBug.ll +++ b/test/Other/2003-02-19-LoopInfoNestingBug.ll @@ -3,7 +3,7 @@ ; and instead nests it just inside loop "Top" ; ; RUN: opt < %s -analyze -loops | \ -; RUN: grep { Loop at depth 3 containing: %Inner<header><latch><exiting>} +; RUN: grep " Loop at depth 3 containing: %Inner<header><latch><exiting>" ; define void @test() { br label %Top diff --git a/test/Other/2008-10-15-MissingSpace.ll b/test/Other/2008-10-15-MissingSpace.ll index d16ea72..cac696e 100644 --- a/test/Other/2008-10-15-MissingSpace.ll +++ b/test/Other/2008-10-15-MissingSpace.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llvm-dis | not grep {void@} +; RUN: llvm-as < %s | llvm-dis | not grep "void@" ; PR2894 declare void @g() define void @f() { diff --git a/test/Other/close-stderr.ll b/test/Other/close-stderr.ll index 40a01cc..1d207c7 100644 --- a/test/Other/close-stderr.ll +++ b/test/Other/close-stderr.ll @@ -1,7 +1,5 @@ -; RUN: sh -c "\ -; RUN: opt --reject-this-option 2>&-; echo \$?; \ -; RUN: opt -o /dev/null /dev/null 2>&-; echo \$?; \ -; RUN: " | FileCheck %s +; RUN: sh -c 'opt --reject-this-option 2>&-; echo $?; opt -o /dev/null /dev/null 2>&-; echo $?;' \ +; RUN: | FileCheck %s ; CHECK: {{^1$}} ; CHECK: {{^0$}} ; XFAIL: vg_leak diff --git a/test/Other/constant-fold-gep.ll b/test/Other/constant-fold-gep.ll index d28c178..eafb16e 100644 --- a/test/Other/constant-fold-gep.ll +++ b/test/Other/constant-fold-gep.ll @@ -263,10 +263,10 @@ define i1* @hoo1() nounwind { ; OPT: ret i64 ptrtoint (double* getelementptr ({ i1, double }* null, i64 0, i32 1) to i64) ; OPT: } ; OPT: define i64 @fc() nounwind { -; OPT: ret i64 mul nuw (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 2) +; OPT: ret i64 mul (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 2) ; OPT: } ; OPT: define i64 @fd() nounwind { -; OPT: ret i64 mul nuw (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 11) +; OPT: ret i64 mul (i64 ptrtoint (double* getelementptr (double* null, i32 1) to i64), i64 11) ; OPT: } ; OPT: define i64 @fe() nounwind { ; OPT: ret i64 ptrtoint (double* getelementptr ({ double, float, double, double }* null, i64 0, i32 2) to i64) @@ -433,7 +433,7 @@ define i64* @fO() nounwind { ; PLAIN: ret i32* %t ; PLAIN: } ; OPT: define i32* @fZ() nounwind { -; OPT: ret i32* getelementptr inbounds (i32* getelementptr inbounds ([3 x { i32, i32 }]* @ext, i64 0, i64 1, i32 0), i64 1) +; OPT: ret i32* getelementptr (i32* getelementptr inbounds ([3 x { i32, i32 }]* @ext, i64 0, i64 1, i32 0), i64 1) ; OPT: } ; TO: define i32* @fZ() nounwind { ; TO: ret i32* getelementptr inbounds ([3 x { i32, i32 }]* @ext, i64 0, i64 1, i32 1) diff --git a/test/Other/invalid-commandline-option.ll b/test/Other/invalid-commandline-option.ll index 60840fa..583d449 100644 --- a/test/Other/invalid-commandline-option.ll +++ b/test/Other/invalid-commandline-option.ll @@ -1,3 +1,3 @@ -; RUN: not opt --foo |& grep {Unknown command line argument} +; RUN: not opt --foo 2>&1 | grep "Unknown command line argument" ; there is no --foo diff --git a/test/Other/lint.ll b/test/Other/lint.ll index ca2b1a3..c84f56f 100644 --- a/test/Other/lint.ll +++ b/test/Other/lint.ll @@ -1,4 +1,4 @@ -; RUN: opt -basicaa -lint -disable-output < %s |& FileCheck %s +; RUN: opt -basicaa -lint -disable-output < %s 2>&1 | FileCheck %s target datalayout = "e-p:64:64:64" declare fastcc void @bar() diff --git a/test/Other/optimize-options.ll b/test/Other/optimize-options.ll new file mode 100644 index 0000000..888a78f --- /dev/null +++ b/test/Other/optimize-options.ll @@ -0,0 +1,8 @@ +;RUN: opt -S -O1 -debug-pass=Arguments 2>&1 | FileCheck %s +;RUN: opt -S -O2 -debug-pass=Arguments 2>&1 | FileCheck %s +;RUN: opt -S -Os -debug-pass=Arguments 2>&1 | FileCheck %s +;RUN: opt -S -Oz -debug-pass=Arguments 2>&1 | FileCheck %s +;RUN: opt -S -O3 -debug-pass=Arguments 2>&1 | FileCheck %s + +; Just check that we get a non-empty set of passes for each -O opton. +;CHECK: Pass Arguments: {{.*}} -print-module |