bolt/deps/llvm-18.1.8/llvm/test/CodeGen/LoongArch/cpus.ll

21 lines
575 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
;; This tests that llc accepts all valid LoongArch CPUs.
;; Note the 'generic' names have been tested in cpu-name-generic.ll.
; RUN: llc < %s --mtriple=loongarch64 --mcpu=loongarch64 2>&1 | FileCheck %s
; RUN: llc < %s --mtriple=loongarch64 --mcpu=la464 2>&1 | FileCheck %s
; RUN: llc < %s --mtriple=loongarch64 2>&1 | FileCheck %s
; CHECK-NOT: {{.*}} is not a recognized processor for this target
define void @f() {
ret void
}
define void @tune_cpu_loongarch64() "tune-cpu"="loongarch64" {
ret void
}
define void @tune_cpu_la464() "tune-cpu"="la464" {
ret void
}