1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2p1 < %s | FileCheck %s
3 ; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sme2 < %s | FileCheck %s
5 define i64 @test_svcntp_c8_vlx2(target("aarch64.svcount") %pn) nounwind {
6 ; CHECK-LABEL: test_svcntp_c8_vlx2:
8 ; CHECK-NEXT: cntp x0, pn0.b, vlx2
10 %res = call i64 @llvm.aarch64.sve.cntp.c8(target("aarch64.svcount") %pn, i32 2)
14 define i64 @test_svcntp_c8_vlx4(target("aarch64.svcount") %pn) nounwind {
15 ; CHECK-LABEL: test_svcntp_c8_vlx4:
17 ; CHECK-NEXT: cntp x0, pn0.b, vlx4
19 %res = call i64 @llvm.aarch64.sve.cntp.c8(target("aarch64.svcount") %pn, i32 4)
23 define i64 @test_svcntp_c16_vlx2(target("aarch64.svcount") %pn) nounwind {
24 ; CHECK-LABEL: test_svcntp_c16_vlx2:
26 ; CHECK-NEXT: cntp x0, pn0.h, vlx2
28 %res = call i64 @llvm.aarch64.sve.cntp.c16(target("aarch64.svcount") %pn, i32 2)
32 define i64 @test_svcntp_c16_vlx4(target("aarch64.svcount") %pn) nounwind {
33 ; CHECK-LABEL: test_svcntp_c16_vlx4:
35 ; CHECK-NEXT: cntp x0, pn0.h, vlx4
37 %res = call i64 @llvm.aarch64.sve.cntp.c16(target("aarch64.svcount") %pn, i32 4)
41 define i64 @test_svcntp_c32_vlx2(target("aarch64.svcount") %pn) nounwind {
42 ; CHECK-LABEL: test_svcntp_c32_vlx2:
44 ; CHECK-NEXT: cntp x0, pn0.s, vlx2
46 %res = call i64 @llvm.aarch64.sve.cntp.c32(target("aarch64.svcount") %pn, i32 2)
50 define i64 @test_svcntp_c32_vlx4(target("aarch64.svcount") %pn) nounwind {
51 ; CHECK-LABEL: test_svcntp_c32_vlx4:
53 ; CHECK-NEXT: cntp x0, pn0.s, vlx4
55 %res = call i64 @llvm.aarch64.sve.cntp.c32(target("aarch64.svcount") %pn, i32 4)
59 define i64 @test_svcntp_c64_vlx2(target("aarch64.svcount") %pn) nounwind {
60 ; CHECK-LABEL: test_svcntp_c64_vlx2:
62 ; CHECK-NEXT: cntp x0, pn0.d, vlx2
64 %res = call i64 @llvm.aarch64.sve.cntp.c64(target("aarch64.svcount") %pn, i32 2)
68 define i64 @test_svcntp_c64_vlx4(target("aarch64.svcount") %pn) nounwind {
69 ; CHECK-LABEL: test_svcntp_c64_vlx4:
71 ; CHECK-NEXT: cntp x0, pn0.d, vlx4
73 %res = call i64 @llvm.aarch64.sve.cntp.c64(target("aarch64.svcount") %pn, i32 4)
78 declare i64 @llvm.aarch64.sve.cntp.c8(target("aarch64.svcount"), i32)
79 declare i64 @llvm.aarch64.sve.cntp.c16(target("aarch64.svcount"), i32)
80 declare i64 @llvm.aarch64.sve.cntp.c32(target("aarch64.svcount"), i32)
81 declare i64 @llvm.aarch64.sve.cntp.c64(target("aarch64.svcount"), i32)