
The issue is uncovered by #47698: for IR files without a target triple, -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, e.g. riscv64-apple-darwin. 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.
14 lines
374 B
LLVM
14 lines
374 B
LLVM
; RUN: llc -mtriple=mips < %s | FileCheck %s
|
|
|
|
define float @F(float %a) nounwind {
|
|
; CHECK: .rodata.cst4,"aM",@progbits
|
|
entry:
|
|
; CHECK: ($CPI0_{{[0-1]}})
|
|
; CHECK: ($CPI0_{{[0,1]}})
|
|
; CHECK: ($CPI0_{{[0,1]}})
|
|
; CHECK: ($CPI0_{{[0,1]}})
|
|
fadd float %a, 0x4011333340000000 ; <float>:0 [#uses=1]
|
|
fadd float %0, 0x4010666660000000 ; <float>:1 [#uses=1]
|
|
ret float %1
|
|
}
|