diff options
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/Transforms/FunctionAttrs/2009-01-04-Annotate.ll | 21 | ||||
-rw-r--r-- | llvm/test/Transforms/InferFunctionAttrs/annotate.ll (renamed from llvm/test/Transforms/FunctionAttrs/annotate-1.ll) | 5 | ||||
-rw-r--r-- | llvm/test/Transforms/InstCombine/strto-1.ll | 2 |
3 files changed, 4 insertions, 24 deletions
diff --git a/llvm/test/Transforms/FunctionAttrs/2009-01-04-Annotate.ll b/llvm/test/Transforms/FunctionAttrs/2009-01-04-Annotate.ll deleted file mode 100644 index fa06cc718a9..00000000000 --- a/llvm/test/Transforms/FunctionAttrs/2009-01-04-Annotate.ll +++ /dev/null @@ -1,21 +0,0 @@ -; RUN: opt < %s -functionattrs -S | FileCheck %s - -; CHECK: declare noalias i8* @fopen(i8* nocapture readonly, i8* nocapture readonly) #0 -declare i8* @fopen(i8*, i8*) - -; CHECK: declare i8 @strlen(i8* nocapture) #1 -declare i8 @strlen(i8*) - -; CHECK: declare noalias i32* @realloc(i32* nocapture, i32) #0 -declare i32* @realloc(i32*, i32) - -; Test deliberately wrong declaration -declare i32 @strcpy(...) - -; CHECK-NOT: strcpy{{.*}}noalias -; CHECK-NOT: strcpy{{.*}}nocapture -; CHECK-NOT: strcpy{{.*}}nounwind -; CHECK-NOT: strcpy{{.*}}readonly - -; CHECK: attributes #0 = { nounwind } -; CHECK: attributes #1 = { nounwind readonly } diff --git a/llvm/test/Transforms/FunctionAttrs/annotate-1.ll b/llvm/test/Transforms/InferFunctionAttrs/annotate.ll index 9fba7a9f288..963f484eb55 100644 --- a/llvm/test/Transforms/FunctionAttrs/annotate-1.ll +++ b/llvm/test/Transforms/InferFunctionAttrs/annotate.ll @@ -1,5 +1,6 @@ -; RUN: opt < %s -functionattrs -S | FileCheck %s -; RUN: opt < %s -mtriple=x86_64-apple-macosx10.8.0 -functionattrs -S | FileCheck -check-prefix=CHECK-POSIX %s +; RUN: opt < %s -inferattrs -S | FileCheck %s +; RUN: opt < %s -passes=inferattrs -S | FileCheck %s +; RUN: opt < %s -mtriple=x86_64-apple-macosx10.8.0 -inferattrs -S | FileCheck -check-prefix=CHECK-POSIX %s declare i8* @fopen(i8*, i8*) ; CHECK: declare noalias i8* @fopen(i8* nocapture readonly, i8* nocapture readonly) [[G0:#[0-9]]] diff --git a/llvm/test/Transforms/InstCombine/strto-1.ll b/llvm/test/Transforms/InstCombine/strto-1.ll index fc35dddcae5..96f36e8d89c 100644 --- a/llvm/test/Transforms/InstCombine/strto-1.ll +++ b/llvm/test/Transforms/InstCombine/strto-1.ll @@ -1,6 +1,6 @@ ; Test that the strto* library call simplifiers works correctly. ; -; RUN: opt < %s -instcombine -functionattrs -S | FileCheck %s +; RUN: opt < %s -instcombine -inferattrs -S | FileCheck %s target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128" |