Lines Matching refs:BCMP
4 …t < %s -passes=instcombine -mtriple=unknown-unknown-linux-gnu -S | FileCheck %s --check-prefix=BCMP
28 ; BCMP-LABEL: @test1(
29 ; BCMP-NEXT: [[STRCMPLOAD:%.*]] = load i8, i8* [[STR2:%.*]], align 1
30 ; BCMP-NEXT: [[TMP1:%.*]] = zext i8 [[STRCMPLOAD]] to i32
31 ; BCMP-NEXT: [[TMP2:%.*]] = sub nsw i32 0, [[TMP1]]
32 ; BCMP-NEXT: ret i32 [[TMP2]]
51 ; BCMP-LABEL: @test2(
52 ; BCMP-NEXT: [[STRCMPLOAD:%.*]] = load i8, i8* [[STR1:%.*]], align 1
53 ; BCMP-NEXT: [[TMP1:%.*]] = zext i8 [[STRCMPLOAD]] to i32
54 ; BCMP-NEXT: ret i32 [[TMP1]]
68 ; BCMP-LABEL: @test3(
69 ; BCMP-NEXT: ret i32 -1
83 ; BCMP-LABEL: @test4(
84 ; BCMP-NEXT: ret i32 1
103 ; BCMP-LABEL: @test5(
104 ; BCMP-NEXT: [[STR2:%.*]] = select i1 [[B:%.*]], i8* getelementptr inbounds ([5 x i8], [5 x i8]*…
105 ; BCMP-NEXT: [[MEMCMP:%.*]] = call i32 @memcmp(i8* noundef nonnull dereferenceable(5) getelement…
106 ; BCMP-NEXT: ret i32 [[MEMCMP]]
123 ; BCMP-LABEL: @test6(
124 ; BCMP-NEXT: ret i32 0
138 ; BCMP-LABEL: @test7(
139 ; BCMP-NEXT: [[STR2:%.*]] = select i1 [[B:%.*]], i8* getelementptr inbounds ([5 x i8], [5 x i8]*…
140 ; BCMP-NEXT: [[BCMP:%.*]] = call i32 @bcmp(i8* noundef nonnull dereferenceable(5) getelementptr …
141 ; BCMP-NEXT: [[RES:%.*]] = icmp eq i32 [[BCMP]], 0
142 ; BCMP-NEXT: ret i1 [[RES]]