llvm-project/llvm/test/CodeGen/Hexagon/inline-asm-error.ll
Fangrui Song 2208c97c1b [Hexagon,test] Change llc -march= to -mtriple=
Similar to 806761a7629df268c8aed49657aeccffa6bca449

-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.
2024-12-15 10:20:22 -08:00

16 lines
433 B
LLVM

; RUN: not llc -mtriple=hexagon < %s 2>&1 | FileCheck %s
; CHECK: error: Don't know how to handle indirect register inputs yet for constraint 'r'
%s.0 = type { ptr, i32, %s.1 }
%s.1 = type { %s.2 }
%s.2 = type { i32, ptr }
define void @f0(ptr byval(%s.0) align 8 %a0) {
b0:
call void asm sideeffect ".weak OFFSET_0;jump ##(OFFSET_0 + 0x14c15f0)", "*r"(ptr elementtype(%s.0) nonnull %a0), !srcloc !0
ret void
}
!0 = !{i32 10}