Lines Matching refs:mem1
22 ; Check memcmp(mem1, mem2, 0) -> 0.
24 define i32 @test_simplify2(i8* %mem1, i8* %mem2) {
26 %ret = call i32 @memcmp(i8* %mem1, i8* %mem2, i32 0)
31 ;; Check memcmp(mem1, mem2, 1) -> *(unsigned char*)mem1 - *(unsigned char*)mem2.
33 define i32 @test_simplify3(i8* %mem1, i8* %mem2) {
35 %ret = call i32 @memcmp(i8* %mem1, i8* %mem2, i32 1)
36 ; CHECK: [[LOAD1:%[a-z]+]] = load i8, i8* %mem1, align 1
45 ; Check memcmp(mem1, mem2, size) -> cnst, where all arguments are constants.
49 %mem1 = getelementptr [4 x i8], [4 x i8]* @hel, i32 0, i32 0
51 %ret = call i32 @memcmp(i8* %mem1, i8* %mem2, i32 3)
58 %mem1 = getelementptr [4 x i8], [4 x i8]* @hel, i32 0, i32 0
60 %ret = call i32 @memcmp(i8* %mem1, i8* %mem2, i32 3)
67 %mem1 = getelementptr [4 x i8], [4 x i8]* @foo, i32 0, i32 0
69 %ret = call i32 @memcmp(i8* %mem1, i8* %mem2, i32 3)
74 ; Check memcmp(mem1, mem2, 8)==0 -> *(int64_t*)mem1 == *(int64_t*)mem2
91 ; Check memcmp(mem1, mem2, 4)==0 -> *(int32_t*)mem1 == *(int32_t*)mem2
108 ; Check memcmp(mem1, mem2, 2)==0 -> *(int16_t*)mem1 == *(int16_t*)mem2