Skip to content

Commit bcca2d1

Browse files
committed
Add builtin case statements in InterpBuiltin.cpp
1 parent 99b5ecf commit bcca2d1

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

clang/lib/AST/ByteCode/InterpBuiltin.cpp

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3580,6 +3580,32 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call,
35803580
S, OpPC, Call, [](const APSInt &F, const APSInt &T, const APSInt &C) {
35813581
return ((APInt)C).isNegative() ? T : F;
35823582
});
3583+
case X86::BI__builtin_ia32_ptestz128:
3584+
case X86::BI__builtin_ia32_ptestz256:
3585+
3586+
// case X86::BI__builtin_ia32_ptestc128:
3587+
// case X86::BI__builtin_ia32_ptestc256:
3588+
3589+
// case X86::BI__builtin_ia32_ptestnzc128:
3590+
// case X86::BI__builtin_ia32_ptestnzc256:
3591+
3592+
// case X86::BI__builtin_ia32_vtestzps:
3593+
// case X86::BI__builtin_ia32_vtestzps256:
3594+
3595+
// case X86::BI__builtin_ia32_vtestcps:
3596+
// case X86::BI__builtin_ia32_vtestcps256:
3597+
3598+
// case X86::BI__builtin_ia32_vtestnzcps:
3599+
// case X86::BI__builtin_ia32_vtestnzcps256:
3600+
3601+
// case X86::BI__builtin_ia32_vtestzpd:
3602+
// case X86::BI__builtin_ia32_vtestzpd256:
3603+
3604+
// case X86::BI__builtin_ia32_vtestcpd:
3605+
// case X86::BI__builtin_ia32_vtestcpd256:
3606+
3607+
// case X86::BI__builtin_ia32_vtestnzcpd:
3608+
// case X86::BI__builtin_ia32_vtestnzcpd256:
35833609

35843610
case X86::BI__builtin_ia32_selectb_128:
35853611
case X86::BI__builtin_ia32_selectb_256:

0 commit comments

Comments
 (0)