Lines Matching refs:annotation
3 ; Test cases to make sure !annotation metadata is preserved, if possible.
4 ; Currently we fail to preserve !annotation metadata in many cases.
6 ; Make sure !annotation metadata is added to new instructions, if the source
7 ; instruction has !annotation metadata.
10 ; CHECK-NEXT: [[C:%.*]] = icmp uge i8* [[A:%.*]], [[B:%[a-z]*]], !annotation [[ANN:![0-9]+]]
13 %a.c = bitcast i8* %a to i32*, !annotation !0
14 %b.c = bitcast i8* %b to i32*, !annotation !0
15 %c = icmp uge i32* %a.c, %b.c, !annotation !0
19 ; Make sure !annotation is not added to new instructions if the source
21 ; !annotation).
27 %a.c = bitcast i8* %a to i32*, !annotation !0
28 %b.c = bitcast i8* %b to i32*, !annotation !0
33 ; Make sure !annotation metadata is *not* added if we replace an instruction
34 ; with !annotation with an existing one without.
41 %res = add i32 0, %add, !annotation !0
46 ; !annotation metadata.
52 ; CHECK-NEXT: [[TMP1:%.*]] = load i8, i8* [[S:%.*]], align 1, !annotation [[ANN]]
53 ; CHECK-NEXT: store i8 [[TMP1]], i8* [[D:%.*]], align 1, !annotation [[ANN]]
56 call void @llvm.memcpy.p0i8.p0i8.i32(i8* %d, i8* %s, i32 1, i1 false), !annotation !0
64 ; CHECK-NEXT: [[TMP1:%.*]] = load i8, i8* [[S:%.*]], align 1, !annotation [[ANN]]
65 ; CHECK-NEXT: store i8 [[TMP1]], i8* [[D:%.*]], align 1, !annotation [[ANN]]
68 call i8* @memcpy(i8* %d, i8* %s, i64 1), !annotation !0
76 ; CHECK-NEXT: [[TMP1:%.*]] = load i8, i8* [[S:%.*]], align 1, !annotation [[ANN]]
77 ; CHECK-NEXT: store i8 [[TMP1]], i8* [[D:%.*]], align 1, !annotation [[ANN]]
80 call i8* @__memcpy_chk(i8* %d, i8* %s, i64 1, i64 1), !annotation !0
88 ; CHECK-NEXT: [[TMP1:%.*]] = load i8, i8* [[S:%.*]], align 1, !annotation [[ANN]]
89 ; CHECK-NEXT: store i8 [[TMP1]], i8* [[D:%.*]], align 1, !annotation [[ANN]]
92 call void @llvm.memmove.p0i8.p0i8.i32(i8* %d, i8* %s, i32 1, i1 false), !annotation !0
100 ; CHECK-NEXT: [[TMP1:%.*]] = load i8, i8* [[S:%.*]], align 1, !annotation [[ANN]]
101 ; CHECK-NEXT: store i8 [[TMP1]], i8* [[D:%.*]], align 1, !annotation [[ANN]]
104 call i8* @memmove(i8* %d, i8* %s, i64 1), !annotation !0
112 ; CHECK-NEXT: [[TMP1:%.*]] = load i8, i8* [[S:%.*]], align 1, !annotation [[ANN]]
113 ; CHECK-NEXT: store i8 [[TMP1]], i8* [[D:%.*]], align 1, !annotation [[ANN]]
116 call i8* @__memmove_chk(i8* %d, i8* %s, i64 1, i64 1), !annotation !0
124 ; CHECK-NEXT: store i8 1, i8* [[D:%.*]], align 1, !annotation [[ANN]]
127 call void @llvm.memset.p0i8.i32(i8* %d, i8 1, i32 1, i1 false), !annotation !0
135 ; CHECK-NEXT: store i8 1, i8* [[D:%.*]], align 1, !annotation [[ANN]]
138 call i8* @memset(i8* %d, i32 1, i64 1), !annotation !0
146 ; CHECK-NEXT: store i8 1, i8* [[D:%.*]], align 1, !annotation [[ANN]]
149 call i8* @__memset_chk(i8* %d, i32 1, i64 1, i64 1), !annotation !0