Home
last modified time | relevance | path

Searched refs:mem2 (Results 1 – 24 of 24) sorted by relevance

/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dmemcmp-1.ll24 ; Check memcmp(mem1, mem2, 0) -> 0.
26 define i32 @test_simplify2(i8* %mem1, i8* %mem2) {
30 %ret = call i32 @memcmp(i8* %mem1, i8* %mem2, i32 0)
34 ;; Check memcmp(mem1, mem2, 1) -> *(unsigned char*)mem1 - *(unsigned char*)mem2.
36 define i32 @test_simplify3(i8* %mem1, i8* %mem2) {
45 %ret = call i32 @memcmp(i8* %mem1, i8* %mem2, i32 1)
57 %ret = call i32 @memcmp(i8* %mem1, i8* %mem2, i32 3)
81 ; Check memcmp(mem1, mem2, 8)==0 -> *(int64_t*)mem1 == *(int64_t*)mem2
99 ; Check memcmp(mem1, mem2, 4)==0 -> *(int32_t*)mem1 == *(int32_t*)mem2
117 ; Check memcmp(mem1, mem2, 2)==0 -> *(int16_t*)mem1 == *(int16_t*)mem2
[all …]
H A Dbcmp-1.ll24 ; Check bcmp(mem1, mem2, 0) -> 0.
26 define i32 @test_simplify2(i8* %mem1, i8* %mem2) {
30 %ret = call i32 @bcmp(i8* %mem1, i8* %mem2, i32 0)
34 ;; Check bcmp(mem1, mem2, 1) -> *(unsigned char*)mem1 - *(unsigned char*)mem2.
36 define i32 @test_simplify3(i8* %mem1, i8* %mem2) {
45 %ret = call i32 @bcmp(i8* %mem1, i8* %mem2, i32 1)
57 %ret = call i32 @bcmp(i8* %mem1, i8* %mem2, i32 3)
67 %ret = call i32 @bcmp(i8* %mem1, i8* %mem2, i32 3)
81 ; Check bcmp(mem1, mem2, 8)==0 -> *(int64_t*)mem1 == *(int64_t*)mem2
99 ; Check bcmp(mem1, mem2, 4)==0 -> *(int32_t*)mem1 == *(int32_t*)mem2
[all …]
H A Dmemmove-1.ll9 ; Check memmove(mem1, mem2, size) -> llvm.memmove(mem1, mem2, size, 1).
11 define i8* @test_simplify1(i8* %mem1, i8* %mem2, i32 %size) {
13 %ret = call i8* @memmove(i8* %mem1, i8* %mem2, i32 %size)
19 define i8* @test_simplify2(i8* %mem1, i8* %mem2, i32 %size) {
23 %ret = tail call i8* @memmove(i8* %mem1, i8* %mem2, i32 %size)
27 define i8* @test_no_simplify1(i8* %mem1, i8* %mem2, i32 %size) {
29 ; CHECK-NEXT: %ret = musttail call i8* @memmove(i8* %mem1, i8* %mem2, i32 %size)
31 %ret = musttail call i8* @memmove(i8* %mem1, i8* %mem2, i32 %size)
35 define i8* @test_no_incompatible_attr(i8* %mem1, i8* %mem2, i32 %size) {
37 %ret = call dereferenceable(1) i8* @memmove(i8* %mem1, i8* %mem2, i32 %size)
H A Dmemcpy-1.ll10 ; Check memcpy(mem1, mem2, size) -> llvm.memcpy(mem1, mem2, size, 1).
12 define i8* @test_simplify1(i8* %mem1, i8* %mem2, i32 %size) {
17 %ret = call i8* @memcpy(i8* %mem1, i8* %mem2, i32 %size)
23 define i8* @test_simplify2(i8* %mem1, i8* %mem2, i32 %size) strictfp {
28 %ret = call i8* @memcpy(i8* %mem1, i8* %mem2, i32 %size) strictfp
36 define i8* @test_simplify3(i8* %mem2, i32 %size) {
44 %ret = tail call i8* @memcpy(i8* %dest, i8* %mem2, i32 %size)
48 define i8* @test_no_incompatible_attr(i8* %mem1, i8* %mem2, i32 %size) {
54 %ret = call dereferenceable(1) i8* @memcpy(i8* %mem1, i8* %mem2, i32 %size)
58 define i8* @test_no_simplify1(i8* %mem1, i8* %mem2, i32 %size) {
[all …]
H A Dmemcpy-2.ll11 define i8 @test_no_simplify1(i8* %mem1, i8* %mem2, i32 %size) {
13 ; CHECK-NEXT: [[RET:%.*]] = call i8 @memcpy(i8* %mem1, i8* %mem2, i32 %size)
16 %ret = call i8 @memcpy(i8* %mem1, i8* %mem2, i32 %size)
H A Dmemmove-2.ll11 define i8 @test_no_simplify1(i8* %mem1, i8* %mem2, i32 %size) {
13 %ret = call i8 @memmove(i8* %mem1, i8* %mem2, i32 %size)
/llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.apply/
H A Dapply_extended_types.pass.cpp33 int mem2() const { return ++count; } in mem2() function
97 mem2_t mem2 = &T::mem2; in test_ext_int_0() local
138 assert(1 == std::apply(mem2, t)); in test_ext_int_0()
146 assert(1 == std::apply(mem2, t)); in test_ext_int_0()
154 assert(1 == std::apply(mem2, t)); in test_ext_int_0()
162 assert(1 == std::apply(mem2, t)); in test_ext_int_0()
209 mem2_t mem2 = &T::mem2; in test_ext_int_1() local
247 assert(6 == std::apply(mem2, t)); in test_ext_int_1()
255 assert(7 == std::apply(mem2, t)); in test_ext_int_1()
263 assert(8 == std::apply(mem2, t)); in test_ext_int_1()
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/
H A Dinvoke_rvalue.pass.cpp42 void mem2() const {count += 2;} in mem2() function
110 void (A_void_1::*fp)() const = &A_void_1::mem2; in test_void_1()
120 void (A_void_1::*fp)() const = &A_void_1::mem2; in test_void_1()
147 int mem2() const {return 4;} in mem2() function
181 assert(std::bind(&A_int_1::mem2, _1)(A_int_1()) == 4); in test_int_1()
182 assert(std::bind(&A_int_1::mem2, A_int_1())() == 4); in test_int_1()
184 assert(std::bind(&A_int_1::mem2, _1)(&a) == 4); in test_int_1()
185 assert(std::bind(&A_int_1::mem2, &a)() == 4); in test_int_1()
216 void mem2(int i) const {count += i;} in mem2() function
H A Dinvoke_lvalue.pass.cpp42 void mem2() const {count += 2;} in mem2() function
118 void (A_void_1::*fp)() const = &A_void_1::mem2; in test_void_1()
129 void (A_void_1::*fp)() const = &A_void_1::mem2; in test_void_1()
157 int mem2() const {return 4;} in mem2() function
196 assert(std::bind(&A_int_1::mem2, _1)(A_int_1()) == 4); in test_int_1()
197 assert(std::bind(&A_int_1::mem2, A_int_1())() == 4); in test_int_1()
199 assert(std::bind(&A_int_1::mem2, _1)(ap) == 4); in test_int_1()
200 assert(std::bind(&A_int_1::mem2, ap)() == 4); in test_int_1()
232 void mem2(int i) const {count += i;} in mem2() function
/llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/refwrap/refwrap.invoke/
H A Dinvoke.pass.cpp40 void mem2() const {++count;} in mem2() function
88 void (A_void_1::*fp)() const = &A_void_1::mem2; in test_void_1()
117 int mem2() const {return 4;} in mem2() function
155 int (A_int_1::*fp)() const = &A_int_1::mem2; in test_int_1()
192 void mem2(int i) const {count += i;} in mem2() function
244 void (A_void_2::*fp)(int) const = &A_void_2::mem2; in test_void_2()
273 int mem2(int i) const {return i+2;} in mem2() function
314 int (A_int_2::*fp)(int) const = &A_int_2::mem2; in testint_2()
/llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.inv/
H A Dinvoke.pass.cpp130 void mem2() const {++count;} in mem2() function
179 void (A_void_1::*fp)() const = &A_void_1::mem2; in test_void_1()
209 int mem2() const {return 4;} in mem2() function
248 int (A_int_1::*fp)() const = &A_int_1::mem2; in test_int_1()
287 void mem2(int i) const {count += i;} in mem2() function
340 void (A_void_2::*fp)(int) const = &A_void_2::mem2; in test_void_2()
370 int mem2(int i) const {return i+2;} in mem2() function
411 int (A_int_2::*fp)(int) const = &A_int_2::mem2; in test_int_2()
/llvm-project-15.0.7/llvm/test/Transforms/CodeGenPrepare/X86/
H A Dextend-sink-hoist.ll8 define i128 @sink(i64* %mem1, i64* %mem2) {
20 %l2 = load i64, i64* %mem2
28 define i64 @hoist(i32* %mem1, i32* %mem2) {
40 %l2 = load i32, i32* %mem2
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dfloat16-declarations.cpp82 _Float16 mem2; member
110 func1t(f1l) + s1.mem2 - f1n + f2n; in main()
H A Dfloat128-declarations.cpp65 __float128 mem2; member
76 func1t(f1l) + s1.mem2 - f1n + f2n; in main()
H A Dibm128-declarations.cpp55 __ibm128 mem2; member
72 __ibm128 lfi = tf.mem2 + func1(lf) - CTest::func3(lf); in main()
H A Dvalue-init.cpp75 int S::*mem2; member
83 return s->*S().mem2; in test()
/llvm-project-15.0.7/clang/test/AST/
H A Dfloat16.cpp202 _Float16 mem2; member
237 func1t(f1l) + s1.mem2 - f1n + f2n; in main()
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dcxx1z-lambda-star-this.cpp266 void mem2(F f) { in mem2() function
278 B{}.mem2( in member_foo()
283 B{}.mem2( in member_foo()
H A Ddefault2.cpp59 int mem2(int i = b); // OK; use Y::b
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dcrash.cpp8 void S<T>::mem2() { in mem2() function in S
/llvm-project-15.0.7/llvm/test/CodeGen/ARM/
H A Datomic-op.ll351 define i32 @load_load_add_acquire(i32* %mem1, i32* %mem2) nounwind {
354 %val2 = load atomic i32, i32* %mem2 acquire, align 4
378 define void @store_store_release(i32* %mem1, i32 %val1, i32* %mem2, i32 %val2) {
381 store atomic i32 %val2, i32* %mem2 release, align 4
402 define void @load_fence_store_monotonic(i32* %mem1, i32* %mem2) {
406 store atomic i32 %val, i32* %mem2 monotonic, align 4
/llvm-project-15.0.7/flang/test/Fir/
H A Dfir-types.fir55 // CHECK-LABEL: func private @mem2() -> !fir.ptr<i32>
61 func.func private @mem2() -> !fir.ptr<i32>
/llvm-project-15.0.7/flang/docs/
H A DBijectiveInternalNameUniquing.md140 complex :: mem2
/llvm-project-15.0.7/mlir/test/Dialect/MemRef/
H A Dcanonicalize.mlir284 // CHECK: %[[mem2:.+]] = memref.cast %[[mem1]] : memref<1xi32, #map> to memref<?xi32, #map>
285 // CHECK: return %[[mem2]] : memref<?xi32, #map>