Home
last modified time | relevance | path

Searched refs:comparison (Results 1 – 25 of 433) sorted by relevance

12345678910>>...18

/llvm-project-15.0.7/clang/test/SemaObjC/
H A Dobjc-literal-comparison.m39 …if (obj == @"") return; // expected-warning{{direct comparison of a string literal has undefined b…
40 …if (obj != @"") return; // expected-warning{{direct comparison of a string literal has undefined b…
41 …if (@"" == obj) return; // expected-warning{{direct comparison of a string literal has undefined b…
63 …if ([BaseObject new] == @"") return; // expected-warning{{direct comparison of a string literal ha…
65 …if ([BadEqualReturnString new] == @"") return; // expected-warning{{direct comparison of a string …
66 …if ([BadEqualArgString new] == @"") return; // expected-warning{{direct comparison of a string lit…
68 …if (@"" < @"") return; // expected-warning{{direct comparison of a string literal has undefined be…
69 …if (@"" > @"") return; // expected-warning{{direct comparison of a string literal has undefined be…
70 …if (@"" <= @"") return; // expected-warning{{direct comparison of a string literal has undefined b…
71 …if (@"" >= @"") return; // expected-warning{{direct comparison of a string literal has undefined b…
[all …]
H A Dcomptypes-7.m49 …if (obj == i) foo() ; // expected-warning {{comparison between pointer and integer ('id' and 'int'…
50 …if (i == obj) foo() ; // expected-warning {{comparison between pointer and integer ('int' and 'id'…
51 …if (obj == j) foo() ; // expected-warning {{comparison of distinct pointer types ('id' and 'int *'…
52 …if (j == obj) foo() ; // expected-warning {{comparison of distinct pointer types ('int *' and 'id'…
54 …if (obj_c == i) foo() ; // expected-warning {{comparison between pointer and integer ('MyClass *' …
55 …if (i == obj_c) foo() ; // expected-warning {{comparison between pointer and integer ('int' and 'M…
56 …if (obj_c == j) foo() ; // expected-warning {{comparison of distinct pointer types ('MyClass *' an…
64 …if (obj_C == i) foo() ; // expected-warning {{comparison between pointer and integer ('Class' and …
65 …if (i == obj_C) foo() ; // expected-warning {{comparison between pointer and integer ('int' and 'C…
66 …if (obj_C == j) foo() ; // expected-warning {{comparison of distinct pointer types ('Class' and 'i…
[all …]
H A Dcomptypes-1.m75 /* Any comparison involving an 'id' must be without warnings. */
87 /* Any comparison between 'MyClass *' and anything which is not an 'id'
89 …if (obj_c == obj_p) foo(); // expected-warning {{comparison of distinct pointer types ('MyClass *…
90 …if (obj_p == obj_c) foo(); // expected-warning {{comparison of distinct pointer types ('id<MyProt…
95 …if (obj_c == obj_C) foo(); // expected-warning {{comparison of distinct pointer types ('MyClass *…
96 …if (obj_C == obj_c) foo(); // expected-warning {{comparison of distinct pointer types ('Class' an…
101 /* Any comparison between 'MyOtherClass *' (which implements
106 …if (obj_p == obj_C) foo(); // expected-warning {{comparison of distinct pointer types ('id<MyPro…
107 …if (obj_C == obj_p) foo(); // expected-warning {{comparison of distinct pointer types ('Class' a…
113 …if (obj_cp == obj_C) foo(); // expected-warning {{comparison of distinct pointer types ('MyOtherC…
[all …]
H A Dcomptypes-3.m45 …if (obj_a == obj_b) foo (); // expected-warning {{comparison of distinct pointer types ('id<MyProt…
46 …if (obj_b == obj_a) foo (); // expected-warning {{comparison of distinct pointer types ('id<MyProt…
57 …if (obj_b == obj_ac) foo (); // expected-warning {{comparison of distinct pointer types ('id<MyPro…
58 …if (obj_ac == obj_b) foo (); // expected-warning {{comparison of distinct pointer types ('id<MyPro…
60 …if (obj_ab == obj_ac) foo (); // expected-warning {{comparison of distinct pointer types ('id<MyPr…
61 …if (obj_ac == obj_ab) foo (); // expected-warning {{comparison of distinct pointer types ('id<MyPr…
/llvm-project-15.0.7/clang/test/SemaObjCXX/
H A Dcomptypes-7.mm48 …if (obj == i) foo() ; // expected-error {{comparison between pointer and integer ('id' and 'int')}}
49 …if (i == obj) foo() ; // expected-error {{comparison between pointer and integer ('int' and 'id')}}
50 …if (obj == j) foo() ; // expected-error {{comparison of distinct pointer types ('id' and 'int *')}}
51 …if (j == obj) foo() ; // expected-error {{comparison of distinct pointer types ('int *' and 'id')}}
53 …if (obj_c == i) foo() ; // expected-error {{comparison between pointer and integer ('MyClass *' an…
54 …if (i == obj_c) foo() ; // expected-error {{comparison between pointer and integer ('int' and 'MyC…
55 …if (obj_c == j) foo() ; // expected-error {{comparison of distinct pointer types ('MyClass *' and …
63 …if (obj_C == i) foo() ; // expected-error {{comparison between pointer and integer ('Class' and 'i…
64 …if (i == obj_C) foo() ; // expected-error {{comparison between pointer and integer ('int' and 'Cla…
65 …if (obj_C == j) foo() ; // expected-error {{comparison of distinct pointer types ('Class' and 'int…
[all …]
H A Dcomptypes-1.mm75 /* Any comparison involving an 'id' must be without warnings. */
87 /* Any comparison between 'MyClass *' and anything which is not an 'id'
89 …if (obj_c == obj_p) foo(); // expected-warning {{comparison of distinct pointer types ('MyClass *…
90 …if (obj_p == obj_c) foo(); // expected-warning {{comparison of distinct pointer types ('id<MyProt…
95 …if (obj_c == obj_C) foo(); // expected-warning {{comparison of distinct pointer types ('MyClass *…
96 …if (obj_C == obj_c) foo(); // expected-warning {{comparison of distinct pointer types ('Class' an…
101 /* Any comparison between 'MyOtherClass *' (which implements
106 …if (obj_p == obj_C) foo(); // expected-warning {{comparison of distinct pointer types ('id<MyPro…
107 …if (obj_C == obj_p) foo(); // expected-warning {{comparison of distinct pointer types ('Class' a…
113 …if (obj_cp == obj_C) foo(); // expected-warning {{comparison of distinct pointer types ('MyOtherC…
[all …]
H A Dnull_objc_pointer.mm10 …b = d < NULL || NULL < d || d > NULL || NULL > d; // expected-error 4{{ordered comparison between …
11 …b = d <= NULL || NULL <= d || d >= NULL || NULL >= d; // expected-error 4{{ordered comparison betw…
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dwarn-memsize-comparison.cpp20 expected-warning{{size argument in 'memset' call is a comparison}} \ in f()
26 expected-warning{{size argument in 'memmove' call is a comparison}} \ in f()
33 expected-warning{{size argument in 'memcpy' call is a comparison}} \ in f()
39 expected-warning{{size argument in 'memcmp' call is a comparison}} \ in f()
45 expected-warning{{size argument in 'strncmp' call is a comparison}} \ in f()
51 expected-warning{{size argument in 'strncasecmp' call is a comparison}} \ in f()
57 expected-warning{{size argument in 'strncpy' call is a comparison}} \ in f()
64 expected-warning{{size argument in 'strncat' call is a comparison}} \ in f()
70 expected-warning{{size argument in 'strndup' call is a comparison}} \ in f()
76 expected-warning{{size argument in 'strlcpy' call is a comparison}} \ in f()
[all …]
/llvm-project-15.0.7/llvm/test/CodeGen/SystemZ/
H A Dint-cmp-31.ll6 ; Check unsigned comparison near the low end of the CLHHSI range, using zero
20 ; Check unsigned comparison near the low end of the CLHHSI range, using sign
34 ; Check unsigned comparison near the high end of the CLHHSI range, using zero
48 ; Check unsigned comparison near the high end of the CLHHSI range, using sign
75 ; When using unsigned comparison with sign extension, equality with values
104 ; Check signed comparison near the low end of the CLHHSI range, using zero
105 ; extension. This is equivalent to unsigned comparison.
118 ; Check signed comparison near the low end of the CLHHSI range, using sign
133 ; extension. This is equivalent to unsigned comparison.
173 ; Check signed comparison near the high end of the CHHSI range, using sign
[all …]
H A Dint-cmp-30.ll6 ; Check unsigned comparison near the low end of the CLHHSI range, using zero
20 ; Check unsigned comparison near the low end of the CLHHSI range, using sign
34 ; Check unsigned comparison near the high end of the CLHHSI range, using zero
48 ; Check unsigned comparison near the high end of the CLHHSI range, using sign
75 ; When using unsigned comparison with sign extension, equality with values
104 ; Check signed comparison near the low end of the CLHHSI range, using zero
105 ; extension. This is equivalent to unsigned comparison.
118 ; Check signed comparison near the low end of the CLHHSI range, using sign
133 ; extension. This is equivalent to unsigned comparison.
173 ; Check signed comparison near the high end of the CHHSI range, using sign
[all …]
H A Dint-cmp-21.ll6 ; Check unsigned comparison near the low end of the CLI range, using zero
20 ; Check unsigned comparison near the low end of the CLI range, using sign
34 ; Check unsigned comparison near the high end of the CLI range, using zero
48 ; Check unsigned comparison near the high end of the CLI range, using sign
75 ; When using unsigned comparison with sign extension, equality with values
103 ; Check signed comparison near the low end of the CLI range, using zero
104 ; extension. This is equivalent to unsigned comparison.
117 ; Check signed comparison near the low end of the CLI range, using sign
130 ; Check signed comparison near the high end of the CLI range, using zero
131 ; extension. This is equivalent to unsigned comparison.
[all …]
H A Dint-cmp-20.ll6 ; Check unsigned comparison near the low end of the CLI range, using zero
20 ; Check unsigned comparison near the low end of the CLI range, using sign
34 ; Check unsigned comparison near the high end of the CLI range, using zero
48 ; Check unsigned comparison near the high end of the CLI range, using sign
75 ; When using unsigned comparison with sign extension, equality with values
103 ; Check signed comparison near the low end of the CLI range, using zero
104 ; extension. This is equivalent to unsigned comparison.
117 ; Check signed comparison near the low end of the CLI range, using sign
130 ; Check signed comparison near the high end of the CLI range, using zero
131 ; extension. This is equivalent to unsigned comparison.
[all …]
H A Dfp-cmp-03.ll1 ; Test 128-bit floating-point comparison. The tests assume a z10 implementation
6 ; There is no memory form of 128-bit comparison.
23 ; Check comparison with zero.
H A Dfp-strict-cmp-03.ll1 ; Test 128-bit floating-point strict comparison. The tests assume a z10
6 ; There is no memory form of 128-bit comparison.
26 ; Check comparison with zero.
H A Dfp-strict-cmps-03.ll1 ; Test 128-bit floating-point signaling comparison. The tests assume a z10
6 ; There is no memory form of 128-bit comparison.
26 ; Check comparison with zero - cannot use LOAD AND TEST.
/llvm-project-15.0.7/clang/test/Sema/
H A Dtautological-objc-bool-compare.m12 …r = B > 1; // expected-warning {{result of comparison of constant 1 with expression of type 'BOOL'…
14 …r = B < 0; // expected-warning {{result of comparison of constant 0 with expression of type 'BOOL'…
15 …r = B >= 0; // expected-warning {{result of comparison of constant 0 with expression of type 'BOOL…
18 …r = B > YES; // expected-warning {{result of comparison of constant YES with expression of type 'B…
20 …r = B < NO; // expected-warning {{result of comparison of constant NO with expression of type 'BOO…
22 …r = B >= NO; // expected-warning {{result of comparison of constant NO with expression of type 'BO…
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/abseil/
H A Dtime-comparison.rst1 .. title:: clang-tidy - abseil-time-comparison
3 abseil-time-comparison
9 alignment may occur. If the comparison depends on this alignment, doing the
10 comparison in the ``absl::Time`` domain may yield a different result. In
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/cert/
H A Dexp42-c.rst2 :http-equiv=refresh: 5;URL=../bugprone/suspicious-memory-comparison.html
8 `bugprone-suspicious-memory-comparison <../bugprone/suspicious-memory-comparison.html>`_ for more i…
H A Dflp37-c.rst2 :http-equiv=refresh: 5;URL=../bugprone/suspicious-memory-comparison.html
8 `bugprone-suspicious-memory-comparison <../bugprone/suspicious-memory-comparison.html>`_ for more i…
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/bugprone/
H A Dsuspicious-string-compare.rst6 Find suspicious usage of runtime string comparison functions.
45 When `true`, the check will warn on implicit comparison. `true` by default.
49 When `true`, the check will warn on logical not comparison. `false` by default.
53 A string specifying the comma-separated names of the extra string comparison
55 The check will detect the following string comparison functions:
/llvm-project-15.0.7/llvm/test/MC/ARM/
H A Dmve-vcmp.s88 # ERROR: [[@LINE+1]]:9: {{error|note}}: condition code for sign-independent integer comparison must…
91 # ERROR: [[@LINE+1]]:9: {{error|note}}: condition code for sign-independent integer comparison must…
137 # ERROR: [[@LINE+1]]:9: {{error|note}}: condition code for unsigned integer comparison must be EQ, …
140 # ERROR: [[@LINE+1]]:9: {{error|note}}: condition code for unsigned integer comparison must be EQ, …
151 # ERROR: [[@LINE+1]]:10: {{error|note}}: condition code for sign-independent integer comparison mus…
154 # ERROR: [[@LINE+1]]:10: {{error|note}}: condition code for sign-independent integer comparison mus…
184 # ERROR: [[@LINE+1]]:10: {{error|note}}: condition code for unsigned integer comparison must be EQ,…
187 # ERROR: [[@LINE+1]]:10: {{error|note}}: condition code for unsigned integer comparison must be EQ,…
198 # ERROR: [[@LINE+1]]:10: {{error|note}}: condition code for sign-independent integer comparison mus…
201 # ERROR: [[@LINE+1]]:10: {{error|note}}: condition code for sign-independent integer comparison mus…
[all …]
/llvm-project-15.0.7/llvm/docs/
H A DMergeFunctions.rst160 Every comparison is based either on the numbers or on the flags comparison. In
239 comparison.
257 Functions comparison
263 comparison:
326 Consider how type comparison works.
363 (numbers comparison).
467 a simple comparison:
506 comparison.
511 the result of numbers comparison:
524 and finish comparison procedure.
[all …]
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/android/
H A Dcomparison-in-temp-failure-retry.rst1 .. title:: clang-tidy - android-comparison-in-temp-failure-retry
3 android-comparison-in-temp-failure-retry
25 Because TEMP_FAILURE_RETRY will check for whether the result *of the comparison*
28 If you encounter this, the fix is simple: lift the comparison out of the
/llvm-project-15.0.7/llvm/test/Verifier/
H A Dinvalid-vp-intrinsics.ll15 ; CHECK: invalid predicate for VP FP comparison intrinsic
17 ; CHECK: invalid predicate for VP FP comparison intrinsic
26 ; CHECK: invalid predicate for VP integer comparison intrinsic
28 ; CHECK: invalid predicate for VP integer comparison intrinsic
/llvm-project-15.0.7/llvm/test/SafepointIRVerifier/
H A Dcompares.ll7 ; comparison against null.
17 ; comparison against exclusively derived null.
27 ; comparison against a constant non-null pointer. This is unrelocated use, since
40 ; comparison against a derived pointer that is *not* exclusively derived from
61 ; comparison between 2 unrelocated base pointers.
73 ; comparison between a relocated and an unrelocated pointer.

12345678910>>...18