Similar to 806761a762
-mtriple= specifies the full target triple while -march= merely sets the
architecture part of the default target triple (e.g. Windows, macOS),
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 sparc*-apple-darwin as ELF instead
of rejecting it outrightly.
22 lines
386 B
LLVM
22 lines
386 B
LLVM
; Test to make sure that the 'private' is used correctly.
|
|
;
|
|
; RUN: llc < %s -mtriple=sparc | FileCheck %s
|
|
|
|
define private void @foo() {
|
|
ret void
|
|
}
|
|
; CHECK: [[FOO:\..*foo]]:
|
|
|
|
@baz = private global i32 4
|
|
|
|
define i32 @bar() {
|
|
call void @foo()
|
|
%1 = load i32, ptr @baz, align 4
|
|
ret i32 %1
|
|
}
|
|
|
|
; CHECK: call [[FOO]]
|
|
; CHECK: ld {{.+}}[[BAZ:\..*baz]]
|
|
|
|
; CHECK: [[BAZ]]
|