@@ -38,6 +38,24 @@ void foo(double *d, float f, float *fp, long double *l, int *i, const char *c) {
3838// NO__ERRNO-NEXT: [[FREXP_F128_0:%.+]] = extractvalue { fp128, i32 } [[FREXP_F128]], 0
3939
4040
41+ // NO__ERRNO: [[MODF_F64:%.+]] = call { double, double } @llvm.modf.f64(double %{{.+}})
42+ // NO__ERRNO-NEXT: [[MODF_F64_FP:%.+]] = extractvalue { double, double } [[MODF_F64]], 0
43+ // NO__ERRNO-NEXT: [[MODF_F64_IP:%.+]] = extractvalue { double, double } [[MODF_F64]], 1
44+ // NO__ERRNO-NEXT: store double [[MODF_F64_IP]], ptr %{{.+}}, align 8
45+
46+ // NO__ERRNO: [[MODF_F32:%.+]] = call { float, float } @llvm.modf.f32(float %{{.+}})
47+ // NO__ERRNO-NEXT: [[MODF_F32_FP:%.+]] = extractvalue { float, float } [[MODF_F32]], 0
48+ // NO__ERRNO-NEXT: [[MODF_F32_IP:%.+]] = extractvalue { float, float } [[MODF_F32]], 1
49+ // NO__ERRNO-NEXT: store float [[MODF_F32_IP]], ptr %{{.+}}, align 4
50+
51+ // NO__ERRNO: [[MODF_F80:%.+]] = call { x86_fp80, x86_fp80 } @llvm.modf.f80(x86_fp80 %{{.+}})
52+ // NO__ERRNO-NEXT: [[MODF_F80_FP:%.+]] = extractvalue { x86_fp80, x86_fp80 } [[MODF_F80]], 0
53+ // NO__ERRNO-NEXT: [[MODF_F80_IP:%.+]] = extractvalue { x86_fp80, x86_fp80 } [[MODF_F80]], 1
54+ // NO__ERRNO-NEXT: store x86_fp80 [[MODF_F80_IP]], ptr %{{.+}}, align 16
55+
56+ // NO__ERRNO: call fp128 @modff128(fp128 noundef %{{.+}}, ptr noundef %{{.+}})
57+
58+
4159// NO__ERRNO: [[SINCOS_F64:%.+]] = call { double, double } @llvm.sincos.f64(double %{{.+}})
4260// NO__ERRNO-NEXT: [[SINCOS_F64_0:%.+]] = extractvalue { double, double } [[SINCOS_F64]], 0
4361// NO__ERRNO-NEXT: [[SINCOS_F64_1:%.+]] = extractvalue { double, double } [[SINCOS_F64]], 1
@@ -158,13 +176,13 @@ void foo(double *d, float f, float *fp, long double *l, int *i, const char *c) {
158176
159177 __builtin_modf (f ,d ); __builtin_modff (f ,fp ); __builtin_modfl (f ,l ); __builtin_modff128 (f ,l );
160178
161- // NO__ERRNO: declare double @ modf(double noundef, ptr noundef ) [[NOT_READNONE:#[0-9]+ ]]
162- // NO__ERRNO: declare float @modff( float noundef, ptr noundef ) [[NOT_READNONE ]]
163- // NO__ERRNO: declare x86_fp80 @modfl( x86_fp80 noundef, ptr noundef ) [[NOT_READNONE ]]
164- // NO__ERRNO: declare fp128 @modff128(fp128 noundef, ptr noundef) [[NOT_READNONE]]
165- // HAS_ERRNO: declare double @ modf(double noundef, ptr noundef ) [[NOT_READNONE ]]
166- // HAS_ERRNO: declare float @modff( float noundef, ptr noundef ) [[NOT_READNONE ]]
167- // HAS_ERRNO: declare x86_fp80 @modfl( x86_fp80 noundef, ptr noundef ) [[NOT_READNONE ]]
179+ // NO__ERRNO: declare { double, double } @llvm. modf.f64 (double) [[READNONE_INTRINSIC ]]
180+ // NO__ERRNO: declare { float, float } @llvm.modf.f32(float ) [[READNONE_INTRINSIC ]]
181+ // NO__ERRNO: declare { x86_fp80, x86_fp80 } @llvm.modf.f80(x86_fp80 ) [[READNONE_INTRINSIC ]]
182+ // NO__ERRNO: declare fp128 @modff128(fp128 noundef, ptr noundef) [[NOT_READNONE:#[0-9]+ ]]
183+ // HAS_ERRNO: declare { double, double } @llvm. modf.f64 (double) [[READNONE_INTRINSIC ]]
184+ // HAS_ERRNO: declare { float, float } @llvm.modf.f32(float ) [[READNONE_INTRINSIC ]]
185+ // HAS_ERRNO: declare { x86_fp80, x86_fp80 } @llvm.modf.f80(x86_fp80 ) [[READNONE_INTRINSIC ]]
168186// HAS_ERRNO: declare fp128 @modff128(fp128 noundef, ptr noundef) [[NOT_READNONE]]
169187
170188 __builtin_nan (c ); __builtin_nanf (c ); __builtin_nanl (c ); __builtin_nanf128 (c );
0 commit comments