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.
15 lines
424 B
LLVM
15 lines
424 B
LLVM
; RUN: llc -mtriple=hexagon < %s | FileCheck %s
|
|
; CHECK: r[[REG0:[0-9]+]] = usr
|
|
; CHECK: [[REG0]] = insert(r{{[0-9]+}},#1,#16)
|
|
|
|
target triple = "hexagon"
|
|
|
|
define hidden void @fred() #0 {
|
|
entry:
|
|
%0 = call { i32, i32 } asm sideeffect " $0 = usr\0A $1 = $2\0A $0 = insert($1, #1, #16)\0Ausr = $0 \0A", "=&r,=&r,r"(i1 undef) #1
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { nounwind "target-cpu"="hexagonv60" }
|
|
attributes #1 = { nounwind }
|