[llvm] 0645c4d - [AVR][test] Remove test for naked function containing a return.

Simon Wallis via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 9 01:07:11 PDT 2020


Author: Simon Wallis
Date: 2020-06-09T09:06:47+01:00
New Revision: 0645c4d34f1c755760aee4d15e2665be1ed7c2a4

URL: https://github.com/llvm/llvm-project/commit/0645c4d34f1c755760aee4d15e2665be1ed7c2a4
DIFF: https://github.com/llvm/llvm-project/commit/0645c4d34f1c755760aee4d15e2665be1ed7c2a4.diff

LOG: [AVR][test] Remove test for naked function containing a return.

Summary:
Remove an old test for an explicit return in a naked function from test/CodeGen/AVR/return.ll

clang no longer allows a C return in a naked function.

This test is causing failure of the patch https://reviews.llvm.org/D80715

Reviewers: llvm-commits, dylanmckay

Reviewed By: dylanmckay

Subscribers: Jim

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81099

Change-Id: Id218027e520247ae480b92e7801a660fbe0cf29b

Added: 
    

Modified: 
    llvm/test/CodeGen/AVR/return.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/AVR/return.ll b/llvm/test/CodeGen/AVR/return.ll
index 6d81faa6e8d4..70d281ea4c08 100644
--- a/llvm/test/CodeGen/AVR/return.ll
+++ b/llvm/test/CodeGen/AVR/return.ll
@@ -123,12 +123,6 @@ define i32 @return64_trunc(i32 %a, i32 %b, i32 %c, i64 %d) {
   ret i32 %result
 }
 
-define i32 @naked(i32 %x) naked {
-; CHECK-LABEL: naked:
-; CHECK-NOT: ret
-  ret i32 %x
-}
-
 define avr_intrcc void @interrupt_handler() {
 ; CHECK-LABEL: interrupt_handler:
 ; CHECK: reti


        


More information about the llvm-commits mailing list