/llvm-project/clang-tools-extra/test/clang-tidy/checkers/bugprone/ |
H A D | implicit-widening-of-multiplication-result-char.cpp | 1 // RUN: %check_clang_tidy -std=c99 %s bugprone-implicit-widening-of-multiplication-result %t -- -- … 2 // RUN: %check_clang_tidy %s bugprone-implicit-widening-of-multiplication-result %t -- -- -target x… 4 // RUN: %check_clang_tidy -std=c99 %s bugprone-implicit-widening-of-multiplication-result %t -- -- … 5 // RUN: %check_clang_tidy %s bugprone-implicit-widening-of-multiplication-result %t -- -- -target x… 7 // RUN: %check_clang_tidy -std=c99 %s bugprone-implicit-widening-of-multiplication-result %t -- -- … 8 // RUN: %check_clang_tidy %s bugprone-implicit-widening-of-multiplication-result %t -- -- -target x… 12 …ning: performing an implicit widening conversion to type 'long' of a multiplication performed in t… in t0() 14 // CHECK-NOTES: :[[@LINE-3]]:10: note: perform multiplication in a wider type in t0() 18 …forming an implicit widening conversion to type 'unsigned long' of a multiplication performed in t… in t1() 20 // CHECK-NOTES: :[[@LINE-3]]:10: note: perform multiplication in a wider type in t1() [all …]
|
H A D | implicit-widening-of-multiplication-result-int.cpp | 1 …tidy -check-suffixes=ALL,C -std=c99 %s bugprone-implicit-widening-of-multiplication-result %t -- -… 2 // RUN: %check_clang_tidy -check-suffixes=ALL,CXX %s bugprone-implicit-widening-of-multiplication-r… 4 …_tidy -check-suffixes=ALL,C -std=c99 %s bugprone-implicit-widening-of-multiplication-result %t -- \ 6 // RUN: bugprone-implicit-widening-of-multiplication-result.UseCXXStaticCastsInCppSources: … 8 // RUN: %check_clang_tidy -check-suffixes=ALL,C %s bugprone-implicit-widening-of-multiplication-res… 10 // RUN: bugprone-implicit-widening-of-multiplication-result.UseCXXStaticCastsInCppSources: … 15 …ning: performing an implicit widening conversion to type 'long' of a multiplication performed in t… in t0() 19 // CHECK-NOTES-ALL: :[[@LINE-5]]:10: note: perform multiplication in a wider type in t0() 25 …forming an implicit widening conversion to type 'unsigned long' of a multiplication performed in t… in t1() 29 // CHECK-NOTES-ALL: :[[@LINE-5]]:10: note: perform multiplication in a wider type in t1() [all …]
|
H A D | implicit-widening-of-multiplication-result-pointer-offset.cpp | 1 …tidy -check-suffixes=ALL,C -std=c99 %s bugprone-implicit-widening-of-multiplication-result %t -- -… 2 // RUN: %check_clang_tidy -check-suffixes=ALL,CXX %s bugprone-implicit-widening-of-multiplication-r… 4 …_tidy -check-suffixes=ALL,C -std=c99 %s bugprone-implicit-widening-of-multiplication-result %t -- \ 6 // RUN: bugprone-implicit-widening-of-multiplication-result.UseCXXStaticCastsInCppSources: … 8 // RUN: %check_clang_tidy -check-suffixes=ALL,C %s bugprone-implicit-widening-of-multiplication-res… 10 // RUN: bugprone-implicit-widening-of-multiplication-result.UseCXXStaticCastsInCppSources: … 15 …// CHECK-NOTES-ALL: :[[@LINE-1]]:10: warning: result of multiplication in type 'int' is used as a … in t0() 19 // CHECK-NOTES-ALL: :[[@LINE-5]]:17: note: perform multiplication in a wider type in t0() 25 …// CHECK-NOTES-ALL: :[[@LINE-1]]:10: warning: result of multiplication in type 'int' is used as a … in t1() 27 // CHECK-NOTES-ALL: :[[@LINE-3]]:10: note: perform multiplication in a wider type in t1() [all …]
|
H A D | implicit-widening-of-multiplication-result-array-subscript-expression.cpp | 1 …tidy -check-suffixes=ALL,C -std=c99 %s bugprone-implicit-widening-of-multiplication-result %t -- -… 2 // RUN: %check_clang_tidy -check-suffixes=ALL,CXX %s bugprone-implicit-widening-of-multiplication-r… 4 …_tidy -check-suffixes=ALL,C -std=c99 %s bugprone-implicit-widening-of-multiplication-result %t -- \ 6 // RUN: bugprone-implicit-widening-of-multiplication-result.UseCXXStaticCastsInCppSources: … 8 // RUN: %check_clang_tidy -check-suffixes=ALL,C %s bugprone-implicit-widening-of-multiplication-res… 10 // RUN: bugprone-implicit-widening-of-multiplication-result.UseCXXStaticCastsInCppSources: … 15 …// CHECK-NOTES-ALL: :[[@LINE-1]]:11: warning: result of multiplication in type 'int' is used as a … in t0() 19 // CHECK-NOTES-ALL: :[[@LINE-5]]:16: note: perform multiplication in a wider type in t0() 25 …// CHECK-NOTES-ALL: :[[@LINE-1]]:12: warning: result of multiplication in type 'int' is used as a … in t1() 27 // CHECK-NOTES-ALL: :[[@LINE-3]]:13: note: perform multiplication in a wider type in t1() [all …]
|
H A D | implicit-widening-of-multiplication-result-extint.cpp | 1 // RUN: %check_clang_tidy -std=c99 %s bugprone-implicit-widening-of-multiplication-result %t -- -- … 2 // RUN: %check_clang_tidy %s bugprone-implicit-widening-of-multiplication-result %t -- -- -target x… 6 …erforming an implicit widening conversion to type '_BitInt(64)' of a multiplication performed in t… 8 // CHECK-NOTES: :[[@LINE-3]]:10: note: perform multiplication in a wider type 12 … an implicit widening conversion to type 'unsigned _BitInt(64)' of a multiplication performed in t… 14 // CHECK-NOTES: :[[@LINE-3]]:10: note: perform multiplication in a wider type 18 …erforming an implicit widening conversion to type '_BitInt(64)' of a multiplication performed in t… 20 // CHECK-NOTES: :[[@LINE-3]]:10: note: perform multiplication in a wider type
|
H A D | implicit-widening-of-multiplication-result-short.cpp | 1 // RUN: %check_clang_tidy -std=c99 %s bugprone-implicit-widening-of-multiplication-result %t -- -- … 2 // RUN: %check_clang_tidy %s bugprone-implicit-widening-of-multiplication-result %t -- -- -target x… 6 …ning: performing an implicit widening conversion to type 'long' of a multiplication performed in t… in t0() 8 // CHECK-NOTES: :[[@LINE-3]]:10: note: perform multiplication in a wider type in t0() 12 …ning: performing an implicit widening conversion to type 'long' of a multiplication performed in t… in t1() 14 // CHECK-NOTES: :[[@LINE-3]]:10: note: perform multiplication in a wider type in t1()
|
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/bugprone/ |
H A D | implicit-widening-of-multiplication-result.rst | 1 .. title:: clang-tidy - bugprone-implicit-widening-of-multiplication-result 3 bugprone-implicit-widening-of-multiplication-result 6 The check diagnoses instances where a result of a multiplication is implicitly 8 widening explicit, or to perform the multiplication in a wider type, 50 If the multiplication operands are compile-time constants (like literals or 60 return a * b; // warning: performing an implicit widening conversion to type 'long' of a multiplication performed in type 'int' 64 return base + a * b; // warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ssize_t' 68 return base[a * b]; // warning: result of multiplication in type 'int' is used as a pointer offset after an implicit widening conversion to type 'ssize_t'
|
/llvm-project/llvm/test/CodeGen/SystemZ/ |
H A D | vec-mul-01.ll | 1 ; Test vector multiplication. 5 ; Test a v16i8 multiplication. 14 ; Test a v8i16 multiplication. 23 ; Test a v4i32 multiplication. 32 ; Test a v2i64 multiplication. There's no vector equivalent. 41 ; Test a v2f64 multiplication. 51 ; Test an f64 multiplication that uses vector registers.
|
H A D | int-mul-06.ll | 1 ; Test 64-bit multiplication in which the second operand is constant. 5 ; Check multiplication by 2, which should use shifts. 14 ; Check multiplication by 3. 77 ; Check multiplication by -1, which is a negation. 86 ; Check multiplication by -2, which should use shifts. 96 ; Check multiplication by -3. 152 ; Check the next value down again, which cannot use constant multiplication
|
H A D | int-mul-05.ll | 1 ; Test 32-bit multiplication in which the second operand is constant. 5 ; Check multiplication by 2, which should use shifts. 14 ; Check multiplication by 3. 77 ; Check multiplication by -1, which is a negation. 86 ; Check multiplication by -2, which should use shifts. 96 ; Check multiplication by -3.
|
H A D | int-mul-07.ll | 8 ; Check zero-extended multiplication in which only the high part is used. 21 ; Check sign-extended multiplication in which only the high part is used. 34 ; Check zero-extended multiplication in which the result is split into 50 ; Check sign-extended multiplication in which the result is split into
|
H A D | vec-mul-03.ll | 1 ; Test vector multiplication on z14. 5 ; Test a v4f32 multiplication. 15 ; Test an f32 multiplication that uses vector registers.
|
H A D | vec-strict-mul-01.ll | 1 ; Test strict vector multiplication. 8 ; Test a v2f64 multiplication. 21 ; Test an f64 multiplication that uses vector registers.
|
H A D | vec-strict-mul-03.ll | 1 ; Test strict vector multiplication on z14. 8 ; Test a v4f32 multiplication. 21 ; Test an f32 multiplication that uses vector registers.
|
/llvm-project/llvm/test/MC/RISCV/rvv/ |
H A D | xsfvqmacc.s | 14 …struction requires the following: 'XSfvqmaccdod' (SiFive Int8 Matrix Multiplication Instructions (… 20 …struction requires the following: 'XSfvqmaccdod' (SiFive Int8 Matrix Multiplication Instructions (… 26 …struction requires the following: 'XSfvqmaccdod' (SiFive Int8 Matrix Multiplication Instructions (… 32 …struction requires the following: 'XSfvqmaccdod' (SiFive Int8 Matrix Multiplication Instructions (… 38 …struction requires the following: 'XSfvqmaccqoq' (SiFive Int8 Matrix Multiplication Instructions (… 44 …struction requires the following: 'XSfvqmaccqoq' (SiFive Int8 Matrix Multiplication Instructions (… 50 …struction requires the following: 'XSfvqmaccqoq' (SiFive Int8 Matrix Multiplication Instructions (… 56 …struction requires the following: 'XSfvqmaccqoq' (SiFive Int8 Matrix Multiplication Instructions (…
|
H A D | zvbc.s | 23 # CHECK-ERROR: instruction requires the following: 'Zvbc' or 'Zvbc32e' (Vector Carryless Multiplication){{$}} 29 # CHECK-ERROR: instruction requires the following: 'Zvbc' or 'Zvbc32e' (Vector Carryless Multiplication){{$}} 35 # CHECK-ERROR: instruction requires the following: 'Zvbc' or 'Zvbc32e' (Vector Carryless Multiplication){{$}} 41 # CHECK-ERROR: instruction requires the following: 'Zvbc' or 'Zvbc32e' (Vector Carryless Multiplication){{$}}
|
/llvm-project/llvm/test/MC/RISCV/ |
H A D | rv32zmmul-invaild.s | 4 # CHECK-ERROR: 5:1: error: instruction requires the following: 'M' (Integer Multiplication and Division){{$}} 7 # CHECK-ERROR: 8:1: error: instruction requires the following: 'M' (Integer Multiplication and Division){{$}} 10 # CHECK-ERROR: 11:1: error: instruction requires the following: 'M' (Integer Multiplication and Division){{$}} 13 # CHECK-ERROR: 14:1: error: instruction requires the following: 'M' (Integer Multiplication and Division){{$}}
|
H A D | rv64zmmul-invalid.s | 4 # CHECK-ERROR: 5:1: error: instruction requires the following: 'M' (Integer Multiplication and Division){{$}} 7 # CHECK-ERROR: 8:1: error: instruction requires the following: 'M' (Integer Multiplication and Division){{$}} 10 # CHECK-ERROR: 11:1: error: instruction requires the following: 'M' (Integer Multiplication and Division){{$}} 13 # CHECK-ERROR: 14:1: error: instruction requires the following: 'M' (Integer Multiplication and Division){{$}}
|
/llvm-project/llvm/lib/Target/X86/ |
H A D | X86Schedule.td | 140 // Integer multiplication 141 defm WriteIMul8 : X86SchedWritePair; // Integer 8-bit multiplication. 142 defm WriteIMul16 : X86SchedWritePair; // Integer 16-bit multiplication. 143 defm WriteIMul16Imm : X86SchedWritePair; // Integer 16-bit multiplication by immediate. 144 defm WriteIMul16Reg : X86SchedWritePair; // Integer 16-bit multiplication by register. 145 defm WriteIMul32 : X86SchedWritePair; // Integer 32-bit multiplication. 146 defm WriteIMul32Imm : X86SchedWritePair; // Integer 32-bit multiplication by immediate. 147 defm WriteIMul32Reg : X86SchedWritePair; // Integer 32-bit multiplication by register. 148 defm WriteIMul64 : X86SchedWritePair; // Integer 64-bit multiplication. 149 defm WriteIMul64Imm : X86SchedWritePair; // Integer 64-bit multiplication by immediate. [all …]
|
/llvm-project/clang/test/Frontend/ |
H A D | fixed_point_mul_const.c | 4 // Multiplication between different fixed point types 18 // Unsigned multiplication 27 // Multiplication with negative number 31 // Int multiplication 42 // Saturated multiplication
|
/llvm-project/llvm/test/CodeGen/X86/ |
H A D | fdiv.ll | 5 ; Exact division by a constant converted to multiplication. 15 ; Inexact division by a constant converted to multiplication. 25 ; No conversion to multiplication if too funky. 36 ; Don't generate multiplication by a denormal. 46 ; Don't generate multiplication by a denormal.
|
/llvm-project/polly/lib/External/isl/imath/tools/ |
H A D | findthreshold.py | 4 ## Purpose: Find a good threshold for recursive multiplication. 8 ## recursive multiplication breakpoint. It uses the imtimer tool to run a 14 ## thresh -- the threshold for recursive multiplication (digits). 28 """Obtain timing statistics for multiplication.
|
/llvm-project/polly/lib/Transform/ |
H A D | MatmulOptimizer.cpp | 154 /// used in the optimized matrix multiplication. 163 /// used in the optimized matrix multiplication. 170 /// Parameters of the matrix multiplication operands. 173 /// matrix multiplication. 207 /// Multiplication of C(shuffle(I,J)) by β can be moved into a different SCoP 370 /// multiplication. 373 /// operand of the matrix multiplication or its result. 376 /// @param MMI Parameters of the matrix multiplication operands. 378 /// to a non-scalar operand of the matrix multiplication and 401 /// Check accesses to operands of the matrix multiplication [all...] |
/llvm-project/clang/lib/Headers/ |
H A D | amxcomplexintrin.h | 21 /// Perform matrix multiplication of two tiles containing complex elements and 26 /// of (row of \a a, column of \a b), it performs a set of multiplication 65 /// Perform matrix multiplication of two tiles containing complex elements and 70 /// of (row of \a a, column of \a b), it performs a set of multiplication 122 /// Perform matrix multiplication of two tiles containing complex elements and 145 /// Perform matrix multiplication of two tiles containing complex elements and
|
/llvm-project/flang/test/Evaluate/ |
H A D | folding03.f90 | 51 !WARN: warning: INTEGER(4) multiplication overflowed 53 !WARN: warning: INTEGER(4) multiplication overflowed 55 !WARN: warning: INTEGER(4) multiplication overflowed 57 !WARN: warning: INTEGER(4) multiplication overflowed 159 !WARN: warning: overflow on multiplication 161 !WARN: warning: overflow on multiplication 197 !WARN: warning: invalid argument on multiplication 200 !WARN: warning: invalid argument on multiplication
|