Lines Matching refs:mem2
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)
38 ; CHECK: [[LOAD2:%[a-z]+]] = load i8, i8* %mem2, align 1
45 ; Check memcmp(mem1, mem2, size) -> cnst, where all arguments are constants.
50 %mem2 = getelementptr [8 x i8], [8 x i8]* @hello_u, i32 0, i32 0
51 %ret = call i32 @memcmp(i8* %mem1, i8* %mem2, i32 3)
59 %mem2 = getelementptr [4 x i8], [4 x i8]* @foo, i32 0, i32 0
60 %ret = call i32 @memcmp(i8* %mem1, i8* %mem2, i32 3)
68 %mem2 = getelementptr [4 x i8], [4 x i8]* @hel, i32 0, i32 0
69 %ret = call i32 @memcmp(i8* %mem1, i8* %mem2, i32 3)