; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve2 -asm-verbose=0 < %s 2>%t | FileCheck %s ; RUN: FileCheck --check-prefix=WARN --allow-empty %s <%t ; If this check fails please read test/CodeGen/AArch64/README for instructions on how to resolve it. ; WARN-NOT: warning ; ; MATCH ; define @match_i8( %pg, %a, %b) { ; CHECK-LABEL: match_i8: ; CHECK: match p0.b, p0/z, z0.b, z1.b ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.match.nxv16i8( %pg, %a, %b) ret %out } define @match_i16( %pg, %a, %b) { ; CHECK-LABEL: match_i16: ; CHECK: match p0.h, p0/z, z0.h, z1.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.match.nxv8i16( %pg, %a, %b) ret %out } ; ; NMATCH ; define @nmatch_i8( %pg, %a, %b) { ; CHECK-LABEL: nmatch_i8: ; CHECK: match p0.b, p0/z, z0.b, z1.b ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.nmatch.nxv16i8( %pg, %a, %b) ret %out } define @nmatch_i16( %pg, %a, %b) { ; CHECK-LABEL: nmatch_i16: ; CHECK: match p0.h, p0/z, z0.h, z1.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.nmatch.nxv8i16( %pg, %a, %b) ret %out } declare @llvm.aarch64.sve.match.nxv16i8(, , ) declare @llvm.aarch64.sve.match.nxv8i16(, , ) declare @llvm.aarch64.sve.nmatch.nxv16i8(, , ) declare @llvm.aarch64.sve.nmatch.nxv8i16(, , )