-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reland "[ARM] push LR before __gnu_mcount_nc"
This relands r369147 with fixes to unit tests. https://reviews.llvm.org/D65019 llvm-svn: 369173
- Loading branch information
Showing
11 changed files
with
141 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
; RUN: llc -mtriple=armv7a-linux-gnueabihf -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK-ARM | ||
; RUN: llc -mtriple=armv7a-linux-gnueabihf -verify-machineinstrs -fast-isel %s -o - | FileCheck %s --check-prefix=CHECK-ARM-FAST-ISEL | ||
; RUN: llc -mtriple=armv7a-linux-gnueabihf -verify-machineinstrs -global-isel -global-isel-abort=2 %s -o - | FileCheck %s --check-prefix=CHECK-ARM-GLOBAL-ISEL | ||
; RUN: llc -mtriple=thumbv7a-linux-gnueabihf -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK-THUMB | ||
; RUN: llc -mtriple=thumbv7a-linux-gnueabihf -verify-machineinstrs -fast-isel %s -o - | FileCheck %s --check-prefix=CHECK-THUMB-FAST-ISEL | ||
; RUN: llc -mtriple=thumbv7a-linux-gnueabihf -verify-machineinstrs -global-isel -global-isel-abort=2 %s -o - | FileCheck %s --check-prefix=CHECK-THUMB-GLOBAL-ISEL | ||
|
||
define dso_local void @callee() #0 { | ||
; CHECK-ARM: stmdb sp!, {lr} | ||
; CHECK-ARM-NEXT: bl __gnu_mcount_nc | ||
; CHECK-ARM-FAST-ISEL: stmdb sp!, {lr} | ||
; CHECK-ARM-FAST-ISEL-NEXT: bl __gnu_mcount_nc | ||
; CHECK-ARM-GLOBAL-ISEL: stmdb sp!, {lr} | ||
; CHECK-ARM-GLOBAL-ISEL-NEXT: bl __gnu_mcount_nc | ||
; CHECK-THUMB: push {lr} | ||
; CHECK-THUMB-NEXT: bl __gnu_mcount_nc | ||
; CHECK-THUMB-FAST-ISEL: push {lr} | ||
; CHECK-THUMB-FAST-ISEL-NEXT: bl __gnu_mcount_nc | ||
; CHECK-THUMB-GLOBAL-ISEL: push {lr} | ||
; CHECK-THUMB-GLOBAL-ISEL-NEXT: bl __gnu_mcount_nc | ||
ret void | ||
} | ||
|
||
define dso_local void @caller() #0 { | ||
; CHECK-ARM: stmdb sp!, {lr} | ||
; CHECK-ARM-NEXT: bl __gnu_mcount_nc | ||
; CHECK-ARM-FAST-ISEL: stmdb sp!, {lr} | ||
; CHECK-ARM-FAST-ISEL-NEXT: bl __gnu_mcount_nc | ||
; CHECK-ARM-GLOBAL-ISEL: stmdb sp!, {lr} | ||
; CHECK-ARM-GLOBAL-ISEL-NEXT: bl __gnu_mcount_nc | ||
; CHECK-THUMB: push {lr} | ||
; CHECK-THUMB-NEXT: bl __gnu_mcount_nc | ||
; CHECK-THUMB-FAST-ISEL: push {lr} | ||
; CHECK-THUMB-FAST-ISEL-NEXT: bl __gnu_mcount_nc | ||
; CHECK-THUMB-GLOBAL-ISEL: push {lr} | ||
; CHECK-THUMB-GLOBAL-ISEL-NEXT: bl __gnu_mcount_nc | ||
call void @callee() | ||
ret void | ||
} | ||
|
||
attributes #0 = { nofree nounwind "instrument-function-entry-inlined"="llvm.arm.gnu.eabi.mcount" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters