aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/LoongArch/cpus.ll
blob: be3e05e394ff9a90954e1a3a3ac41eeeef2f81d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
;; 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 -mattr=+d --mcpu=loongarch64 2>&1 | FileCheck %s
; RUN: llc < %s --mtriple=loongarch64 -mattr=+d --mcpu=la464 2>&1 | FileCheck %s
; RUN: llc < %s --mtriple=loongarch64 -mattr=+d --mcpu=la664 2>&1 | FileCheck %s
; RUN: llc < %s --mtriple=loongarch64 -mattr=+d 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
}

define void @tune_cpu_la664() "tune-cpu"="la664" {
  ret void
}