llvm-project/llvm/test/CodeGen/M68k/m6888x-features.ll
Min-Yih Hsu aee4399f58 [M68k] Add subtarget features for M68881/2 FPU
Note that technically both M68000/010 can use M68881, despite the fact
that usually only M68020 and newer ISAs are equipped with M68881/2.
M68040 and newer processors have builtin M68882.

Differential Revision: https://reviews.llvm.org/D147479
2023-04-06 11:09:23 -07:00

11 lines
317 B
LLVM

; RUN: llc -mtriple=m68k -mattr="+isa-68881" %s -o - 2>&1 | FileCheck %s
; RUN: llc -mtriple=m68k -mattr="+isa-68882" %s -o - 2>&1 | FileCheck %s
define dso_local i32 @f() {
entry:
ret i32 0
}
; Make sure that all of the features listed are recognized.
; CHECK-NOT: is not a recognized feature for this target