1;; This tests that llc accepts all valid LoongArch CPUs. 2;; Note the 'generic' names have been tested in cpu-name-generic.ll. 3 4; RUN: llc < %s --mtriple=loongarch64 -mattr=+d --mcpu=loongarch64 2>&1 | FileCheck %s 5; RUN: llc < %s --mtriple=loongarch64 -mattr=+d --mcpu=la464 2>&1 | FileCheck %s 6; RUN: llc < %s --mtriple=loongarch64 -mattr=+d --mcpu=la664 2>&1 | FileCheck %s 7; RUN: llc < %s --mtriple=loongarch64 -mattr=+d 2>&1 | FileCheck %s 8 9; CHECK-NOT: {{.*}} is not a recognized processor for this target 10 11define void @f() { 12 ret void 13} 14 15define void @tune_cpu_loongarch64() "tune-cpu"="loongarch64" { 16 ret void 17} 18 19define void @tune_cpu_la464() "tune-cpu"="la464" { 20 ret void 21} 22 23define void @tune_cpu_la664() "tune-cpu"="la664" { 24 ret void 25} 26