; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve < %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 ; ; CNOT ; define @cnot_i8( %a, %pg, %b) { ; CHECK-LABEL: cnot_i8: ; CHECK: cnot z0.b, p0/m, z1.b ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.cnot.nxv16i8( %a, %pg, %b) ret %out } define @cnot_i16( %a, %pg, %b) { ; CHECK-LABEL: cnot_i16: ; CHECK: cnot z0.h, p0/m, z1.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.cnot.nxv8i16( %a, %pg, %b) ret %out } define @cnot_i32( %a, %pg, %b) { ; CHECK-LABEL: cnot_i32: ; CHECK: cnot z0.s, p0/m, z1.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.cnot.nxv4i32( %a, %pg, %b) ret %out } define @cnot_i64( %a, %pg, %b) { ; CHECK-LABEL: cnot_i64: ; CHECK: cnot z0.d, p0/m, z1.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.cnot.nxv2i64( %a, %pg, %b) ret %out } ; ; NOT ; define @not_i8( %a, %pg, %b) { ; CHECK-LABEL: not_i8: ; CHECK: not z0.b, p0/m, z1.b ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.not.nxv16i8( %a, %pg, %b) ret %out } define @not_i16( %a, %pg, %b) { ; CHECK-LABEL: not_i16: ; CHECK: not z0.h, p0/m, z1.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.not.nxv8i16( %a, %pg, %b) ret %out } define @not_i32( %a, %pg, %b) { ; CHECK-LABEL: not_i32: ; CHECK: not z0.s, p0/m, z1.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.not.nxv4i32( %a, %pg, %b) ret %out } define @not_i64( %a, %pg, %b) { ; CHECK-LABEL: not_i64: ; CHECK: not z0.d, p0/m, z1.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.not.nxv2i64( %a, %pg, %b) ret %out } declare @llvm.aarch64.sve.cnot.nxv16i8(, , ) declare @llvm.aarch64.sve.cnot.nxv8i16(, , ) declare @llvm.aarch64.sve.cnot.nxv4i32(, , ) declare @llvm.aarch64.sve.cnot.nxv2i64(, , ) declare @llvm.aarch64.sve.not.nxv16i8(, , ) declare @llvm.aarch64.sve.not.nxv8i16(, , ) declare @llvm.aarch64.sve.not.nxv4i32(, , ) declare @llvm.aarch64.sve.not.nxv2i64(, , )