Jay Foad 593e25ffae [Vectorize] Fix vectorization, scalarization and folding of llvm.is.fpclass
llvm.is.fpclass is different from other vectorizable intrinsics in that
it is overloaded on an argument type, not on the return type.

Differential Revision: https://reviews.llvm.org/D148905
2023-04-24 13:42:08 +01:00

13 lines
438 B
LLVM

; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2
; RUN: opt < %s -S -passes=instsimplify | FileCheck %s
define <2 x i1> @f() {
; CHECK-LABEL: define <2 x i1> @f() {
; CHECK-NEXT: ret <2 x i1> zeroinitializer
;
%i = call <2 x i1> @llvm.is.fpclass.v2f16(<2 x half> <half 0xH7C00, half 0xH7C00>, i32 3)
ret <2 x i1> %i
}
declare <2 x i1> @llvm.is.fpclass.v2f16(<2 x half>, i32 immarg)