summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/GlobalOpt/naked_functions.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/GlobalOpt/naked_functions.ll')
-rw-r--r--llvm/test/Transforms/GlobalOpt/naked_functions.ll23
1 files changed, 0 insertions, 23 deletions
diff --git a/llvm/test/Transforms/GlobalOpt/naked_functions.ll b/llvm/test/Transforms/GlobalOpt/naked_functions.ll
deleted file mode 100644
index 80c3aa8c3b2..00000000000
--- a/llvm/test/Transforms/GlobalOpt/naked_functions.ll
+++ /dev/null
@@ -1,23 +0,0 @@
-; RUN: opt < %s -globalopt -S | FileCheck %s
-
-; Check that naked functions don't get marked with fast calling conventions
-
-@g = common global i32 0, align 4
-
-define i32 @bar() {
-entry:
- %call = call i32 @foo(i32* @g)
-; CHECK: %call = call i32 @foo(i32* @g)
- ret i32 %call
-}
-
-define internal i32 @foo(i32*) #0 {
-entry:
- %retval = alloca i32, align 4
- call void asm sideeffect "ldr r0, [r0] \0Abx lr \0A", ""()
- unreachable
-}
-
-; CHECK: define internal i32 @foo(i32*)
-
-attributes #0 = { naked }
OpenPOWER on IntegriCloud