diff options
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/Transforms/ForcedFunctionAttrs/forced.ll | 12 | ||||
-rw-r--r-- | llvm/test/Transforms/FunctionAttrs/forced.ll | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/llvm/test/Transforms/ForcedFunctionAttrs/forced.ll b/llvm/test/Transforms/ForcedFunctionAttrs/forced.ll new file mode 100644 index 00000000000..a41e9c0efbe --- /dev/null +++ b/llvm/test/Transforms/ForcedFunctionAttrs/forced.ll @@ -0,0 +1,12 @@ +; RUN: opt < %s -S -forceattrs | FileCheck %s --check-prefix=CHECK-CONTROL +; RUN: opt < %s -S -forceattrs -force-attribute foo:noinline | FileCheck %s --check-prefix=CHECK-FOO +; RUN: opt < %s -S -passes=forceattrs -force-attribute foo:noinline | FileCheck %s --check-prefix=CHECK-FOO + +; CHECK-CONTROL: define void @foo() { +; CHECK-FOO: define void @foo() #0 { +define void @foo() { + ret void +} + + +; CHECK-FOO: attributes #0 = { noinline } diff --git a/llvm/test/Transforms/FunctionAttrs/forced.ll b/llvm/test/Transforms/FunctionAttrs/forced.ll deleted file mode 100644 index d0bdb155a20..00000000000 --- a/llvm/test/Transforms/FunctionAttrs/forced.ll +++ /dev/null @@ -1,12 +0,0 @@ -; RUN: opt < %s -S -functionattrs | FileCheck %s --check-prefix=CHECK-CONTROL -; RUN: opt < %s -S -functionattrs -force-attribute foo:noinline | FileCheck %s --check-prefix=CHECK-FOO - -; CHECK-CONTROL: define void @foo() #0 { -; CHECK-FOO: define void @foo() #0 { -define void @foo() { - ret void -} - - -; CHECK-CONTROL: attributes #0 = { norecurse readnone } -; CHECK-FOO: attributes #0 = { noinline norecurse readnone } |