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
337 B
LLVM
17 lines
337 B
LLVM
; RUN: llc -mtriple=hexagon -disable-hsdr < %s | FileCheck %s
|
|
; CHECK-DAG: r0 = memw
|
|
; CHECK-DAG: r1 = memw
|
|
|
|
%struct.small = type { i32, i32 }
|
|
|
|
@s1 = common global %struct.small zeroinitializer, align 4
|
|
|
|
define void @foo() nounwind {
|
|
entry:
|
|
%0 = load i64, ptr @s1, align 4
|
|
call void @bar(i64 %0)
|
|
ret void
|
|
}
|
|
|
|
declare void @bar(i64)
|