Skip to content

Commit 84155ce

Browse files
committed
Format
1 parent d91a352 commit 84155ce

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

clang/lib/AST/ByteCode/InterpBuiltin.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3423,7 +3423,6 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call,
34233423
return LHS.isSigned() ? LHS.ssub_sat(RHS) : LHS.usub_sat(RHS);
34243424
});
34253425

3426-
34273426
case clang::X86::BI__builtin_ia32_pmulhrsw128:
34283427
case clang::X86::BI__builtin_ia32_pmulhrsw256:
34293428
case clang::X86::BI__builtin_ia32_pmulhrsw512:

clang/lib/AST/ExprConstant.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11728,7 +11728,7 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) {
1172811728
case clang::X86::BI__builtin_ia32_pmulhrsw128:
1172911729
case clang::X86::BI__builtin_ia32_pmulhrsw256:
1173011730
case clang::X86::BI__builtin_ia32_pmulhrsw512:
11731-
return EvaluateBinOpExpr([](const APSInt &LHS, const APSInt& RHS) {
11731+
return EvaluateBinOpExpr([](const APSInt &LHS, const APSInt &RHS) {
1173211732
unsigned Width = LHS.getBitWidth();
1173311733
APInt Mul = llvm::APIntOps::mulhs(LHS, RHS);
1173411734
Mul = Mul.relativeLShr(14);

clang/lib/Headers/avx2intrin.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,8 +1659,7 @@ _mm256_mul_epi32(__m256i __a, __m256i __b) {
16591659
/// A 256-bit vector of [16 x i16] containing one of the source operands.
16601660
/// \returns A 256-bit vector of [16 x i16] containing the rounded products.
16611661
static __inline__ __m256i __DEFAULT_FN_ATTRS256_CONSTEXPR
1662-
_mm256_mulhrs_epi16(__m256i __a, __m256i __b)
1663-
{
1662+
_mm256_mulhrs_epi16(__m256i __a, __m256i __b) {
16641663
return (__m256i)__builtin_ia32_pmulhrsw256((__v16hi)__a, (__v16hi)__b);
16651664
}
16661665

@@ -1678,8 +1677,7 @@ _mm256_mulhrs_epi16(__m256i __a, __m256i __b)
16781677
/// A 256-bit vector of [16 x i16] containing one of the source operands.
16791678
/// \returns A 256-bit vector of [16 x i16] containing the products.
16801679
static __inline__ __m256i __DEFAULT_FN_ATTRS256_CONSTEXPR
1681-
_mm256_mulhi_epu16(__m256i __a, __m256i __b)
1682-
{
1680+
_mm256_mulhi_epu16(__m256i __a, __m256i __b) {
16831681
return (__m256i)__builtin_ia32_pmulhuw256((__v16hu)__a, (__v16hu)__b);
16841682
}
16851683

clang/lib/Headers/tmmintrin.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,7 @@ _mm_maddubs_pi16(__m64 __a, __m64 __b)
559559
/// \returns A 128-bit vector of [8 x i16] containing the rounded and scaled
560560
/// products of both operands.
561561
static __inline__ __m128i __DEFAULT_FN_ATTRS_CONSTEXPR
562-
_mm_mulhrs_epi16(__m128i __a, __m128i __b)
563-
{
562+
_mm_mulhrs_epi16(__m128i __a, __m128i __b) {
564563
return (__m128i)__builtin_ia32_pmulhrsw128((__v8hi)__a, (__v8hi)__b);
565564
}
566565

@@ -579,8 +578,7 @@ _mm_mulhrs_epi16(__m128i __a, __m128i __b)
579578
/// \returns A 64-bit vector of [4 x i16] containing the rounded and scaled
580579
/// products of both operands.
581580
static __inline__ __m64 __DEFAULT_FN_ATTRS_CONSTEXPR
582-
_mm_mulhrs_pi16(__m64 __a, __m64 __b)
583-
{
581+
_mm_mulhrs_pi16(__m64 __a, __m64 __b) {
584582
return __trunc64(__builtin_ia32_pmulhrsw128((__v8hi)__zext128(__a),
585583
(__v8hi)__zext128(__b)));
586584
}

0 commit comments

Comments
 (0)