; 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 ; ; FLOGB ; define @flogb_f16( %a, %pg, %b) { ; CHECK-LABEL: flogb_f16: ; CHECK: flogb z0.h, p0/m, z1.h ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.flogb.nxv8f16( %a, %pg, %b) ret %out } define @flogb_f32( %a, %pg, %b) { ; CHECK-LABEL: flogb_f32: ; CHECK: flogb z0.s, p0/m, z1.s ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.flogb.nxv4f32( %a, %pg, %b) ret %out } define @flogb_f64( %a, %pg, %b) { ; CHECK-LABEL: flogb_f64: ; CHECK: flogb z0.d, p0/m, z1.d ; CHECK-NEXT: ret %out = call @llvm.aarch64.sve.flogb.nxv2f64( %a, %pg, %b) ret %out } declare @llvm.aarch64.sve.flogb.nxv8f16(, , ) declare @llvm.aarch64.sve.flogb.nxv4f32(, , ) declare @llvm.aarch64.sve.flogb.nxv2f64(, , )