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.
19 lines
473 B
LLVM
19 lines
473 B
LLVM
; RUN: llc -mtriple=hexagon < %s | FileCheck %s
|
|
; CHECK: = memw{{.*}}circ
|
|
|
|
target triple = "hexagon"
|
|
|
|
@l = external global i32, align 4
|
|
|
|
; Function Attrs: nounwind optsize
|
|
define void @circ2() #0 {
|
|
entry:
|
|
store i32 0, ptr @l, align 4
|
|
%0 = tail call ptr @llvm.hexagon.circ.ldw(ptr undef, ptr undef, i32 150995968, i32 4)
|
|
ret void
|
|
}
|
|
|
|
declare ptr @llvm.hexagon.circ.ldw(ptr, ptr, i32, i32) #1
|
|
attributes #0 = { nounwind optsize }
|
|
attributes #1 = { argmemonly nounwind }
|