
Similar to 806761a7629df268c8aed49657aeccffa6bca449 -mtriple= specifies the full target triple while -march= merely sets the architecture part of the default target triple, leaving a target triple which may not make sense. Therefore, -march= is error-prone and not recommended for tests without a target triple. The issue has been benign as we recognize $unknown-apple-darwin as ELF instead of rejecting it outrightly.
26 lines
528 B
LLVM
26 lines
528 B
LLVM
; RUN: llc -mtriple=hexagon --verify-machineinstrs < %s | FileCheck %s
|
|
|
|
; Generate code that is guaranteed to crash. At the moment, it's a
|
|
; misaligned load.
|
|
; CHECK-LABEL: f0
|
|
; CHECK: memd(##3134984174)
|
|
|
|
target triple = "hexagon"
|
|
|
|
define i32 @f0() noreturn nounwind {
|
|
entry:
|
|
tail call void @llvm.trap()
|
|
unreachable
|
|
}
|
|
|
|
; CHECK-LABEL: f1
|
|
; CHECK: brkpt
|
|
define i32 @f1() noreturn nounwind {
|
|
entry:
|
|
tail call void @llvm.debugtrap()
|
|
unreachable
|
|
}
|
|
|
|
declare void @llvm.trap() nounwind
|
|
declare void @llvm.debugtrap() nounwind
|