Similar to 806761a762
-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.
17 lines
316 B
LLVM
17 lines
316 B
LLVM
; RUN: llc -mtriple=hexagon < %s | FileCheck %s
|
|
; CHECK: f0
|
|
; CHECK-NOT: allocframe
|
|
; CHECK-NOT: memd(r29
|
|
; CHECK: jump f1
|
|
|
|
define void @f0(i32 %a0) #0 {
|
|
b0:
|
|
%v0 = add nsw i32 %a0, 3
|
|
%v1 = tail call i32 @f1(i32 %v0) #0
|
|
ret void
|
|
}
|
|
|
|
declare i32 @f1(...) #0
|
|
|
|
attributes #0 = { nounwind "target-cpu"="hexagonv5" }
|