Skip to content

Commit 1df0602

Browse files
committed
Commit changes for clang-format
1 parent 20fcfaa commit 1df0602

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

clang/lib/AST/ByteCode/InterpBuiltin.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2852,7 +2852,7 @@ static bool interp__builtin_blend(InterpState &S, CodePtr OpPC,
28522852
}
28532853

28542854
static bool interp__builtin_ptestz(InterpState &S, CodePtr OpPC,
2855-
const CallExpr *Call) {
2855+
const CallExpr *Call) {
28562856
const Pointer &LHS = S.Stk.pop<Pointer>();
28572857
const Pointer &RHS = S.Stk.pop<Pointer>();
28582858

@@ -2870,15 +2870,15 @@ static bool interp__builtin_ptestz(InterpState &S, CodePtr OpPC,
28702870

28712871
bool Flag = true;
28722872
INT_TYPE_SWITCH_NO_BOOL(*ElemPT, {
2873-
for (unsigned I = 0; I < SourceLen; ++I) {
2874-
const APSInt A = LHS.elem<T>(I).toAPSInt();
2875-
const APSInt B = RHS.elem<T>(I).toAPSInt();
2876-
if ( (A & B) != 0 ) {
2877-
Flag = false;
2878-
break;
2879-
}
2873+
for (unsigned I = 0; I < SourceLen; ++I) {
2874+
const APSInt A = LHS.elem<T>(I).toAPSInt();
2875+
const APSInt B = RHS.elem<T>(I).toAPSInt();
2876+
if ((A & B) != 0) {
2877+
Flag = false;
2878+
break;
28802879
}
2881-
});
2880+
}
2881+
});
28822882

28832883
pushInteger(S, Flag ? 1 : 0, Call->getType());
28842884
return true;
@@ -3616,7 +3616,7 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call,
36163616

36173617
case X86::BI__builtin_ia32_ptestz128:
36183618
return interp__builtin_ptestz(S, OpPC, Call);
3619-
3619+
36203620
// case X86::BI__builtin_ia32_ptestz256:
36213621

36223622
// case X86::BI__builtin_ia32_ptestc128:

clang/test/CodeGen/X86/sse41-builtins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,4 +470,4 @@ int test_mm_testz_si128(__m128i x, __m128i y) {
470470
// CHECK: call {{.*}}i32 @llvm.x86.sse41.ptestz(<2 x i64> %{{.*}}, <2 x i64> %{{.*}})
471471
return _mm_testz_si128(x, y);
472472
}
473-
// TEST_CONSTEXPR(_mm_testz_si128((__m128i)(__v2di){0,0}, (__m128i)(__v2di){0,0}) == 1);
473+
TEST_CONSTEXPR(_mm_testz_si128((__m128i)(__v2di){0,0}, (__m128i)(__v2di){0,0}) == 1);

0 commit comments

Comments
 (0)