Lines Matching refs:strchr
1 ; Test that the strchr library call simplifier works correctly.
11 declare i8* @strchr(i8*, i32)
15 ; CHECK-NOT: call i8* @strchr
19 %dst = call i8* @strchr(i8* %str, i32 119)
26 ; CHECK-NOT: call i8* @strchr
30 %dst = call i8* @strchr(i8* %str, i32 119)
37 ; CHECK-NOT: call i8* @strchr
41 %dst = call i8* @strchr(i8* %src, i32 0)
48 ; CHECK-NOT: call i8* @strchr
52 %dst = call i8* @strchr(i8* %src, i32 %chr)
59 ; CHECK-NOT: call i8* @strchr
63 %dst = call i8* @strchr(i8* %src, i32 65280)
68 ; Check transformation strchr(p, 0) -> p + strlen(p)
71 ; CHECK-NOT: call i8* @strchr
72 ; CHECK: %strchr = getelementptr i8, i8* %str, i32 %strlen
73 ; CHECK: store i8* %strchr, i8** @chp, align 4
76 %dst = call i8* @strchr(i8* %str, i32 0)
81 ; Check transformation strchr("\r\n", C) != nullptr -> (C & 9217) != 0
92 …%dst = call i8* @strchr(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @newlines, i64 0, i64 0), …