mirror of
https://github.com/RPCS3/llvm.git
synced 2026-08-26 18:26:51 -04:00
b950d1f705
On Windows ARM64, intrinsic __debugbreak is compiled into brk #0xF000 which is mapped to llvm.debugtrap in Clang. Instruction brk #F000 is the defined break point instruction on ARM64 which is recognized by Windows debugger and exception handling code, so llvm.debugtrap should map to it instead of redirecting to llvm.trap (brk #1) as the default implementation. Differential Revision: https://reviews.llvm.org/D63635 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364115 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
384 B
LLVM
14 lines
384 B
LLVM
; RUN: llc -mtriple=aarch64-windows %s -o -| FileCheck %s
|
|
; RUN: llc -mtriple=aarch64-windows -fast-isel %s -o - | FileCheck %s
|
|
; RUN: llc -mtriple=aarch64-windows -global-isel %s -o - | FileCheck %s
|
|
|
|
; CHECK-LABEL: test1:
|
|
; CHECK: brk #0xf000
|
|
define void @test1() noreturn nounwind {
|
|
entry:
|
|
tail call void @llvm.debugtrap( )
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.debugtrap() nounwind
|