Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 1 | ; RUN: opt < %s -mtriple=x86_64-- -inferattrs -S | FileCheck -check-prefix=CHECK-UNKNOWN %s |
| 2 | ; RUN: opt < %s -mtriple=x86_64-- -passes=inferattrs -S | FileCheck -check-prefix=CHECK-UNKNOWN %s |
| 3 | ; RUN: opt < %s -mtriple=x86_64-apple-macosx10.8.0 -inferattrs -S | FileCheck -check-prefix=CHECK -check-prefix=CHECK-DARWIN %s |
| 4 | ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -inferattrs -S | FileCheck -check-prefix=CHECK -check-prefix=CHECK-LINUX %s |
| 5 | ; RUN: opt < %s -mtriple=nvptx -inferattrs -S | FileCheck -check-prefix=CHECK-NVPTX %s |
| 6 | |
| 7 | ; operator new routines |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 8 | declare i8* @_Znwj(i64 ) |
Juneyoung Lee | 67aac91 | 2020-09-20 18:08:27 +0900 | [diff] [blame^] | 9 | ; CHECK: declare noalias noundef nonnull i8* @_Znwj(i64) [[G0:#[0-9]+]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 10 | declare i8* @_Znwm(i64) |
Juneyoung Lee | 67aac91 | 2020-09-20 18:08:27 +0900 | [diff] [blame^] | 11 | ; CHECK: declare noalias noundef nonnull i8* @_Znwm(i64) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 12 | |
| 13 | declare i32 @__nvvm_reflect(i8*) |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 14 | ; CHECK-NVPTX: declare noundef i32 @__nvvm_reflect(i8* noundef) [[G0:#[0-9]+]] |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 15 | ; CHECK-NVPTX: attributes [[G0]] = { nofree nounwind readnone } |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 16 | |
| 17 | |
| 18 | ; Check all the libc functions (thereby also exercising the prototype check). |
| 19 | ; Note that it's OK to modify these as attributes might be missing. These checks |
| 20 | ; reflect the currently inferred attributes. |
| 21 | |
| 22 | ; Use an opaque pointer type for all the (possibly opaque) structs. |
| 23 | %opaque = type opaque |
| 24 | |
| 25 | ; CHECK: declare double @__acos_finite(double) |
| 26 | declare double @__acos_finite(double) |
| 27 | |
| 28 | ; CHECK: declare float @__acosf_finite(float) |
| 29 | declare float @__acosf_finite(float) |
| 30 | |
| 31 | ; CHECK: declare double @__acosh_finite(double) |
| 32 | declare double @__acosh_finite(double) |
| 33 | |
| 34 | ; CHECK: declare float @__acoshf_finite(float) |
| 35 | declare float @__acoshf_finite(float) |
| 36 | |
| 37 | ; CHECK: declare x86_fp80 @__acoshl_finite(x86_fp80) |
| 38 | declare x86_fp80 @__acoshl_finite(x86_fp80) |
| 39 | |
| 40 | ; CHECK: declare x86_fp80 @__acosl_finite(x86_fp80) |
| 41 | declare x86_fp80 @__acosl_finite(x86_fp80) |
| 42 | |
| 43 | ; CHECK: declare double @__asin_finite(double) |
| 44 | declare double @__asin_finite(double) |
| 45 | |
| 46 | ; CHECK: declare float @__asinf_finite(float) |
| 47 | declare float @__asinf_finite(float) |
| 48 | |
| 49 | ; CHECK: declare x86_fp80 @__asinl_finite(x86_fp80) |
| 50 | declare x86_fp80 @__asinl_finite(x86_fp80) |
| 51 | |
| 52 | ; CHECK: declare double @__atan2_finite(double, double) |
| 53 | declare double @__atan2_finite(double, double) |
| 54 | |
| 55 | ; CHECK: declare float @__atan2f_finite(float, float) |
| 56 | declare float @__atan2f_finite(float, float) |
| 57 | |
| 58 | ; CHECK: declare x86_fp80 @__atan2l_finite(x86_fp80, x86_fp80) |
| 59 | declare x86_fp80 @__atan2l_finite(x86_fp80, x86_fp80) |
| 60 | |
| 61 | ; CHECK: declare double @__atanh_finite(double) |
| 62 | declare double @__atanh_finite(double) |
| 63 | |
| 64 | ; CHECK: declare float @__atanhf_finite(float) |
| 65 | declare float @__atanhf_finite(float) |
| 66 | |
| 67 | ; CHECK: declare x86_fp80 @__atanhl_finite(x86_fp80) |
| 68 | declare x86_fp80 @__atanhl_finite(x86_fp80) |
| 69 | |
| 70 | ; CHECK: declare double @__cosh_finite(double) |
| 71 | declare double @__cosh_finite(double) |
| 72 | |
| 73 | ; CHECK: declare float @__coshf_finite(float) |
| 74 | declare float @__coshf_finite(float) |
| 75 | |
| 76 | ; CHECK: declare x86_fp80 @__coshl_finite(x86_fp80) |
| 77 | declare x86_fp80 @__coshl_finite(x86_fp80) |
| 78 | |
| 79 | ; CHECK: declare double @__cospi(double) |
| 80 | declare double @__cospi(double) |
| 81 | |
| 82 | ; CHECK: declare float @__cospif(float) |
| 83 | declare float @__cospif(float) |
| 84 | |
| 85 | ; CHECK: declare double @__exp10_finite(double) |
| 86 | declare double @__exp10_finite(double) |
| 87 | |
| 88 | ; CHECK: declare float @__exp10f_finite(float) |
| 89 | declare float @__exp10f_finite(float) |
| 90 | |
| 91 | ; CHECK: declare x86_fp80 @__exp10l_finite(x86_fp80) |
| 92 | declare x86_fp80 @__exp10l_finite(x86_fp80) |
| 93 | |
| 94 | ; CHECK: declare double @__exp2_finite(double) |
| 95 | declare double @__exp2_finite(double) |
| 96 | |
| 97 | ; CHECK: declare float @__exp2f_finite(float) |
| 98 | declare float @__exp2f_finite(float) |
| 99 | |
| 100 | ; CHECK: declare x86_fp80 @__exp2l_finite(x86_fp80) |
| 101 | declare x86_fp80 @__exp2l_finite(x86_fp80) |
| 102 | |
| 103 | ; CHECK: declare double @__exp_finite(double) |
| 104 | declare double @__exp_finite(double) |
| 105 | |
| 106 | ; CHECK: declare float @__expf_finite(float) |
| 107 | declare float @__expf_finite(float) |
| 108 | |
| 109 | ; CHECK: declare x86_fp80 @__expl_finite(x86_fp80) |
| 110 | declare x86_fp80 @__expl_finite(x86_fp80) |
| 111 | |
| 112 | ; CHECK: declare double @__log10_finite(double) |
| 113 | declare double @__log10_finite(double) |
| 114 | |
| 115 | ; CHECK: declare float @__log10f_finite(float) |
| 116 | declare float @__log10f_finite(float) |
| 117 | |
| 118 | ; CHECK: declare x86_fp80 @__log10l_finite(x86_fp80) |
| 119 | declare x86_fp80 @__log10l_finite(x86_fp80) |
| 120 | |
| 121 | ; CHECK: declare double @__log2_finite(double) |
| 122 | declare double @__log2_finite(double) |
| 123 | |
| 124 | ; CHECK: declare float @__log2f_finite(float) |
| 125 | declare float @__log2f_finite(float) |
| 126 | |
| 127 | ; CHECK: declare x86_fp80 @__log2l_finite(x86_fp80) |
| 128 | declare x86_fp80 @__log2l_finite(x86_fp80) |
| 129 | |
| 130 | ; CHECK: declare double @__log_finite(double) |
| 131 | declare double @__log_finite(double) |
| 132 | |
| 133 | ; CHECK: declare float @__logf_finite(float) |
| 134 | declare float @__logf_finite(float) |
| 135 | |
| 136 | ; CHECK: declare x86_fp80 @__logl_finite(x86_fp80) |
| 137 | declare x86_fp80 @__logl_finite(x86_fp80) |
| 138 | |
| 139 | ; CHECK: declare double @__pow_finite(double, double) |
| 140 | declare double @__pow_finite(double, double) |
| 141 | |
| 142 | ; CHECK: declare float @__powf_finite(float, float) |
| 143 | declare float @__powf_finite(float, float) |
| 144 | |
| 145 | ; CHECK: declare x86_fp80 @__powl_finite(x86_fp80, x86_fp80) |
| 146 | declare x86_fp80 @__powl_finite(x86_fp80, x86_fp80) |
| 147 | |
| 148 | ; CHECK: declare double @__sinh_finite(double) |
| 149 | declare double @__sinh_finite(double) |
| 150 | |
| 151 | ; CHECK: declare float @__sinhf_finite(float) |
| 152 | declare float @__sinhf_finite(float) |
| 153 | |
| 154 | ; CHECK: declare x86_fp80 @__sinhl_finite(x86_fp80) |
| 155 | declare x86_fp80 @__sinhl_finite(x86_fp80) |
| 156 | |
| 157 | ; CHECK: declare double @__sinpi(double) |
| 158 | declare double @__sinpi(double) |
| 159 | |
| 160 | ; CHECK: declare float @__sinpif(float) |
| 161 | declare float @__sinpif(float) |
| 162 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 163 | ; CHECK: declare i32 @abs(i32) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 164 | declare i32 @abs(i32) |
| 165 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 166 | ; CHECK: declare noundef i32 @access(i8* nocapture noundef readonly, i32 noundef) [[G1:#[0-9]+]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 167 | declare i32 @access(i8*, i32) |
| 168 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 169 | ; CHECK: declare double @acos(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 170 | declare double @acos(double) |
| 171 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 172 | ; CHECK: declare float @acosf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 173 | declare float @acosf(float) |
| 174 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 175 | ; CHECK: declare double @acosh(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 176 | declare double @acosh(double) |
| 177 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 178 | ; CHECK: declare float @acoshf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 179 | declare float @acoshf(float) |
| 180 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 181 | ; CHECK: declare x86_fp80 @acoshl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 182 | declare x86_fp80 @acoshl(x86_fp80) |
| 183 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 184 | ; CHECK: declare x86_fp80 @acosl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 185 | declare x86_fp80 @acosl(x86_fp80) |
| 186 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 187 | ; CHECK: declare double @asin(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 188 | declare double @asin(double) |
| 189 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 190 | ; CHECK: declare float @asinf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 191 | declare float @asinf(float) |
| 192 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 193 | ; CHECK: declare double @asinh(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 194 | declare double @asinh(double) |
| 195 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 196 | ; CHECK: declare float @asinhf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 197 | declare float @asinhf(float) |
| 198 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 199 | ; CHECK: declare x86_fp80 @asinhl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 200 | declare x86_fp80 @asinhl(x86_fp80) |
| 201 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 202 | ; CHECK: declare x86_fp80 @asinl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 203 | declare x86_fp80 @asinl(x86_fp80) |
| 204 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 205 | ; CHECK: declare double @atan(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 206 | declare double @atan(double) |
| 207 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 208 | ; CHECK: declare double @atan2(double, double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 209 | declare double @atan2(double, double) |
| 210 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 211 | ; CHECK: declare float @atan2f(float, float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 212 | declare float @atan2f(float, float) |
| 213 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 214 | ; CHECK: declare x86_fp80 @atan2l(x86_fp80, x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 215 | declare x86_fp80 @atan2l(x86_fp80, x86_fp80) |
| 216 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 217 | ; CHECK: declare float @atanf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 218 | declare float @atanf(float) |
| 219 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 220 | ; CHECK: declare double @atanh(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 221 | declare double @atanh(double) |
| 222 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 223 | ; CHECK: declare float @atanhf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 224 | declare float @atanhf(float) |
| 225 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 226 | ; CHECK: declare x86_fp80 @atanhl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 227 | declare x86_fp80 @atanhl(x86_fp80) |
| 228 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 229 | ; CHECK: declare x86_fp80 @atanl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 230 | declare x86_fp80 @atanl(x86_fp80) |
| 231 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 232 | ; CHECK: declare double @atof(i8* nocapture) [[G2:#[0-9]+]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 233 | declare double @atof(i8*) |
| 234 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 235 | ; CHECK: declare i32 @atoi(i8* nocapture) [[G2]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 236 | declare i32 @atoi(i8*) |
| 237 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 238 | ; CHECK: declare i64 @atol(i8* nocapture) [[G2]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 239 | declare i64 @atol(i8*) |
| 240 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 241 | ; CHECK: declare i64 @atoll(i8* nocapture) [[G2]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 242 | declare i64 @atoll(i8*) |
| 243 | |
Florian Hahn | 20e989e | 2020-08-28 09:37:01 +0100 | [diff] [blame] | 244 | ; CHECK-LINUX: declare i32 @bcmp(i8* nocapture, i8* nocapture, i64) [[ARGMEMONLY_NOFREE_NOUNWIND_READONLY:#[0-9]+]] |
Alex Lorenz | 8d5c280 | 2019-08-07 00:03:37 +0000 | [diff] [blame] | 245 | ; CHECK-DARWIN-NOT: declare i32 @bcmp(i8* nocapture, i8* nocapture, i64) [[G2]] |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 246 | ; CHECK-UNKNOWN-NOT: declare i32 @bcmp(i8* nocapture, i8* nocapture, i64) [[G2]] |
| 247 | ; CHECK-NVPTX-NOT: declare i32 @bcmp(i8* nocapture, i8* nocapture, i64) [[G2]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 248 | declare i32 @bcmp(i8*, i8*, i64) |
| 249 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 250 | ; CHECK: declare void @bcopy(i8* nocapture readonly, i8* nocapture, i64) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 251 | declare void @bcopy(i8*, i8*, i64) |
| 252 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 253 | ; CHECK: declare void @bzero(i8* nocapture, i64) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 254 | declare void @bzero(i8*, i64) |
| 255 | |
Juneyoung Lee | 67aac91 | 2020-09-20 18:08:27 +0900 | [diff] [blame^] | 256 | ; CHECK: declare noalias noundef i8* @calloc(i64, i64) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 257 | declare i8* @calloc(i64, i64) |
| 258 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 259 | ; CHECK: declare double @cbrt(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 260 | declare double @cbrt(double) |
| 261 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 262 | ; CHECK: declare float @cbrtf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 263 | declare float @cbrtf(float) |
| 264 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 265 | ; CHECK: declare x86_fp80 @cbrtl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 266 | declare x86_fp80 @cbrtl(x86_fp80) |
| 267 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 268 | ; CHECK: declare double @ceil(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 269 | declare double @ceil(double) |
| 270 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 271 | ; CHECK: declare float @ceilf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 272 | declare float @ceilf(float) |
| 273 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 274 | ; CHECK: declare x86_fp80 @ceill(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 275 | declare x86_fp80 @ceill(x86_fp80) |
| 276 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 277 | ; CHECK: declare noundef i32 @chmod(i8* nocapture noundef readonly, i16 noundef zeroext) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 278 | declare i32 @chmod(i8*, i16 zeroext) |
| 279 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 280 | ; CHECK: declare noundef i32 @chown(i8* nocapture noundef readonly, i32 noundef, i32 noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 281 | declare i32 @chown(i8*, i32, i32) |
| 282 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 283 | ; CHECK: declare void @clearerr(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 284 | declare void @clearerr(%opaque*) |
| 285 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 286 | ; CHECK: declare noundef i32 @closedir(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 287 | declare i32 @closedir(%opaque*) |
| 288 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 289 | ; CHECK: declare double @copysign(double, double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 290 | declare double @copysign(double, double) |
| 291 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 292 | ; CHECK: declare float @copysignf(float, float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 293 | declare float @copysignf(float, float) |
| 294 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 295 | ; CHECK: declare x86_fp80 @copysignl(x86_fp80, x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 296 | declare x86_fp80 @copysignl(x86_fp80, x86_fp80) |
| 297 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 298 | ; CHECK: declare double @cos(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 299 | declare double @cos(double) |
| 300 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 301 | ; CHECK: declare float @cosf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 302 | declare float @cosf(float) |
| 303 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 304 | ; CHECK: declare double @cosh(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 305 | declare double @cosh(double) |
| 306 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 307 | ; CHECK: declare float @coshf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 308 | declare float @coshf(float) |
| 309 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 310 | ; CHECK: declare x86_fp80 @coshl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 311 | declare x86_fp80 @coshl(x86_fp80) |
| 312 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 313 | ; CHECK: declare x86_fp80 @cosl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 314 | declare x86_fp80 @cosl(x86_fp80) |
| 315 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 316 | ; CHECK: declare noundef i8* @ctermid(i8* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 317 | declare i8* @ctermid(i8*) |
| 318 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 319 | ; CHECK: declare double @exp(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 320 | declare double @exp(double) |
| 321 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 322 | ; CHECK: declare double @exp2(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 323 | declare double @exp2(double) |
| 324 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 325 | ; CHECK: declare float @exp2f(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 326 | declare float @exp2f(float) |
| 327 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 328 | ; CHECK: declare x86_fp80 @exp2l(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 329 | declare x86_fp80 @exp2l(x86_fp80) |
| 330 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 331 | ; CHECK: declare float @expf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 332 | declare float @expf(float) |
| 333 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 334 | ; CHECK: declare x86_fp80 @expl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 335 | declare x86_fp80 @expl(x86_fp80) |
| 336 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 337 | ; CHECK: declare double @expm1(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 338 | declare double @expm1(double) |
| 339 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 340 | ; CHECK: declare float @expm1f(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 341 | declare float @expm1f(float) |
| 342 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 343 | ; CHECK: declare x86_fp80 @expm1l(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 344 | declare x86_fp80 @expm1l(x86_fp80) |
| 345 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 346 | ; CHECK: declare double @fabs(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 347 | declare double @fabs(double) |
| 348 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 349 | ; CHECK: declare float @fabsf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 350 | declare float @fabsf(float) |
| 351 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 352 | ; CHECK: declare x86_fp80 @fabsl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 353 | declare x86_fp80 @fabsl(x86_fp80) |
| 354 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 355 | ; CHECK: declare noundef i32 @fclose(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 356 | declare i32 @fclose(%opaque*) |
| 357 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 358 | ; CHECK: declare noalias noundef %opaque* @fdopen(i32 noundef, i8* nocapture noundef readonly) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 359 | declare %opaque* @fdopen(i32, i8*) |
| 360 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 361 | ; CHECK: declare noundef i32 @feof(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 362 | declare i32 @feof(%opaque*) |
| 363 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 364 | ; CHECK: declare noundef i32 @ferror(%opaque* nocapture noundef) [[G2]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 365 | declare i32 @ferror(%opaque*) |
| 366 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 367 | ; CHECK: declare noundef i32 @fflush(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 368 | declare i32 @fflush(%opaque*) |
| 369 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 370 | ; CHECK: declare i32 @ffs(i32) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 371 | declare i32 @ffs(i32) |
| 372 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 373 | ; CHECK: declare i32 @ffsl(i64) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 374 | declare i32 @ffsl(i64) |
| 375 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 376 | ; CHECK: declare i32 @ffsll(i64) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 377 | declare i32 @ffsll(i64) |
| 378 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 379 | ; CHECK: declare noundef i32 @fgetc(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 380 | declare i32 @fgetc(%opaque*) |
| 381 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 382 | ; CHECK: declare noundef i32 @fgetpos(%opaque* nocapture noundef, i64* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 383 | declare i32 @fgetpos(%opaque*, i64*) |
| 384 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 385 | ; CHECK: declare noundef i8* @fgets(i8* noundef, i32 noundef, %opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 386 | declare i8* @fgets(i8*, i32, %opaque*) |
| 387 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 388 | ; CHECK: declare noundef i32 @fileno(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 389 | declare i32 @fileno(%opaque*) |
| 390 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 391 | ; CHECK: declare void @flockfile(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 392 | declare void @flockfile(%opaque*) |
| 393 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 394 | ; CHECK: declare double @floor(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 395 | declare double @floor(double) |
| 396 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 397 | ; CHECK: declare float @floorf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 398 | declare float @floorf(float) |
| 399 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 400 | ; CHECK: declare x86_fp80 @floorl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 401 | declare x86_fp80 @floorl(x86_fp80) |
| 402 | |
| 403 | ; CHECK: declare i32 @fls(i32) |
| 404 | declare i32 @fls(i32) |
| 405 | |
| 406 | ; CHECK: declare i32 @flsl(i64) |
| 407 | declare i32 @flsl(i64) |
| 408 | |
| 409 | ; CHECK: declare i32 @flsll(i64) |
| 410 | declare i32 @flsll(i64) |
| 411 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 412 | ; CHECK: declare double @fmax(double, double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 413 | declare double @fmax(double, double) |
| 414 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 415 | ; CHECK: declare float @fmaxf(float, float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 416 | declare float @fmaxf(float, float) |
| 417 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 418 | ; CHECK: declare x86_fp80 @fmaxl(x86_fp80, x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 419 | declare x86_fp80 @fmaxl(x86_fp80, x86_fp80) |
| 420 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 421 | ; CHECK: declare double @fmin(double, double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 422 | declare double @fmin(double, double) |
| 423 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 424 | ; CHECK: declare float @fminf(float, float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 425 | declare float @fminf(float, float) |
| 426 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 427 | ; CHECK: declare x86_fp80 @fminl(x86_fp80, x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 428 | declare x86_fp80 @fminl(x86_fp80, x86_fp80) |
| 429 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 430 | ; CHECK: declare double @fmod(double, double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 431 | declare double @fmod(double, double) |
| 432 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 433 | ; CHECK: declare float @fmodf(float, float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 434 | declare float @fmodf(float, float) |
| 435 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 436 | ; CHECK: declare x86_fp80 @fmodl(x86_fp80, x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 437 | declare x86_fp80 @fmodl(x86_fp80, x86_fp80) |
| 438 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 439 | ; CHECK: declare noalias noundef %opaque* @fopen(i8* nocapture noundef readonly, i8* nocapture noundef readonly) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 440 | declare %opaque* @fopen(i8*, i8*) |
| 441 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 442 | ; CHECK: declare noundef i32 @fprintf(%opaque* nocapture noundef, i8* nocapture noundef readonly, ...) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 443 | declare i32 @fprintf(%opaque*, i8*, ...) |
| 444 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 445 | ; CHECK: declare noundef i32 @fputc(i32 noundef, %opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 446 | declare i32 @fputc(i32, %opaque*) |
| 447 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 448 | ; CHECK: declare noundef i32 @fputs(i8* nocapture noundef readonly, %opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 449 | declare i32 @fputs(i8*, %opaque*) |
| 450 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 451 | ; CHECK: declare noundef i64 @fread(i8* nocapture noundef, i64 noundef, i64 noundef, %opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 452 | declare i64 @fread(i8*, i64, i64, %opaque*) |
| 453 | |
Juneyoung Lee | 67aac91 | 2020-09-20 18:08:27 +0900 | [diff] [blame^] | 454 | ; CHECK: declare void @free(i8* nocapture noundef) [[G3:#[0-9]+]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 455 | declare void @free(i8*) |
| 456 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 457 | ; CHECK: declare double @frexp(double, i32* nocapture) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 458 | declare double @frexp(double, i32*) |
| 459 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 460 | ; CHECK: declare float @frexpf(float, i32* nocapture) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 461 | declare float @frexpf(float, i32*) |
| 462 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 463 | ; CHECK: declare x86_fp80 @frexpl(x86_fp80, i32* nocapture) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 464 | declare x86_fp80 @frexpl(x86_fp80, i32*) |
| 465 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 466 | ; CHECK: declare noundef i32 @fscanf(%opaque* nocapture noundef, i8* nocapture noundef readonly, ...) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 467 | declare i32 @fscanf(%opaque*, i8*, ...) |
| 468 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 469 | ; CHECK: declare noundef i32 @fseek(%opaque* nocapture noundef, i64 noundef, i32 noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 470 | declare i32 @fseek(%opaque*, i64, i32) |
| 471 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 472 | ; CHECK: declare noundef i32 @fseeko(%opaque* nocapture noundef, i64 noundef, i32 noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 473 | declare i32 @fseeko(%opaque*, i64, i32) |
| 474 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 475 | ; CHECK-LINUX: declare noundef i32 @fseeko64(%opaque* nocapture noundef, i64 noundef, i32 noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 476 | declare i32 @fseeko64(%opaque*, i64, i32) |
| 477 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 478 | ; CHECK: declare noundef i32 @fsetpos(%opaque* nocapture noundef, i64* noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 479 | declare i32 @fsetpos(%opaque*, i64*) |
| 480 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 481 | ; CHECK: declare noundef i32 @fstat(i32 noundef, %opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 482 | declare i32 @fstat(i32, %opaque*) |
| 483 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 484 | ; CHECK-LINUX: declare noundef i32 @fstat64(i32 noundef, %opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 485 | declare i32 @fstat64(i32, %opaque*) |
| 486 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 487 | ; CHECK: declare noundef i32 @fstatvfs(i32 noundef, %opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 488 | declare i32 @fstatvfs(i32, %opaque*) |
| 489 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 490 | ; CHECK-LINUX: declare noundef i32 @fstatvfs64(i32 noundef, %opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 491 | declare i32 @fstatvfs64(i32, %opaque*) |
| 492 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 493 | ; CHECK: declare noundef i64 @ftell(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 494 | declare i64 @ftell(%opaque*) |
| 495 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 496 | ; CHECK: declare noundef i64 @ftello(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 497 | declare i64 @ftello(%opaque*) |
| 498 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 499 | ; CHECK-LINUX: declare noundef i64 @ftello64(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 500 | declare i64 @ftello64(%opaque*) |
| 501 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 502 | ; CHECK: declare noundef i32 @ftrylockfile(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 503 | declare i32 @ftrylockfile(%opaque*) |
| 504 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 505 | ; CHECK: declare void @funlockfile(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 506 | declare void @funlockfile(%opaque*) |
| 507 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 508 | ; CHECK: declare noundef i64 @fwrite(i8* nocapture noundef, i64 noundef, i64 noundef, %opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 509 | declare i64 @fwrite(i8*, i64, i64, %opaque*) |
| 510 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 511 | ; CHECK: declare noundef i32 @getc(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 512 | declare i32 @getc(%opaque*) |
| 513 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 514 | ; CHECK: declare noundef i32 @getc_unlocked(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 515 | declare i32 @getc_unlocked(%opaque*) |
| 516 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 517 | ; CHECK: declare noundef i32 @getchar() [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 518 | declare i32 @getchar() |
| 519 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 520 | ; CHECK: declare noundef i32 @getchar_unlocked() [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 521 | declare i32 @getchar_unlocked() |
| 522 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 523 | ; CHECK: declare noundef i8* @getenv(i8* nocapture noundef) [[G2]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 524 | declare i8* @getenv(i8*) |
| 525 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 526 | ; CHECK: declare noundef i32 @getitimer(i32 noundef, %opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 527 | declare i32 @getitimer(i32, %opaque*) |
| 528 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 529 | ; CHECK: declare noundef i32 @getlogin_r(i8* nocapture noundef, i64 noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 530 | declare i32 @getlogin_r(i8*, i64) |
| 531 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 532 | ; CHECK: declare noundef %opaque* @getpwnam(i8* nocapture noundef readonly) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 533 | declare %opaque* @getpwnam(i8*) |
| 534 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 535 | ; CHECK: declare noundef i8* @gets(i8* noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 536 | declare i8* @gets(i8*) |
| 537 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 538 | ; CHECK: declare noundef i32 @gettimeofday(%opaque* nocapture noundef, i8* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 539 | declare i32 @gettimeofday(%opaque*, i8*) |
| 540 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 541 | ; CHECK: declare i32 @isascii(i32) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 542 | declare i32 @isascii(i32) |
| 543 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 544 | ; CHECK: declare i32 @isdigit(i32) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 545 | declare i32 @isdigit(i32) |
| 546 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 547 | ; CHECK: declare i64 @labs(i64) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 548 | declare i64 @labs(i64) |
| 549 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 550 | ; CHECK: declare noundef i32 @lchown(i8* nocapture noundef readonly, i32 noundef, i32 noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 551 | declare i32 @lchown(i8*, i32, i32) |
| 552 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 553 | ; CHECK: declare double @ldexp(double, i32) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 554 | declare double @ldexp(double, i32) |
| 555 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 556 | ; CHECK: declare float @ldexpf(float, i32) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 557 | declare float @ldexpf(float, i32) |
| 558 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 559 | ; CHECK: declare x86_fp80 @ldexpl(x86_fp80, i32) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 560 | declare x86_fp80 @ldexpl(x86_fp80, i32) |
| 561 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 562 | ; CHECK: declare i64 @llabs(i64) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 563 | declare i64 @llabs(i64) |
| 564 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 565 | ; CHECK: declare double @log(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 566 | declare double @log(double) |
| 567 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 568 | ; CHECK: declare double @log10(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 569 | declare double @log10(double) |
| 570 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 571 | ; CHECK: declare float @log10f(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 572 | declare float @log10f(float) |
| 573 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 574 | ; CHECK: declare x86_fp80 @log10l(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 575 | declare x86_fp80 @log10l(x86_fp80) |
| 576 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 577 | ; CHECK: declare double @log1p(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 578 | declare double @log1p(double) |
| 579 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 580 | ; CHECK: declare float @log1pf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 581 | declare float @log1pf(float) |
| 582 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 583 | ; CHECK: declare x86_fp80 @log1pl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 584 | declare x86_fp80 @log1pl(x86_fp80) |
| 585 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 586 | ; CHECK: declare double @log2(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 587 | declare double @log2(double) |
| 588 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 589 | ; CHECK: declare float @log2f(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 590 | declare float @log2f(float) |
| 591 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 592 | ; CHECK: declare x86_fp80 @log2l(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 593 | declare x86_fp80 @log2l(x86_fp80) |
| 594 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 595 | ; CHECK: declare double @logb(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 596 | declare double @logb(double) |
| 597 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 598 | ; CHECK: declare float @logbf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 599 | declare float @logbf(float) |
| 600 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 601 | ; CHECK: declare x86_fp80 @logbl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 602 | declare x86_fp80 @logbl(x86_fp80) |
| 603 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 604 | ; CHECK: declare float @logf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 605 | declare float @logf(float) |
| 606 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 607 | ; CHECK: declare x86_fp80 @logl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 608 | declare x86_fp80 @logl(x86_fp80) |
| 609 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 610 | ; CHECK: declare noundef i32 @lstat(i8* nocapture noundef readonly, %opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 611 | declare i32 @lstat(i8*, %opaque*) |
| 612 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 613 | ; CHECK-LINUX: declare noundef i32 @lstat64(i8* nocapture noundef readonly, %opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 614 | declare i32 @lstat64(i8*, %opaque*) |
| 615 | |
Juneyoung Lee | 67aac91 | 2020-09-20 18:08:27 +0900 | [diff] [blame^] | 616 | ; CHECK: declare noalias noundef i8* @malloc(i64) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 617 | declare i8* @malloc(i64) |
| 618 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 619 | ; CHECK-LINUX: declare noalias i8* @memalign(i64, i64) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 620 | declare i8* @memalign(i64, i64) |
| 621 | |
Florian Hahn | 20e989e | 2020-08-28 09:37:01 +0100 | [diff] [blame] | 622 | ; CHECK: declare i8* @memccpy(i8* noalias, i8* noalias nocapture readonly, i32, i64) [[ARGMEMONLY_NOFREE_NOUNWIND:#[0-9]+]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 623 | declare i8* @memccpy(i8*, i8*, i32, i64) |
| 624 | |
Florian Hahn | 20e989e | 2020-08-28 09:37:01 +0100 | [diff] [blame] | 625 | ; CHECK-LINUX: declare i8* @memchr(i8*, i32, i64) [[ARGMEMONLY_NOFREE_NOUNWIND_READONLY]] |
| 626 | ; CHECK-DARWIN: declare i8* @memchr(i8*, i32, i64) [[ARGMEMONLY_NOFREE_NOUNWIND_READONLY:#[0-9]+]] |
| 627 | ; CHECK-UNKNOWN: declare i8* @memchr(i8*, i32, i64) [[ARGMEMONLY_NOFREE_NOUNWIND_READONLY:#[0-9]+]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 628 | declare i8* @memchr(i8*, i32, i64) |
| 629 | |
Florian Hahn | 20e989e | 2020-08-28 09:37:01 +0100 | [diff] [blame] | 630 | ; CHECK: declare i32 @memcmp(i8* nocapture, i8* nocapture, i64) [[ARGMEMONLY_NOFREE_NOUNWIND_READONLY]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 631 | declare i32 @memcmp(i8*, i8*, i64) |
| 632 | |
Florian Hahn | 20e989e | 2020-08-28 09:37:01 +0100 | [diff] [blame] | 633 | ; CHECK: declare i8* @memcpy(i8* noalias returned, i8* noalias nocapture readonly, i64) [[ARGMEMONLY_NOFREE_NOUNWIND]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 634 | declare i8* @memcpy(i8*, i8*, i64) |
| 635 | |
Florian Hahn | 20e989e | 2020-08-28 09:37:01 +0100 | [diff] [blame] | 636 | ; CHECK: declare i8* @mempcpy(i8* noalias, i8* noalias nocapture readonly, i64) [[ARGMEMONLY_NOFREE_NOUNWIND]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 637 | declare i8* @mempcpy(i8*, i8*, i64) |
| 638 | |
Florian Hahn | 20e989e | 2020-08-28 09:37:01 +0100 | [diff] [blame] | 639 | ; CHECK: declare i8* @memmove(i8* returned, i8* nocapture readonly, i64) [[ARGMEMONLY_NOFREE_NOUNWIND]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 640 | declare i8* @memmove(i8*, i8*, i64) |
| 641 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 642 | ; CHECK: declare i8* @memset(i8*, i32, i64) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 643 | declare i8* @memset(i8*, i32, i64) |
| 644 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 645 | ; CHECK: declare noundef i32 @mkdir(i8* nocapture noundef readonly, i16 noundef zeroext) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 646 | declare i32 @mkdir(i8*, i16 zeroext) |
| 647 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 648 | ; CHECK: declare noundef i64 @mktime(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 649 | declare i64 @mktime(%opaque*) |
| 650 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 651 | ; CHECK: declare double @modf(double, double* nocapture) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 652 | declare double @modf(double, double*) |
| 653 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 654 | ; CHECK: declare float @modff(float, float* nocapture) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 655 | declare float @modff(float, float*) |
| 656 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 657 | ; CHECK: declare x86_fp80 @modfl(x86_fp80, x86_fp80* nocapture) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 658 | declare x86_fp80 @modfl(x86_fp80, x86_fp80*) |
| 659 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 660 | ; CHECK: declare double @nearbyint(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 661 | declare double @nearbyint(double) |
| 662 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 663 | ; CHECK: declare float @nearbyintf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 664 | declare float @nearbyintf(float) |
| 665 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 666 | ; CHECK: declare x86_fp80 @nearbyintl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 667 | declare x86_fp80 @nearbyintl(x86_fp80) |
| 668 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 669 | ; CHECK: declare noundef i32 @open(i8* nocapture noundef readonly, i32 noundef, ...) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 670 | declare i32 @open(i8*, i32, ...) |
| 671 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 672 | ; CHECK-LINUX: declare noundef i32 @open64(i8* nocapture noundef readonly, i32 noundef, ...) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 673 | declare i32 @open64(i8*, i32, ...) |
| 674 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 675 | ; CHECK: declare noalias noundef %opaque* @opendir(i8* nocapture noundef readonly) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 676 | declare %opaque* @opendir(i8*) |
| 677 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 678 | ; CHECK: declare noundef i32 @pclose(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 679 | declare i32 @pclose(%opaque*) |
| 680 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 681 | ; CHECK: declare void @perror(i8* nocapture noundef readonly) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 682 | declare void @perror(i8*) |
| 683 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 684 | ; CHECK: declare noalias noundef %opaque* @popen(i8* nocapture noundef readonly, i8* nocapture noundef readonly) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 685 | declare %opaque* @popen(i8*, i8*) |
| 686 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 687 | ; CHECK: declare i32 @posix_memalign(i8**, i64, i64) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 688 | declare i32 @posix_memalign(i8**, i64, i64) |
| 689 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 690 | ; CHECK: declare double @pow(double, double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 691 | declare double @pow(double, double) |
| 692 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 693 | ; CHECK: declare float @powf(float, float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 694 | declare float @powf(float, float) |
| 695 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 696 | ; CHECK: declare x86_fp80 @powl(x86_fp80, x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 697 | declare x86_fp80 @powl(x86_fp80, x86_fp80) |
| 698 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 699 | ; CHECK: declare noundef i64 @pread(i32 noundef, i8* nocapture noundef, i64 noundef, i64 noundef) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 700 | declare i64 @pread(i32, i8*, i64, i64) |
| 701 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 702 | ; CHECK: declare noundef i32 @printf(i8* nocapture noundef readonly, ...) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 703 | declare i32 @printf(i8*, ...) |
| 704 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 705 | ; CHECK: declare noundef i32 @putc(i32 noundef, %opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 706 | declare i32 @putc(i32, %opaque*) |
| 707 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 708 | ; CHECK: declare noundef i32 @putchar(i32 noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 709 | declare i32 @putchar(i32) |
| 710 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 711 | ; CHECK: declare noundef i32 @putchar_unlocked(i32 noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 712 | declare i32 @putchar_unlocked(i32) |
| 713 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 714 | ; CHECK: declare noundef i32 @puts(i8* nocapture noundef readonly) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 715 | declare i32 @puts(i8*) |
| 716 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 717 | ; CHECK: declare noundef i64 @pwrite(i32 noundef, i8* nocapture noundef readonly, i64 noundef, i64 noundef) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 718 | declare i64 @pwrite(i32, i8*, i64, i64) |
| 719 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 720 | ; CHECK: declare void @qsort(i8* noundef, i64 noundef, i64 noundef, i32 (i8*, i8*)* nocapture noundef) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 721 | declare void @qsort(i8*, i64, i64, i32 (i8*, i8*)*) |
| 722 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 723 | ; CHECK: declare noundef i64 @read(i32 noundef, i8* nocapture noundef, i64 noundef) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 724 | declare i64 @read(i32, i8*, i64) |
| 725 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 726 | ; CHECK: declare noundef i64 @readlink(i8* nocapture noundef readonly, i8* nocapture noundef, i64 noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 727 | declare i64 @readlink(i8*, i8*, i64) |
| 728 | |
Juneyoung Lee | 67aac91 | 2020-09-20 18:08:27 +0900 | [diff] [blame^] | 729 | ; CHECK: declare noalias noundef i8* @realloc(i8* nocapture, i64) [[G3]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 730 | declare i8* @realloc(i8*, i64) |
| 731 | |
Juneyoung Lee | 67aac91 | 2020-09-20 18:08:27 +0900 | [diff] [blame^] | 732 | ; CHECK: declare noundef i8* @reallocf(i8*, i64) |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 733 | declare i8* @reallocf(i8*, i64) |
| 734 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 735 | ; CHECK: declare noundef i8* @realpath(i8* nocapture noundef readonly, i8* noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 736 | declare i8* @realpath(i8*, i8*) |
| 737 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 738 | ; CHECK: declare noundef i32 @remove(i8* nocapture noundef readonly) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 739 | declare i32 @remove(i8*) |
| 740 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 741 | ; CHECK: declare noundef i32 @rename(i8* nocapture noundef readonly, i8* nocapture noundef readonly) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 742 | declare i32 @rename(i8*, i8*) |
| 743 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 744 | ; CHECK: declare void @rewind(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 745 | declare void @rewind(%opaque*) |
| 746 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 747 | ; CHECK: declare double @rint(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 748 | declare double @rint(double) |
| 749 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 750 | ; CHECK: declare float @rintf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 751 | declare float @rintf(float) |
| 752 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 753 | ; CHECK: declare x86_fp80 @rintl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 754 | declare x86_fp80 @rintl(x86_fp80) |
| 755 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 756 | ; CHECK: declare noundef i32 @rmdir(i8* nocapture noundef readonly) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 757 | declare i32 @rmdir(i8*) |
| 758 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 759 | ; CHECK: declare double @round(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 760 | declare double @round(double) |
| 761 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 762 | ; CHECK: declare float @roundf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 763 | declare float @roundf(float) |
| 764 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 765 | ; CHECK: declare x86_fp80 @roundl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 766 | declare x86_fp80 @roundl(x86_fp80) |
| 767 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 768 | ; CHECK: declare noundef i32 @scanf(i8* nocapture noundef readonly, ...) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 769 | declare i32 @scanf(i8*, ...) |
| 770 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 771 | ; CHECK: declare void @setbuf(%opaque* nocapture noundef, i8* noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 772 | declare void @setbuf(%opaque*, i8*) |
| 773 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 774 | ; CHECK: declare noundef i32 @setitimer(i32 noundef, %opaque* nocapture noundef readonly, %opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 775 | declare i32 @setitimer(i32, %opaque*, %opaque*) |
| 776 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 777 | ; CHECK: declare noundef i32 @setvbuf(%opaque* nocapture noundef, i8* noundef, i32 noundef, i64 noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 778 | declare i32 @setvbuf(%opaque*, i8*, i32, i64) |
| 779 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 780 | ; CHECK: declare double @sin(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 781 | declare double @sin(double) |
| 782 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 783 | ; CHECK: declare float @sinf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 784 | declare float @sinf(float) |
| 785 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 786 | ; CHECK: declare double @sinh(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 787 | declare double @sinh(double) |
| 788 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 789 | ; CHECK: declare float @sinhf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 790 | declare float @sinhf(float) |
| 791 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 792 | ; CHECK: declare x86_fp80 @sinhl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 793 | declare x86_fp80 @sinhl(x86_fp80) |
| 794 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 795 | ; CHECK: declare x86_fp80 @sinl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 796 | declare x86_fp80 @sinl(x86_fp80) |
| 797 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 798 | ; CHECK: declare noundef i32 @snprintf(i8* noalias nocapture noundef, i64 noundef, i8* nocapture noundef readonly, ...) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 799 | declare i32 @snprintf(i8*, i64, i8*, ...) |
| 800 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 801 | ; CHECK: declare noundef i32 @sprintf(i8* noalias nocapture noundef, i8* nocapture noundef readonly, ...) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 802 | declare i32 @sprintf(i8*, i8*, ...) |
| 803 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 804 | ; CHECK: declare double @sqrt(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 805 | declare double @sqrt(double) |
| 806 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 807 | ; CHECK: declare float @sqrtf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 808 | declare float @sqrtf(float) |
| 809 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 810 | ; CHECK: declare x86_fp80 @sqrtl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 811 | declare x86_fp80 @sqrtl(x86_fp80) |
| 812 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 813 | ; CHECK: declare noundef i32 @sscanf(i8* nocapture noundef readonly, i8* nocapture noundef readonly, ...) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 814 | declare i32 @sscanf(i8*, i8*, ...) |
| 815 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 816 | ; CHECK: declare noundef i32 @stat(i8* nocapture noundef readonly, %opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 817 | declare i32 @stat(i8*, %opaque*) |
| 818 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 819 | ; CHECK-LINUX: declare noundef i32 @stat64(i8* nocapture noundef readonly, %opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 820 | declare i32 @stat64(i8*, %opaque*) |
| 821 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 822 | ; CHECK: declare noundef i32 @statvfs(i8* nocapture noundef readonly, %opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 823 | declare i32 @statvfs(i8*, %opaque*) |
| 824 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 825 | ; CHECK-LINUX: declare noundef i32 @statvfs64(i8* nocapture noundef readonly, %opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 826 | declare i32 @statvfs64(i8*, %opaque*) |
| 827 | |
Dávid Bolvanský | 155ac33 | 2020-09-27 21:32:32 +0200 | [diff] [blame] | 828 | ; CHECK: declare i8* @stpcpy(i8* noalias, i8* noalias nocapture readonly) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 829 | declare i8* @stpcpy(i8*, i8*) |
| 830 | |
Dávid Bolvanský | 155ac33 | 2020-09-27 21:32:32 +0200 | [diff] [blame] | 831 | ; CHECK: declare i8* @stpncpy(i8* noalias, i8* noalias nocapture readonly, i64) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 832 | declare i8* @stpncpy(i8*, i8*, i64) |
| 833 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 834 | ; CHECK: declare i32 @strcasecmp(i8* nocapture, i8* nocapture) [[G2]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 835 | declare i32 @strcasecmp(i8*, i8*) |
| 836 | |
Dávid Bolvanský | 155ac33 | 2020-09-27 21:32:32 +0200 | [diff] [blame] | 837 | ; CHECK: declare i8* @strcat(i8* noalias returned, i8* noalias nocapture readonly) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 838 | declare i8* @strcat(i8*, i8*) |
| 839 | |
Florian Hahn | 20e989e | 2020-08-28 09:37:01 +0100 | [diff] [blame] | 840 | ; CHECK: declare i8* @strchr(i8*, i32) [[ARGMEMONLY_NOFREE_NOUNWIND_READONLY]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 841 | declare i8* @strchr(i8*, i32) |
| 842 | |
Florian Hahn | 20e989e | 2020-08-28 09:37:01 +0100 | [diff] [blame] | 843 | ; CHECK: declare i32 @strcmp(i8* nocapture, i8* nocapture) [[ARGMEMONLY_NOFREE_NOUNWIND_READONLY]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 844 | declare i32 @strcmp(i8*, i8*) |
| 845 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 846 | ; CHECK: declare i32 @strcoll(i8* nocapture, i8* nocapture) [[G2]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 847 | declare i32 @strcoll(i8*, i8*) |
| 848 | |
David Bolvansky | 0e0fbae | 2019-08-14 16:50:06 +0000 | [diff] [blame] | 849 | ; CHECK: declare i8* @strcpy(i8* noalias returned, i8* noalias nocapture readonly) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 850 | declare i8* @strcpy(i8*, i8*) |
| 851 | |
Florian Hahn | 20e989e | 2020-08-28 09:37:01 +0100 | [diff] [blame] | 852 | ; CHECK: declare i64 @strcspn(i8* nocapture, i8* nocapture) [[ARGMEMONLY_NOFREE_NOUNWIND_READONLY]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 853 | declare i64 @strcspn(i8*, i8*) |
| 854 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 855 | ; CHECK: declare noalias i8* @strdup(i8* nocapture readonly) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 856 | declare i8* @strdup(i8*) |
| 857 | |
Florian Hahn | 20e989e | 2020-08-28 09:37:01 +0100 | [diff] [blame] | 858 | ; CHECK: declare i64 @strlen(i8* nocapture) [[ARGMEMONLY_NOFREE_NOUNWIND_READONLY]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 859 | declare i64 @strlen(i8*) |
| 860 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 861 | ; CHECK: declare i32 @strncasecmp(i8* nocapture, i8* nocapture, i64) [[G2]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 862 | declare i32 @strncasecmp(i8*, i8*, i64) |
| 863 | |
Dávid Bolvanský | 155ac33 | 2020-09-27 21:32:32 +0200 | [diff] [blame] | 864 | ; CHECK: declare i8* @strncat(i8* noalias returned, i8* noalias nocapture readonly, i64) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 865 | declare i8* @strncat(i8*, i8*, i64) |
| 866 | |
Florian Hahn | 20e989e | 2020-08-28 09:37:01 +0100 | [diff] [blame] | 867 | ; CHECK: declare i32 @strncmp(i8* nocapture, i8* nocapture, i64) [[ARGMEMONLY_NOFREE_NOUNWIND_READONLY]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 868 | declare i32 @strncmp(i8*, i8*, i64) |
| 869 | |
David Bolvansky | 0e0fbae | 2019-08-14 16:50:06 +0000 | [diff] [blame] | 870 | ; CHECK: declare i8* @strncpy(i8* noalias returned, i8* noalias nocapture readonly, i64) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 871 | declare i8* @strncpy(i8*, i8*, i64) |
| 872 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 873 | ; CHECK: declare noalias i8* @strndup(i8* nocapture readonly, i64) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 874 | declare i8* @strndup(i8*, i64) |
| 875 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 876 | ; CHECK: declare i64 @strnlen(i8*, i64) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 877 | declare i64 @strnlen(i8*, i64) |
| 878 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 879 | ; CHECK: declare i8* @strpbrk(i8*, i8* nocapture) [[G2]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 880 | declare i8* @strpbrk(i8*, i8*) |
| 881 | |
Florian Hahn | 20e989e | 2020-08-28 09:37:01 +0100 | [diff] [blame] | 882 | ; CHECK: declare i8* @strrchr(i8*, i32) [[ARGMEMONLY_NOFREE_NOUNWIND_READONLY]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 883 | declare i8* @strrchr(i8*, i32) |
| 884 | |
Florian Hahn | 20e989e | 2020-08-28 09:37:01 +0100 | [diff] [blame] | 885 | ; CHECK: declare i64 @strspn(i8* nocapture, i8* nocapture) [[ARGMEMONLY_NOFREE_NOUNWIND_READONLY]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 886 | declare i64 @strspn(i8*, i8*) |
| 887 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 888 | ; CHECK: declare i8* @strstr(i8*, i8* nocapture) [[G2]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 889 | declare i8* @strstr(i8*, i8*) |
| 890 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 891 | ; CHECK: declare double @strtod(i8* readonly, i8** nocapture) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 892 | declare double @strtod(i8*, i8**) |
| 893 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 894 | ; CHECK: declare float @strtof(i8* readonly, i8** nocapture) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 895 | declare float @strtof(i8*, i8**) |
| 896 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 897 | ; CHECK: declare i8* @strtok(i8*, i8* nocapture readonly) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 898 | declare i8* @strtok(i8*, i8*) |
| 899 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 900 | ; CHECK: declare i8* @strtok_r(i8*, i8* nocapture readonly, i8**) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 901 | declare i8* @strtok_r(i8*, i8*, i8**) |
| 902 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 903 | ; CHECK: declare i64 @strtol(i8* readonly, i8** nocapture, i32) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 904 | declare i64 @strtol(i8*, i8**, i32) |
| 905 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 906 | ; CHECK: declare x86_fp80 @strtold(i8* readonly, i8** nocapture) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 907 | declare x86_fp80 @strtold(i8*, i8**) |
| 908 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 909 | ; CHECK: declare i64 @strtoll(i8* readonly, i8** nocapture, i32) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 910 | declare i64 @strtoll(i8*, i8**, i32) |
| 911 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 912 | ; CHECK: declare i64 @strtoul(i8* readonly, i8** nocapture, i32) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 913 | declare i64 @strtoul(i8*, i8**, i32) |
| 914 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 915 | ; CHECK: declare i64 @strtoull(i8* readonly, i8** nocapture, i32) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 916 | declare i64 @strtoull(i8*, i8**, i32) |
| 917 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 918 | ; CHECK: declare i64 @strxfrm(i8* nocapture, i8* nocapture readonly, i64) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 919 | declare i64 @strxfrm(i8*, i8*, i64) |
| 920 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 921 | ; CHECK: declare noundef i32 @system(i8* nocapture noundef readonly) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 922 | declare i32 @system(i8*) |
| 923 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 924 | ; CHECK: declare double @tan(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 925 | declare double @tan(double) |
| 926 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 927 | ; CHECK: declare float @tanf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 928 | declare float @tanf(float) |
| 929 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 930 | ; CHECK: declare double @tanh(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 931 | declare double @tanh(double) |
| 932 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 933 | ; CHECK: declare float @tanhf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 934 | declare float @tanhf(float) |
| 935 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 936 | ; CHECK: declare x86_fp80 @tanhl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 937 | declare x86_fp80 @tanhl(x86_fp80) |
| 938 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 939 | ; CHECK: declare x86_fp80 @tanl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 940 | declare x86_fp80 @tanl(x86_fp80) |
| 941 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 942 | ; CHECK: declare noundef i64 @times(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 943 | declare i64 @times(%opaque*) |
| 944 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 945 | ; CHECK: declare noalias noundef %opaque* @tmpfile() [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 946 | declare %opaque* @tmpfile() |
| 947 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 948 | ; CHECK-LINUX: declare noalias noundef %opaque* @tmpfile64() [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 949 | declare %opaque* @tmpfile64() |
| 950 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 951 | ; CHECK: declare i32 @toascii(i32) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 952 | declare i32 @toascii(i32) |
| 953 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 954 | ; CHECK: declare double @trunc(double) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 955 | declare double @trunc(double) |
| 956 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 957 | ; CHECK: declare float @truncf(float) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 958 | declare float @truncf(float) |
| 959 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 960 | ; CHECK: declare x86_fp80 @truncl(x86_fp80) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 961 | declare x86_fp80 @truncl(x86_fp80) |
| 962 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 963 | ; CHECK: declare noundef i32 @uname(%opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 964 | declare i32 @uname(%opaque*) |
| 965 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 966 | ; CHECK: declare noundef i32 @ungetc(i32 noundef, %opaque* nocapture noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 967 | declare i32 @ungetc(i32, %opaque*) |
| 968 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 969 | ; CHECK: declare noundef i32 @unlink(i8* nocapture noundef readonly) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 970 | declare i32 @unlink(i8*) |
| 971 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 972 | ; CHECK: declare noundef i32 @unsetenv(i8* nocapture noundef readonly) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 973 | declare i32 @unsetenv(i8*) |
| 974 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 975 | ; CHECK: declare noundef i32 @utime(i8* nocapture noundef readonly, %opaque* nocapture noundef readonly) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 976 | declare i32 @utime(i8*, %opaque*) |
| 977 | |
Juneyoung Lee | 36c8621 | 2020-09-09 20:31:51 +0900 | [diff] [blame] | 978 | ; CHECK: declare noundef i32 @utimes(i8* nocapture noundef readonly, %opaque* nocapture noundef readonly) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 979 | declare i32 @utimes(i8*, %opaque*) |
| 980 | |
Juneyoung Lee | 67aac91 | 2020-09-20 18:08:27 +0900 | [diff] [blame^] | 981 | ; CHECK: declare noalias noundef i8* @valloc(i64) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 982 | declare i8* @valloc(i64) |
| 983 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 984 | ; CHECK: declare noundef i32 @vfprintf(%opaque* nocapture noundef, i8* nocapture noundef readonly, %opaque* noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 985 | declare i32 @vfprintf(%opaque*, i8*, %opaque*) |
| 986 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 987 | ; CHECK: declare noundef i32 @vfscanf(%opaque* nocapture noundef, i8* nocapture noundef readonly, %opaque* noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 988 | declare i32 @vfscanf(%opaque*, i8*, %opaque*) |
| 989 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 990 | ; CHECK: declare noundef i32 @vprintf(i8* nocapture noundef readonly, %opaque* noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 991 | declare i32 @vprintf(i8*, %opaque*) |
| 992 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 993 | ; CHECK: declare noundef i32 @vscanf(i8* nocapture noundef readonly, %opaque* noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 994 | declare i32 @vscanf(i8*, %opaque*) |
| 995 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 996 | ; CHECK: declare noundef i32 @vsnprintf(i8* nocapture noundef, i64 noundef, i8* nocapture noundef readonly, %opaque* noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 997 | declare i32 @vsnprintf(i8*, i64, i8*, %opaque*) |
| 998 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 999 | ; CHECK: declare noundef i32 @vsprintf(i8* nocapture noundef, i8* nocapture noundef readonly, %opaque* noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 1000 | declare i32 @vsprintf(i8*, i8*, %opaque*) |
| 1001 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 1002 | ; CHECK: declare noundef i32 @vsscanf(i8* nocapture noundef readonly, i8* nocapture noundef readonly, %opaque* noundef) [[G1]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 1003 | declare i32 @vsscanf(i8*, i8*, %opaque*) |
| 1004 | |
Juneyoung Lee | ef018cb | 2020-08-10 10:57:18 +0900 | [diff] [blame] | 1005 | ; CHECK: declare noundef i64 @write(i32 noundef, i8* nocapture noundef readonly, i64 noundef) [[G0]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 1006 | declare i64 @write(i32, i8*, i64) |
| 1007 | |
| 1008 | |
| 1009 | ; memset_pattern16 isn't available everywhere. |
Florian Hahn | 20e989e | 2020-08-28 09:37:01 +0100 | [diff] [blame] | 1010 | ; CHECK-DARWIN: declare void @memset_pattern16(i8* nocapture, i8* nocapture readonly, i64) [[G6:#[0-9]+]] |
Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 1011 | declare void @memset_pattern16(i8*, i8*, i64) |
| 1012 | |
Brian Homerding | b4b21d8 | 2019-07-08 15:57:56 +0000 | [diff] [blame] | 1013 | ; CHECK: attributes [[G0]] = { nofree } |
| 1014 | ; CHECK: attributes [[G1]] = { nofree nounwind } |
Florian Hahn | 20e989e | 2020-08-28 09:37:01 +0100 | [diff] [blame] | 1015 | ; CHECK-DAG: attributes [[G2]] = { nofree nounwind readonly } |
| 1016 | ; CHECK-DAG: attributes [[ARGMEMONLY_NOFREE_NOUNWIND_READONLY]] = { argmemonly nofree nounwind readonly } |
| 1017 | ; CHECK-DAG: attributes [[G3]] = { nounwind } |
| 1018 | ; CHECK-DAG: attributes [[ARGMEMONLY_NOFREE_NOUNWIND]] = { argmemonly nofree nounwind } |
| 1019 | ; CHECK-DARWIN: attributes [[G6]] = { argmemonly nofree } |