
When Mips process emitStartOfAsmFile and updateABIInfo, it did not know the real value of IsSoftFloat and STI.useSoftFloat(). And when inline asm instruction was empty, Mips did not process asm parser, so it would not do TS.updateABIInfo(STI) again and at this time the value of IsSoftFloat is correct. Fix #135283.
13 lines
426 B
LLVM
13 lines
426 B
LLVM
; RUN: llc -filetype=obj -mtriple mipsel-unknown-linux -mcpu=mips32 %s -o tmp.o
|
|
; RUN: llvm-readobj -A tmp.o | FileCheck %s -check-prefix=OBJ
|
|
; RUN: llc -filetype=asm -mtriple mipsel-unknown-linux -mcpu=mips32 %s -o - | \
|
|
; RUN: FileCheck %s -check-prefix=ASM
|
|
|
|
; OBJ: FP ABI: Soft float
|
|
; ASM: .module softfloat
|
|
|
|
define dso_local void @asm_is_null() "use-soft-float"="true" {
|
|
call void asm sideeffect "", ""()
|
|
ret void
|
|
}
|