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.
18 lines
398 B
LLVM
18 lines
398 B
LLVM
; XFAIL: *
|
|
; RUN: llc -mtriple=hexagon < %s | FileCheck %s
|
|
; CHECK: r[[T0:[0-9]+]] = CONST32(#s2)
|
|
; CHECK: memw(r29+#0) = r{{.}}
|
|
; CHECK: memw(r29+#8) = r{{.}}
|
|
|
|
%struct.large = type { i64, i64 }
|
|
|
|
@s2 = common global %struct.large zeroinitializer, align 8
|
|
|
|
define void @foo() nounwind {
|
|
entry:
|
|
call void @bar(ptr byval(%struct.large) @s2)
|
|
ret void
|
|
}
|
|
|
|
declare void @bar(ptr byval(%struct.large))
|