
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.
22 lines
478 B
LLVM
22 lines
478 B
LLVM
; RUN: llc -O0 -mtriple=hexagon < %s | FileCheck %s
|
|
; CHECK: r[[AP:[0-9]+]] = and(r30,#-32)
|
|
; CHECK: sub(r29,r[[SP:[0-9]+]])
|
|
; CHECK: r29 = r[[SP]]
|
|
; CHECK: r1 = r[[AP]]
|
|
; CHECK: r1 = add(r1,#-32)
|
|
|
|
target triple = "hexagon-unknown-unknown"
|
|
|
|
; Function Attrs: nounwind uwtable
|
|
define void @foo(i32 %n) #0 {
|
|
entry:
|
|
%x = alloca i32, i32 %n
|
|
%y = alloca i32, align 32
|
|
call void @bar(ptr %x, ptr %y)
|
|
ret void
|
|
}
|
|
|
|
declare void @bar(ptr, ptr %y) #0
|
|
|
|
attributes #0 = { nounwind }
|