1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sme -verify-machineinstrs < %s | FileCheck %s
4 define i64 @sme_cntsb() {
5 ; CHECK-LABEL: sme_cntsb:
7 ; CHECK-NEXT: rdsvl x0, #1
9 %v = call i64 @llvm.aarch64.sme.cntsb()
13 define i64 @sme_cntsh() {
14 ; CHECK-LABEL: sme_cntsh:
16 ; CHECK-NEXT: rdsvl x8, #1
17 ; CHECK-NEXT: lsr x0, x8, #1
19 %v = call i64 @llvm.aarch64.sme.cntsh()
23 define i64 @sme_cntsw() {
24 ; CHECK-LABEL: sme_cntsw:
26 ; CHECK-NEXT: rdsvl x8, #1
27 ; CHECK-NEXT: lsr x0, x8, #2
29 %v = call i64 @llvm.aarch64.sme.cntsw()
33 define i64 @sme_cntsd() {
34 ; CHECK-LABEL: sme_cntsd:
36 ; CHECK-NEXT: rdsvl x8, #1
37 ; CHECK-NEXT: lsr x0, x8, #3
39 %v = call i64 @llvm.aarch64.sme.cntsd()
43 declare i64 @llvm.aarch64.sme.cntsb()
44 declare i64 @llvm.aarch64.sme.cntsh()
45 declare i64 @llvm.aarch64.sme.cntsw()
46 declare i64 @llvm.aarch64.sme.cntsd()