| /llvm-project-15.0.7/libc/test/src/__support/ |
| H A D | endian_test.cpp | 15 template <typename T> void check(const T original, const T swapped) { in check() 18 EXPECT_EQ(Endian::to_big_endian(original), swapped); in check() 22 EXPECT_EQ(Endian::to_little_endian(original), swapped); in check() 39 const uint16_t swapped = __builtin_bswap16(original); in TEST_F() local 40 check(original, swapped); in TEST_F() 45 const uint32_t swapped = __builtin_bswap32(original); in TEST_F() local 46 check(original, swapped); in TEST_F() 51 const uint64_t swapped = __builtin_bswap64(original); in TEST_F() local 52 check(original, swapped); in TEST_F()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/SystemZ/ |
| H A D | bswap-06.ll | 13 %swapped = call i16 @llvm.bswap.i16(i16 %a) 14 ret i16 %swapped 24 %swapped = call i16 @llvm.bswap.i16(i16 %a) 25 ret i16 %swapped 37 %swapped = call i16 @llvm.bswap.i16(i16 %a) 38 ret i16 %swapped 48 %swapped = call i16 @llvm.bswap.i16(i16 %a) 49 ret i16 %swapped 60 ret i16 %swapped 73 ret i16 %swapped [all …]
|
| H A D | bswap-07.ll | 12 %swapped = call i16 @llvm.bswap.i16(i16 %a) 13 store i16 %swapped, i16 *%dst 23 %swapped = call i16 @llvm.bswap.i16(i16 %a) 24 store i16 %swapped, i16 *%ptr 36 %swapped = call i16 @llvm.bswap.i16(i16 %a) 37 store i16 %swapped, i16 *%ptr 47 %swapped = call i16 @llvm.bswap.i16(i16 %a) 48 store i16 %swapped, i16 *%ptr 59 store i16 %swapped, i16 *%ptr 72 store i16 %swapped, i16 *%ptr [all …]
|
| H A D | bswap-04.ll | 12 %swapped = call i32 @llvm.bswap.i32(i32 %a) 13 store i32 %swapped, i32 *%dst 23 %swapped = call i32 @llvm.bswap.i32(i32 %a) 24 store i32 %swapped, i32 *%ptr 36 %swapped = call i32 @llvm.bswap.i32(i32 %a) 37 store i32 %swapped, i32 *%ptr 47 %swapped = call i32 @llvm.bswap.i32(i32 %a) 48 store i32 %swapped, i32 *%ptr 59 store i32 %swapped, i32 *%ptr 72 store i32 %swapped, i32 *%ptr [all …]
|
| H A D | bswap-05.ll | 12 %swapped = call i64 @llvm.bswap.i64(i64 %a) 13 store i64 %swapped, i64 *%dst 23 %swapped = call i64 @llvm.bswap.i64(i64 %a) 24 store i64 %swapped, i64 *%ptr 36 %swapped = call i64 @llvm.bswap.i64(i64 %a) 37 store i64 %swapped, i64 *%ptr 47 %swapped = call i64 @llvm.bswap.i64(i64 %a) 48 store i64 %swapped, i64 *%ptr 59 store i64 %swapped, i64 *%ptr 72 store i64 %swapped, i64 *%ptr [all …]
|
| H A D | bswap-02.ll | 13 %swapped = call i32 @llvm.bswap.i32(i32 %a) 14 ret i32 %swapped 24 %swapped = call i32 @llvm.bswap.i32(i32 %a) 25 ret i32 %swapped 37 %swapped = call i32 @llvm.bswap.i32(i32 %a) 38 ret i32 %swapped 48 %swapped = call i32 @llvm.bswap.i32(i32 %a) 49 ret i32 %swapped 60 ret i32 %swapped 73 ret i32 %swapped [all …]
|
| H A D | bswap-03.ll | 13 %swapped = call i64 @llvm.bswap.i64(i64 %a) 14 ret i64 %swapped 24 %swapped = call i64 @llvm.bswap.i64(i64 %a) 25 ret i64 %swapped 37 %swapped = call i64 @llvm.bswap.i64(i64 %a) 38 ret i64 %swapped 48 %swapped = call i64 @llvm.bswap.i64(i64 %a) 49 ret i64 %swapped 60 ret i64 %swapped 73 ret i64 %swapped [all …]
|
| H A D | bswap-01.ll | 13 %swapped = call i32 @llvm.bswap.i32(i32 %a) 14 ret i32 %swapped 22 %swapped = call i64 @llvm.bswap.i64(i64 %a) 23 ret i64 %swapped
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/bugprone/ |
| H A D | swapped-arguments.rst | 1 .. title:: clang-tidy - bugprone-swapped-arguments 3 bugprone-swapped-arguments 6 Finds potentially swapped arguments by looking at implicit conversions.
|
| H A D | suspicious-memset-usage.rst | 26 to be unintended and swapped with ``fill_value``. The check offers to swap 52 memset(ip, sizeof(int), v); // zero length, potentially swapped
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstSimplify/ |
| H A D | redundant-null-check-in-uadd_with_overflow-of-nonnull-ptr.ll | 34 %no_overflow_during_adjustment = icmp ule i64 %base_int, %adjusted ; swapped 49 %res = and i1 %no_overflow_during_adjustment, %non_null_after_adjustment ; swapped 62 %no_overflow_during_adjustment = icmp ule i64 %base_int, %adjusted ; swapped 63 %res = and i1 %no_overflow_during_adjustment, %non_null_after_adjustment ; swapped 94 %no_overflow_during_adjustment = icmp ule i64 %base_int, %adjusted ; swapped 109 %res = or i1 %no_overflow_during_adjustment, %non_null_after_adjustment ; swapped 122 %no_overflow_during_adjustment = icmp ule i64 %base_int, %adjusted ; swapped 155 %no_overflow_during_adjustment = icmp ugt i64 %base_int, %adjusted ; swapped 183 %no_overflow_during_adjustment = icmp ugt i64 %base_int, %adjusted ; swapped 215 %no_overflow_during_adjustment = icmp ugt i64 %base_int, %adjusted ; swapped [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | select_meta.ll | 188 …he select. The metadata remains the same because the select operands are not swapped only inverted. 201 ; The compare should change, and the metadata is swapped because the select operands are swapped an… 214 …he select. The metadata remains the same because the select operands are not swapped only inverted. 227 ; The compare should change, and the metadata is swapped because the select operands are swapped an… 240 …mpare should change, but the metadata remains the same because the select operands are not swapped. 251 ; The compare should change, and the metadata is swapped because the select operands are swapped. 262 …mpare should change, but the metadata remains the same because the select operands are not swapped. 273 ; The compare should change, and the metadata is swapped because the select operands are swapped. 284 ; The condition is inverted, and the select ops are swapped. The metadata should be swapped. 296 ; The condition is inverted, and the select ops are swapped. The metadata should be swapped. [all …]
|
| H A D | invert-variable-mask-in-masked-merge-scalar.ll | 87 ; FIXME: should the %n1 = and i4 %im, %n0 swapped order pattern be tested? 97 %n0 = xor i4 %y, %x ; swapped order 131 %r = xor i4 %y, %n1 ; swapped order 143 %n0 = xor i4 %y, %x ; swapped order 159 %n0 = xor i4 %y, %x ; swapped order 161 %r = xor i4 %y, %n1 ; swapped order 177 %r = xor i4 %x, %n1 ; swapped order, %x instead of %y 193 %n0 = xor i4 %y, %x ; swapped order 195 %r = xor i4 %x, %n1 ; swapped order, %x instead of %y 208 %n1 = and i4 %notmask, %n0 ; swapped [all …]
|
| H A D | unfold-masked-merge-with-const-mask-scalar.ll | 97 %n0 = xor i4 %y, %x ; swapped order 129 %r = xor i4 %y, %n1 ; swapped order 140 %n0 = xor i4 %y, %x ; swapped order 155 %n0 = xor i4 %y, %x ; swapped order 157 %r = xor i4 %y, %n1 ; swapped order 172 %r = xor i4 %x, %n1 ; swapped order, %x instead of %y 187 %n0 = xor i4 %y, %x ; swapped order 189 %r = xor i4 %x, %n1 ; swapped order, %x instead of %y 200 %r = xor i4 %y, %n1 ; swapped
|
| H A D | masked-merge-xor.ll | 191 %and = and i32 %m, %x ; swapped order 210 %and1 = and i32 %y, %neg; swapped order 226 %ret = xor i32 %and1, %and ; swapped order 240 %and = and i32 %m, %x ; swapped order 242 %and1 = and i32 %y, %neg; swapped order 255 %and = and i32 %m, %x ; swapped order 258 %ret = xor i32 %and1, %and ; swapped order 274 %and1 = and i32 %y, %neg; swapped order 275 %ret = xor i32 %and1, %and ; swapped order 289 %and = and i32 %m, %x ; swapped order [all …]
|
| H A D | masked-merge-or.ll | 191 %and = and i32 %m, %x ; swapped order 210 %and1 = and i32 %y, %neg; swapped order 226 %ret = or i32 %and1, %and ; swapped order 240 %and = and i32 %m, %x ; swapped order 242 %and1 = and i32 %y, %neg; swapped order 255 %and = and i32 %m, %x ; swapped order 258 %ret = or i32 %and1, %and ; swapped order 274 %and1 = and i32 %y, %neg; swapped order 275 %ret = or i32 %and1, %and ; swapped order 289 %and = and i32 %m, %x ; swapped order [all …]
|
| H A D | masked-merge-add.ll | 191 %and = and i32 %m, %x ; swapped order 210 %and1 = and i32 %y, %neg; swapped order 226 %ret = add i32 %and1, %and ; swapped order 240 %and = and i32 %m, %x ; swapped order 242 %and1 = and i32 %y, %neg; swapped order 255 %and = and i32 %m, %x ; swapped order 258 %ret = add i32 %and1, %and ; swapped order 274 %and1 = and i32 %y, %neg; swapped order 275 %ret = add i32 %and1, %and ; swapped order 289 %and = and i32 %m, %x ; swapped order [all …]
|
| H A D | masked-merge-and-of-ors.ll | 134 %or = or i32 %x, %neg ; swapped order 152 %or1 = or i32 %m, %y; swapped order 168 %ret = and i32 %or1, %or ; swapped order 183 %or = or i32 %x, %neg ; swapped order 184 %or1 = or i32 %m, %y; swapped order 198 %or = or i32 %x, %neg ; swapped order 200 %ret = and i32 %or1, %or ; swapped order 216 %or1 = or i32 %m, %y; swapped order 217 %ret = and i32 %or1, %or ; swapped order 232 %or = or i32 %x, %neg ; swapped order [all …]
|
| H A D | canonicalize-constant-low-bit-mask-and-icmp-uge-to-icmp-ule.ll | 107 %ret = icmp uge i8 %x, %tmp0 ; swapped order 124 %tmp1 = and i8 %x, %tmp0 ; swapped order 137 %ret = icmp uge i8 %x, %tmp1 ; swapped order 148 %tmp1 = and i8 %x, %tmp0 ; swapped order 149 %ret = icmp uge i8 %x, %tmp1 ; swapped order
|
| H A D | canonicalize-constant-low-bit-mask-and-icmp-ult-to-icmp-ugt.ll | 118 %ret = icmp ult i8 %x, %tmp0 ; swapped order 135 %tmp1 = and i8 %x, %tmp0 ; swapped order 148 %ret = icmp ult i8 %x, %tmp1 ; swapped order 159 %tmp1 = and i8 %x, %tmp0 ; swapped order 160 %ret = icmp ult i8 %x, %tmp1 ; swapped order
|
| H A D | canonicalize-constant-low-bit-mask-and-icmp-eq-to-icmp-ule.ll | 107 %ret = icmp eq i8 %x, %tmp0 ; swapped order 124 %tmp1 = and i8 %x, %tmp0 ; swapped order 139 %ret = icmp eq i8 %x, %tmp1 ; swapped order 152 %tmp1 = and i8 %x, %tmp0 ; swapped order 153 %ret = icmp eq i8 %x, %tmp1 ; swapped order
|
| H A D | canonicalize-constant-low-bit-mask-and-icmp-ne-to-icmp-ugt.ll | 117 %ret = icmp ne i8 %x, %tmp0 ; swapped order 134 %tmp1 = and i8 %x, %tmp0 ; swapped order 149 %ret = icmp ne i8 %x, %tmp1 ; swapped order 162 %tmp1 = and i8 %x, %tmp0 ; swapped order 163 %ret = icmp ne i8 %x, %tmp1 ; swapped order
|
| H A D | result-of-add-of-negative-or-zero-is-non-zero-and-no-underflow.ll | 170 %r = and i1 %no_underflow, %not_null ; swapped 186 %r = select i1 %no_underflow, i1 %not_null, i1 false ; swapped 200 %no_underflow = icmp uge i8 %base, %adjusted ; swapped 216 %no_underflow = icmp uge i8 %base, %adjusted ; swapped 231 %no_underflow = icmp uge i8 %base, %adjusted ; swapped 232 %r = and i1 %no_underflow, %not_null ; swapped 247 %no_underflow = icmp uge i8 %base, %adjusted ; swapped 248 %r = select i1 %no_underflow, i1 %not_null, i1 false ; swapped
|
| H A D | invert-variable-mask-in-masked-merge-vector.ll | 157 ; FIXME: should %n1 = and <2 x i4> %im, %n0 swapped order pattern be tested? 167 %n0 = xor <2 x i4> %y, %x ; swapped order 201 %r = xor <2 x i4> %y, %n1 ; swapped order 213 %n0 = xor <2 x i4> %y, %x ; swapped order 229 %n0 = xor <2 x i4> %y, %x ; swapped order 231 %r = xor <2 x i4> %y, %n1 ; swapped order 247 %r = xor <2 x i4> %x, %n1 ; swapped order, %x instead of %y 263 %n0 = xor <2 x i4> %y, %x ; swapped order 265 %r = xor <2 x i4> %x, %n1 ; swapped order, %x instead of %y 278 %n1 = and <2 x i4> %notmask, %n0 ; swapped [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/ |
| H A D | swaps-le-2.ll | 74 ; which becomes (10+8)%16 = 2 (LE swapped). 77 ; which becomes (1+4)%8 = 5 (LE swapped). 80 ; which becomes (2+2)%4 = 0 (LE swapped).
|