Skip to content

Commit f65d516

Browse files
committed
clang format
1 parent 5aeb4e4 commit f65d516

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

clang/lib/AST/ByteCode/InterpBuiltin.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3101,8 +3101,7 @@ static bool interp__builtin_vec_set(InterpState &S, CodePtr OpPC,
31013101
return true;
31023102
}
31033103

3104-
static bool evalICmpImm(uint8_t Imm, APSInt A, APSInt B,
3105-
bool IsUnsigned) {
3104+
static bool evalICmpImm(uint8_t Imm, APSInt A, APSInt B, bool IsUnsigned) {
31063105
switch (Imm & 0x7) {
31073106
case 0x00: // _MM_CMPINT_EQ
31083107
return (A == B);
@@ -3126,8 +3125,8 @@ static bool evalICmpImm(uint8_t Imm, APSInt A, APSInt B,
31263125
}
31273126

31283127
static bool interp__builtin_ia32_cmp_mask(InterpState &S, CodePtr OpPC,
3129-
const CallExpr *Call, unsigned ID,
3130-
bool IsUnsigned) {
3128+
const CallExpr *Call, unsigned ID,
3129+
bool IsUnsigned) {
31313130
assert(Call->getNumArgs() == 4);
31323131

31333132
APSInt Mask = popToAPSInt(S, Call->getArg(3));
@@ -4208,7 +4207,7 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call,
42084207
case X86::BI__builtin_ia32_cmpd512_mask:
42094208
case X86::BI__builtin_ia32_cmpq512_mask:
42104209
return interp__builtin_ia32_cmp_mask(S, OpPC, Call, BuiltinID,
4211-
/*IsUnsigned=*/false);
4210+
/*IsUnsigned=*/false);
42124211

42134212
case X86::BI__builtin_ia32_ucmpb128_mask:
42144213
case X86::BI__builtin_ia32_ucmpw128_mask:
@@ -4223,7 +4222,7 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call,
42234222
case X86::BI__builtin_ia32_ucmpd512_mask:
42244223
case X86::BI__builtin_ia32_ucmpq512_mask:
42254224
return interp__builtin_ia32_cmp_mask(S, OpPC, Call, BuiltinID,
4226-
/*IsUnsigned=*/true);
4225+
/*IsUnsigned=*/true);
42274226

42284227
default:
42294228
S.FFDiag(S.Current->getLocation(OpPC),

clang/lib/AST/ExprConstant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15494,7 +15494,7 @@ bool IntExprEvaluator::VisitBuiltinCallExpr(const CallExpr *E,
1549415494
unsigned RetWidth = Mask.getBitWidth();
1549515495

1549615496
APSInt RetMask(llvm::APInt(RetWidth, 0), /*isUnsigned=*/true);
15497-
15497+
1549815498
for (unsigned ElemNum = 0; ElemNum < VectorLen; ++ElemNum) {
1549915499
const APSInt &A = LHS.getVectorElt(ElemNum).getInt();
1550015500
const APSInt &B = RHS.getVectorElt(ElemNum).getInt();

0 commit comments

Comments
 (0)