Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/ng/a64/tests/oir/v-spill-loop.oir # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / ng / a64 / tests / oir / v-spill-loop.oir` 396 lines ยท 9496 bytes Raw Blame History 1 omegair 1 2 type %t32 = vec f32 4 3 type %t33 = vec f64 2 4 type %t34 = array u8 64 5 type %t35 = ref edit host %t34 6 type %t36 = ref view host %t34 7 global @g0 %t34 zero 8 fn @f0 flags 0 %1:u64 %2:u32 -> void 9 block ^0 10 %3 = gaddr %t35 @g0 11 %4 = const u64 1 12 %5 = const u32 8 13 %6 = const u32 16 14 %7 = const u32 24 15 %8 = conv u8 0 %2 16 %9 = chk.bounds 3 %0 %3 %1 %4 17 %10 = store %9 %3 %1 %8 18 %11 = const u64 1 19 %12 = chk.add 1 %10 %1 %11 20 %13 = add u64 %1 %11 21 %14 = chk.shift 7 %12 %5 22 %15 = shr u32 %2 %5 23 %16 = conv u8 0 %15 24 %17 = chk.bounds 3 %14 %3 %13 %4 25 %18 = store %17 %3 %13 %16 26 %19 = const u64 2 27 %20 = chk.add 1 %18 %1 %19 28 %21 = add u64 %1 %19 29 %22 = chk.shift 7 %20 %6 30 %23 = shr u32 %2 %6 31 %24 = conv u8 0 %23 32 %25 = chk.bounds 3 %22 %3 %21 %4 33 %26 = store %25 %3 %21 %24 34 %27 = const u64 3 35 %28 = chk.add 1 %26 %1 %27 36 %29 = add u64 %1 %27 37 %30 = chk.shift 7 %28 %7 38 %31 = shr u32 %2 %7 39 %32 = conv u8 0 %31 40 %33 = chk.bounds 3 %30 %3 %29 %4 41 %34 = store %33 %3 %29 %32 42 ret %34 43 end 44 fn @f1 flags 0 %1:u64 %2:u64 -> void 45 block ^0 46 %3 = gaddr %t35 @g0 47 %4 = const u64 1 48 %5 = conv u8 0 %2 49 %6 = chk.bounds 3 %0 %3 %1 %4 50 %7 = store %6 %3 %1 %5 51 %8 = const u64 1 52 %9 = chk.add 1 %7 %1 %8 53 %10 = add u64 %1 %8 54 %11 = const u64 8 55 %12 = chk.shift 7 %9 %11 56 %13 = shr u64 %2 %11 57 %14 = conv u8 0 %13 58 %15 = chk.bounds 3 %12 %3 %10 %4 59 %16 = store %15 %3 %10 %14 60 %17 = const u64 2 61 %18 = chk.add 1 %16 %1 %17 62 %19 = add u64 %1 %17 63 %20 = const u64 16 64 %21 = chk.shift 7 %18 %20 65 %22 = shr u64 %2 %20 66 %23 = conv u8 0 %22 67 %24 = chk.bounds 3 %21 %3 %19 %4 68 %25 = store %24 %3 %19 %23 69 %26 = const u64 3 70 %27 = chk.add 1 %25 %1 %26 71 %28 = add u64 %1 %26 72 %29 = const u64 24 73 %30 = chk.shift 7 %27 %29 74 %31 = shr u64 %2 %29 75 %32 = conv u8 0 %31 76 %33 = chk.bounds 3 %30 %3 %28 %4 77 %34 = store %33 %3 %28 %32 78 %35 = const u64 4 79 %36 = chk.add 1 %34 %1 %35 80 %37 = add u64 %1 %35 81 %38 = const u64 32 82 %39 = chk.shift 7 %36 %38 83 %40 = shr u64 %2 %38 84 %41 = conv u8 0 %40 85 %42 = chk.bounds 3 %39 %3 %37 %4 86 %43 = store %42 %3 %37 %41 87 %44 = const u64 5 88 %45 = chk.add 1 %43 %1 %44 89 %46 = add u64 %1 %44 90 %47 = const u64 40 91 %48 = chk.shift 7 %45 %47 92 %49 = shr u64 %2 %47 93 %50 = conv u8 0 %49 94 %51 = chk.bounds 3 %48 %3 %46 %4 95 %52 = store %51 %3 %46 %50 96 %53 = const u64 6 97 %54 = chk.add 1 %52 %1 %53 98 %55 = add u64 %1 %53 99 %56 = const u64 48 100 %57 = chk.shift 7 %54 %56 101 %58 = shr u64 %2 %56 102 %59 = conv u8 0 %58 103 %60 = chk.bounds 3 %57 %3 %55 %4 104 %61 = store %60 %3 %55 %59 105 %62 = const u64 7 106 %63 = chk.add 1 %61 %1 %62 107 %64 = add u64 %1 %62 108 %65 = const u64 56 109 %66 = chk.shift 7 %63 %65 110 %67 = shr u64 %2 %65 111 %68 = conv u8 0 %67 112 %69 = chk.bounds 3 %66 %3 %64 %4 113 %70 = store %69 %3 %64 %68 114 ret %70 115 end 116 fn @f2 flags 0 %1:%t32 %2:%t32 %3:%t32 %4:%t32 %5:%t32 %6:%t32 %7:%t32 %8:%t32 %9:%t32 %10:%t32 %11:%t33 %12:%t33 -> %t32 117 block ^0 118 %13 = add %t32 %1 %2 119 %14 = sub %t32 %13 %3 120 %15 = add %t32 %14 %4 121 %16 = sub %t32 %15 %5 122 %17 = add %t32 %16 %6 123 %18 = sub %t32 %17 %7 124 %19 = add %t32 %18 %8 125 %20 = sub %t32 %19 %9 126 %21 = add %t32 %20 %10 127 %22 = add %t33 %11 %12 128 %23 = vextract f64 0 %22 129 %24 = vextract f64 1 %22 130 %25 = add f64 %23 %24 131 %26 = conv f32 0 %25 132 %27 = vsplat %t32 %26 133 %28 = add %t32 %21 %27 134 retv %0 %28 135 end 136 fn @f3 flags 0 %1:%t32 %2:%t32 %3:%t32 -> %t32 137 block ^0 138 %4 = const u64 0 139 br ^1 %0 %4 %1 %2 %3 140 block ^1 %5:tok %6:u64 %7:%t32 %8:%t32 %9:%t32 141 %10 = const u64 5 142 %11 = lt bool %6 %10 143 cbr %5 %11 ^2 ^3 144 block ^2 %12:tok 145 %13 = const u64 16 146 %14 = chk.fuel 4 %12 %6 %13 147 %15 = const u64 1 148 %16 = add u64 %6 %15 149 %17 = fma %t32 %7 %8 %9 150 br ^1 %14 %16 %8 %9 %17 151 block ^3 %18:tok 152 %19 = add %t32 %7 %8 153 %20 = sub %t32 %19 %9 154 retv %18 %20 155 end 156 export @f4 flags 0 -> i32 157 block ^0 158 %1 = const u64 100 159 %2 = const u64 101 160 %3 = const u64 102 161 %4 = const u64 103 162 %5 = const u64 104 163 %6 = const u64 105 164 %7 = const u64 106 165 %8 = const u64 107 166 %9 = const u64 108 167 %10 = const u64 109 168 %11 = const u64 110 169 %12 = const u64 111 170 %13 = const u64 112 171 %14 = const u64 113 172 %15 = const u64 114 173 %16 = const u64 115 174 %17 = const u64 116 175 %18 = const u64 117 176 %19 = const u64 118 177 %20 = const u64 119 178 %21 = const u64 120 179 %22 = const u64 121 180 %23 = const u64 122 181 %24 = const u64 123 182 %25 = const u64 124 183 %26 = const f32 0x3f000000 184 %27 = vsplat %t32 %26 185 %28 = const f32 0x3f030000 186 %29 = vsplat %t32 %28 187 %30 = const f32 0x3f060000 188 %31 = vsplat %t32 %30 189 %32 = const f32 0x3f090000 190 %33 = vsplat %t32 %32 191 %34 = const f32 0x3f0c0000 192 %35 = vsplat %t32 %34 193 %36 = const f32 0x3f0f0000 194 %37 = vsplat %t32 %36 195 %38 = const f32 0x3f120000 196 %39 = vsplat %t32 %38 197 %40 = const f32 0x3f150000 198 %41 = vsplat %t32 %40 199 %42 = const f32 0x3f180000 200 %43 = vsplat %t32 %42 201 %44 = const f32 0x3f1b0000 202 %45 = vsplat %t32 %44 203 %46 = const f32 0x3f1e0000 204 %47 = vsplat %t32 %46 205 %48 = const f32 0x3f210000 206 %49 = vsplat %t32 %48 207 %50 = const f32 0x3f240000 208 %51 = vsplat %t32 %50 209 %52 = const f32 0x3f270000 210 %53 = vsplat %t32 %52 211 %54 = const f32 0x3f2a0000 212 %55 = vsplat %t32 %54 213 %56 = const f32 0x3f2d0000 214 %57 = vsplat %t32 %56 215 %58 = const f32 0x3f300000 216 %59 = vsplat %t32 %58 217 %60 = const f32 0x3f330000 218 %61 = vsplat %t32 %60 219 %62 = const f32 0x3f360000 220 %63 = vsplat %t32 %62 221 %64 = const f32 0x3f390000 222 %65 = vsplat %t32 %64 223 %66 = const f32 0x3f3c0000 224 %67 = vsplat %t32 %66 225 %68 = const f32 0x3f3f0000 226 %69 = vsplat %t32 %68 227 %70 = const f32 0x3f420000 228 %71 = vsplat %t32 %70 229 %72 = const f32 0x3f450000 230 %73 = vsplat %t32 %72 231 %74 = const f32 0x3f480000 232 %75 = vsplat %t32 %74 233 %76 = const f32 0x3f4b0000 234 %77 = vsplat %t32 %76 235 %78 = const f32 0x3f4e0000 236 %79 = vsplat %t32 %78 237 %80 = const f32 0x3f510000 238 %81 = vsplat %t32 %80 239 %82 = const f32 0x3f540000 240 %83 = vsplat %t32 %82 241 %84 = const f32 0x3f570000 242 %85 = vsplat %t32 %84 243 %86 = const f32 0x3f5a0000 244 %87 = vsplat %t32 %86 245 %88 = const f32 0x3f5d0000 246 %89 = vsplat %t32 %88 247 %90 = const f32 0x3f600000 248 %91 = vsplat %t32 %90 249 %92 = const f32 0x3f630000 250 %93 = vsplat %t32 %92 251 %94 = const f32 0x3f660000 252 %95 = vsplat %t32 %94 253 %96 = const f32 0x3f690000 254 %97 = vsplat %t32 %96 255 %98 = const f64 0x3ff8000000000000 256 %99 = const f64 0x4002000000000000 257 %100 = vsplat %t33 %98 258 %101 = vsplat %t33 %99 259 %102 %103 = call %t32 %0 @f2 %27 %29 %31 %33 %35 %37 %39 %41 %43 %45 %100 %101 260 %104 = add %t32 %103 %27 261 %105 = add %t32 %104 %29 262 %106 = add %t32 %105 %31 263 %107 = add %t32 %106 %33 264 %108 = add %t32 %107 %35 265 %109 = add %t32 %108 %37 266 %110 = add %t32 %109 %39 267 %111 = add %t32 %110 %41 268 %112 = add %t32 %111 %43 269 %113 = add %t32 %112 %45 270 %114 = add %t32 %113 %47 271 %115 = add %t32 %114 %49 272 %116 = add %t32 %115 %51 273 %117 = add %t32 %116 %53 274 %118 = add %t32 %117 %55 275 %119 = add %t32 %118 %57 276 %120 = add %t32 %119 %59 277 %121 = add %t32 %120 %61 278 %122 = add %t32 %121 %63 279 %123 = add %t32 %122 %65 280 %124 = add %t32 %123 %67 281 %125 = add %t32 %124 %69 282 %126 = add %t32 %125 %71 283 %127 = add %t32 %126 %73 284 %128 = add %t32 %127 %75 285 %129 = add %t32 %128 %77 286 %130 = add %t32 %129 %79 287 %131 = add %t32 %130 %81 288 %132 = add %t32 %131 %83 289 %133 = add %t32 %132 %85 290 %134 = add %t32 %133 %87 291 %135 = add %t32 %134 %89 292 %136 = add %t32 %135 %91 293 %137 = add %t32 %136 %93 294 %138 = add %t32 %137 %95 295 %139 = add %t32 %138 %97 296 %140 %141 = call %t32 %102 @f3 %103 %139 %97 297 %142 = add u64 %1 %2 298 %143 = add u64 %142 %3 299 %144 = add u64 %143 %4 300 %145 = add u64 %144 %5 301 %146 = add u64 %145 %6 302 %147 = add u64 %146 %7 303 %148 = add u64 %147 %8 304 %149 = add u64 %148 %9 305 %150 = add u64 %149 %10 306 %151 = add u64 %150 %11 307 %152 = add u64 %151 %12 308 %153 = add u64 %152 %13 309 %154 = add u64 %153 %14 310 %155 = add u64 %154 %15 311 %156 = add u64 %155 %16 312 %157 = add u64 %156 %17 313 %158 = add u64 %157 %18 314 %159 = add u64 %158 %19 315 %160 = add u64 %159 %20 316 %161 = add u64 %160 %21 317 %162 = add u64 %161 %22 318 %163 = add u64 %162 %23 319 %164 = add u64 %163 %24 320 %165 = add u64 %164 %25 321 %166 = conv u32 0 %165 322 %167 = vextract f32 0 %103 323 %168 = bitcast u32 %167 324 %169 = const u64 0 325 %170 = call void %140 @f0 %169 %168 326 %171 = xor u32 %166 %168 327 %172 = vextract f32 1 %103 328 %173 = bitcast u32 %172 329 %174 = const u64 4 330 %175 = call void %170 @f0 %174 %173 331 %176 = xor u32 %171 %173 332 %177 = vextract f32 2 %103 333 %178 = bitcast u32 %177 334 %179 = const u64 8 335 %180 = call void %175 @f0 %179 %178 336 %181 = xor u32 %176 %178 337 %182 = vextract f32 3 %103 338 %183 = bitcast u32 %182 339 %184 = const u64 12 340 %185 = call void %180 @f0 %184 %183 341 %186 = xor u32 %181 %183 342 %187 = vextract f32 0 %139 343 %188 = bitcast u32 %187 344 %189 = const u64 16 345 %190 = call void %185 @f0 %189 %188 346 %191 = xor u32 %186 %188 347 %192 = vextract f32 1 %139 348 %193 = bitcast u32 %192 349 %194 = const u64 20 350 %195 = call void %190 @f0 %194 %193 351 %196 = xor u32 %191 %193 352 %197 = vextract f32 2 %139 353 %198 = bitcast u32 %197 354 %199 = const u64 24 355 %200 = call void %195 @f0 %199 %198 356 %201 = xor u32 %196 %198 357 %202 = vextract f32 3 %139 358 %203 = bitcast u32 %202 359 %204 = const u64 28 360 %205 = call void %200 @f0 %204 %203 361 %206 = xor u32 %201 %203 362 %207 = vextract f32 0 %141 363 %208 = bitcast u32 %207 364 %209 = const u64 32 365 %210 = call void %205 @f0 %209 %208 366 %211 = xor u32 %206 %208 367 %212 = vextract f32 1 %141 368 %213 = bitcast u32 %212 369 %214 = const u64 36 370 %215 = call void %210 @f0 %214 %213 371 %216 = xor u32 %211 %213 372 %217 = vextract f32 2 %141 373 %218 = bitcast u32 %217 374 %219 = const u64 40 375 %220 = call void %215 @f0 %219 %218 376 %221 = xor u32 %216 %218 377 %222 = vextract f32 3 %141 378 %223 = bitcast u32 %222 379 %224 = const u64 44 380 %225 = call void %220 @f0 %224 %223 381 %226 = xor u32 %221 %223 382 %227 = const u64 48 383 %228 = call void %225 @f1 %227 %165 384 %229 = const u64 56 385 %230 = call void %228 @f1 %229 %165 386 %231 = const u64 0 387 %232 = const u64 64 388 %233 = const i32 1 389 %234 = gaddr %t36 @g0 390 %235 = chk.slice 3 %230 %234 %231 %232 391 %236 %237 = host i64 54 %235 %233 %234 %231 %232 392 %238 = const u32 255 393 %239 = and u32 %226 %238 394 %240 = conv i32 0 %239 395 retv %236 %240 396 end