; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; 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 define @and_d( %a, %b) { ; CHECK-LABEL: and_d: ; CHECK: // %bb.0: ; CHECK-NEXT: and z0.d, z0.d, z1.d ; CHECK-NEXT: ret %res = and %a, %b ret %res } define @and_s( %a, %b) { ; CHECK-LABEL: and_s: ; CHECK: // %bb.0: ; CHECK-NEXT: and z0.d, z0.d, z1.d ; CHECK-NEXT: ret %res = and %a, %b ret %res } define @and_h( %a, %b) { ; CHECK-LABEL: and_h: ; CHECK: // %bb.0: ; CHECK-NEXT: and z0.d, z0.d, z1.d ; CHECK-NEXT: ret %res = and %a, %b ret %res } define @and_b( %a, %b) { ; CHECK-LABEL: and_b: ; CHECK: // %bb.0: ; CHECK-NEXT: and z0.d, z0.d, z1.d ; CHECK-NEXT: ret %res = and %a, %b ret %res } define @and_pred_d( %a, %b) { ; CHECK-LABEL: and_pred_d: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p2.d ; CHECK-NEXT: and p0.b, p2/z, p0.b, p1.b ; CHECK-NEXT: ret %res = and %a, %b ret %res } define @and_pred_s( %a, %b) { ; CHECK-LABEL: and_pred_s: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p2.s ; CHECK-NEXT: and p0.b, p2/z, p0.b, p1.b ; CHECK-NEXT: ret %res = and %a, %b ret %res } define @and_pred_h( %a, %b) { ; CHECK-LABEL: and_pred_h: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p2.h ; CHECK-NEXT: and p0.b, p2/z, p0.b, p1.b ; CHECK-NEXT: ret %res = and %a, %b ret %res } define @and_pred_b( %a, %b) { ; CHECK-LABEL: and_pred_b: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p2.b ; CHECK-NEXT: and p0.b, p2/z, p0.b, p1.b ; CHECK-NEXT: ret %res = and %a, %b ret %res } define @or_d( %a, %b) { ; CHECK-LABEL: or_d: ; CHECK: // %bb.0: ; CHECK-NEXT: orr z0.d, z0.d, z1.d ; CHECK-NEXT: ret %res = or %a, %b ret %res } define @or_s( %a, %b) { ; CHECK-LABEL: or_s: ; CHECK: // %bb.0: ; CHECK-NEXT: orr z0.d, z0.d, z1.d ; CHECK-NEXT: ret %res = or %a, %b ret %res } define @or_h( %a, %b) { ; CHECK-LABEL: or_h: ; CHECK: // %bb.0: ; CHECK-NEXT: orr z0.d, z0.d, z1.d ; CHECK-NEXT: ret %res = or %a, %b ret %res } define @or_b( %a, %b) { ; CHECK-LABEL: or_b: ; CHECK: // %bb.0: ; CHECK-NEXT: orr z0.d, z0.d, z1.d ; CHECK-NEXT: ret %res = or %a, %b ret %res } define @or_pred_d( %a, %b) { ; CHECK-LABEL: or_pred_d: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p2.d ; CHECK-NEXT: orr p0.b, p2/z, p0.b, p1.b ; CHECK-NEXT: ret %res = or %a, %b ret %res } define @or_pred_s( %a, %b) { ; CHECK-LABEL: or_pred_s: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p2.s ; CHECK-NEXT: orr p0.b, p2/z, p0.b, p1.b ; CHECK-NEXT: ret %res = or %a, %b ret %res } define @or_pred_h( %a, %b) { ; CHECK-LABEL: or_pred_h: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p2.h ; CHECK-NEXT: orr p0.b, p2/z, p0.b, p1.b ; CHECK-NEXT: ret %res = or %a, %b ret %res } define @or_pred_b( %a, %b) { ; CHECK-LABEL: or_pred_b: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p2.b ; CHECK-NEXT: orr p0.b, p2/z, p0.b, p1.b ; CHECK-NEXT: ret %res = or %a, %b ret %res } define @xor_d( %a, %b) { ; CHECK-LABEL: xor_d: ; CHECK: // %bb.0: ; CHECK-NEXT: eor z0.d, z0.d, z1.d ; CHECK-NEXT: ret %res = xor %a, %b ret %res } define @xor_s( %a, %b) { ; CHECK-LABEL: xor_s: ; CHECK: // %bb.0: ; CHECK-NEXT: eor z0.d, z0.d, z1.d ; CHECK-NEXT: ret %res = xor %a, %b ret %res } define @xor_h( %a, %b) { ; CHECK-LABEL: xor_h: ; CHECK: // %bb.0: ; CHECK-NEXT: eor z0.d, z0.d, z1.d ; CHECK-NEXT: ret %res = xor %a, %b ret %res } define @xor_b( %a, %b) { ; CHECK-LABEL: xor_b: ; CHECK: // %bb.0: ; CHECK-NEXT: eor z0.d, z0.d, z1.d ; CHECK-NEXT: ret %res = xor %a, %b ret %res } define @xor_pred_d( %a, %b) { ; CHECK-LABEL: xor_pred_d: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p2.d ; CHECK-NEXT: eor p0.b, p2/z, p0.b, p1.b ; CHECK-NEXT: ret %res = xor %a, %b ret %res } define @xor_pred_s( %a, %b) { ; CHECK-LABEL: xor_pred_s: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p2.s ; CHECK-NEXT: eor p0.b, p2/z, p0.b, p1.b ; CHECK-NEXT: ret %res = xor %a, %b ret %res } define @xor_pred_h( %a, %b) { ; CHECK-LABEL: xor_pred_h: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p2.h ; CHECK-NEXT: eor p0.b, p2/z, p0.b, p1.b ; CHECK-NEXT: ret %res = xor %a, %b ret %res } define @xor_pred_b( %a, %b) { ; CHECK-LABEL: xor_pred_b: ; CHECK: // %bb.0: ; CHECK-NEXT: ptrue p2.b ; CHECK-NEXT: eor p0.b, p2/z, p0.b, p1.b ; CHECK-NEXT: ret %res = xor %a, %b ret %res }