Skip to content

Commit

Permalink
[X86][FP16] Add missing handling for FP16 constrained cmp intrinsics (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebewang committed Sep 26, 2023
1 parent 758df22 commit 31631d3
Show file tree
Hide file tree
Showing 2 changed files with 408 additions and 0 deletions.
9 changes: 9 additions & 0 deletions clang/lib/CodeGen/CGBuiltin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15594,6 +15594,15 @@ Value *CodeGenFunction::EmitX86BuiltinExpr(unsigned BuiltinID,
case X86::BI__builtin_ia32_cmppd256:
IID = Intrinsic::x86_avx_cmp_pd_256;
break;
case X86::BI__builtin_ia32_cmpph128_mask:
IID = Intrinsic::x86_avx512fp16_mask_cmp_ph_128;
break;
case X86::BI__builtin_ia32_cmpph256_mask:
IID = Intrinsic::x86_avx512fp16_mask_cmp_ph_256;
break;
case X86::BI__builtin_ia32_cmpph512_mask:
IID = Intrinsic::x86_avx512fp16_mask_cmp_ph_512;
break;
case X86::BI__builtin_ia32_cmpps512_mask:
IID = Intrinsic::x86_avx512_mask_cmp_ps_512;
break;
Expand Down

0 comments on commit 31631d3

Please sign in to comment.