interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / seed / ng / a64 / tests / oir / v-f64-ops.oir

223 lines · 5525 bytes Raw Blame History
1omegair 1
2type %t32 = array f64 10
3type %t33 = ref edit host %t32
4type %t34 = slice edit host f64
5type %t35 = vec f64 2
6type %t36 = array u8 96
7type %t37 = ref edit host %t36
8type %t38 = ref view host %t36
9global @g0 %t32 zero
10global @g1 %t36 zero
11fn @f0 flags 0 %1:u64 %2:u64 -> void
12block ^0
13%3 = gaddr %t37 @g1
14%4 = const u64 1
15%5 = conv u8 0 %2
16%6 = chk.bounds 3 %0 %3 %1 %4
17%7 = store %6 %3 %1 %5
18%8 = const u64 1
19%9 = chk.add 1 %7 %1 %8
20%10 = add u64 %1 %8
21%11 = const u64 8
22%12 = chk.shift 7 %9 %11
23%13 = shr u64 %2 %11
24%14 = conv u8 0 %13
25%15 = chk.bounds 3 %12 %3 %10 %4
26%16 = store %15 %3 %10 %14
27%17 = const u64 2
28%18 = chk.add 1 %16 %1 %17
29%19 = add u64 %1 %17
30%20 = const u64 16
31%21 = chk.shift 7 %18 %20
32%22 = shr u64 %2 %20
33%23 = conv u8 0 %22
34%24 = chk.bounds 3 %21 %3 %19 %4
35%25 = store %24 %3 %19 %23
36%26 = const u64 3
37%27 = chk.add 1 %25 %1 %26
38%28 = add u64 %1 %26
39%29 = const u64 24
40%30 = chk.shift 7 %27 %29
41%31 = shr u64 %2 %29
42%32 = conv u8 0 %31
43%33 = chk.bounds 3 %30 %3 %28 %4
44%34 = store %33 %3 %28 %32
45%35 = const u64 4
46%36 = chk.add 1 %34 %1 %35
47%37 = add u64 %1 %35
48%38 = const u64 32
49%39 = chk.shift 7 %36 %38
50%40 = shr u64 %2 %38
51%41 = conv u8 0 %40
52%42 = chk.bounds 3 %39 %3 %37 %4
53%43 = store %42 %3 %37 %41
54%44 = const u64 5
55%45 = chk.add 1 %43 %1 %44
56%46 = add u64 %1 %44
57%47 = const u64 40
58%48 = chk.shift 7 %45 %47
59%49 = shr u64 %2 %47
60%50 = conv u8 0 %49
61%51 = chk.bounds 3 %48 %3 %46 %4
62%52 = store %51 %3 %46 %50
63%53 = const u64 6
64%54 = chk.add 1 %52 %1 %53
65%55 = add u64 %1 %53
66%56 = const u64 48
67%57 = chk.shift 7 %54 %56
68%58 = shr u64 %2 %56
69%59 = conv u8 0 %58
70%60 = chk.bounds 3 %57 %3 %55 %4
71%61 = store %60 %3 %55 %59
72%62 = const u64 7
73%63 = chk.add 1 %61 %1 %62
74%64 = add u64 %1 %62
75%65 = const u64 56
76%66 = chk.shift 7 %63 %65
77%67 = shr u64 %2 %65
78%68 = conv u8 0 %67
79%69 = chk.bounds 3 %66 %3 %64 %4
80%70 = store %69 %3 %64 %68
81ret %70
82end
83export @f1 flags 0 -> i32
84block ^0
85%1 = gaddr %t33 @g0
86%2 = const u64 1
87%3 = const u64 2
88%4 = const u64 0
89%5 = const f64 0x3ff0000000000001
90%6 = chk.bounds 3 %0 %1 %4 %2
91%7 = store %6 %1 %4 %5
92%8 = const u64 1
93%9 = const f64 0x3ff0000000000001
94%10 = chk.bounds 3 %7 %1 %8 %2
95%11 = store %10 %1 %8 %9
96%12 = const u64 2
97%13 = const f64 0x3feffffffffffffe
98%14 = chk.bounds 3 %11 %1 %12 %2
99%15 = store %14 %1 %12 %13
100%16 = const u64 3
101%17 = const f64 0x3ff0000000000001
102%18 = chk.bounds 3 %15 %1 %16 %2
103%19 = store %18 %1 %16 %17
104%20 = const u64 4
105%21 = const f64 0xbff0000000000000
106%22 = chk.bounds 3 %19 %1 %20 %2
107%23 = store %22 %1 %20 %21
108%24 = const u64 5
109%25 = const f64 0xbff0000000000002
110%26 = chk.bounds 3 %23 %1 %24 %2
111%27 = store %26 %1 %24 %25
112%28 = const u64 6
113%29 = const f64 0x400c000000000000
114%30 = chk.bounds 3 %27 %1 %28 %2
115%31 = store %30 %1 %28 %29
116%32 = const u64 7
117%33 = const f64 0xc012000000000000
118%34 = chk.bounds 3 %31 %1 %32 %2
119%35 = store %34 %1 %32 %33
120%36 = const u64 0
121%37 = const u64 2
122%38 = const u64 4
123%39 = const u64 6
124%40 = chk.bounds 3 %35 %1 %36 %3
125%41 = vload %t35 %40 %1 %36
126%42 = chk.bounds 3 %40 %1 %37 %3
127%43 = vload %t35 %42 %1 %37
128%44 = chk.bounds 3 %42 %1 %38 %3
129%45 = vload %t35 %44 %1 %38
130%46 = chk.bounds 3 %44 %1 %39 %3
131%47 = vload %t35 %46 %1 %39
132%48 = add u64 %36 %2
133%49 = chk.bounds 3 %46 %1 %48 %3
134%50 = vload %t35 %49 %1 %48
135%51 = const f64 0x3fd0000000000000
136%52 = vsplat %t35 %51
137%53 = add %t35 %47 %50
138%54 = sub %t35 %47 %52
139%55 = mul %t35 %47 %52
140%56 = fma %t35 %41 %43 %45
141%57 = const u64 8
142%58 = chk.slice 3 %49 %1 %57 %3
143%59 = slice %t34 %58 %1 %57 %3
144%60 = chk.bounds 3 %58 %59 %36 %3
145%61 = vstore %60 %59 %36 %56
146%62 = chk.bounds 3 %61 %59 %36 %3
147%63 = vload %t35 %62 %59 %36
148%64 = add u64 %38 %2
149%65 = chk.bounds 3 %62 %1 %64 %3
150%66 = vstore %65 %1 %64 %55
151%67 = chk.bounds 3 %66 %1 %64 %3
152%68 = vload %t35 %67 %1 %64
153%69 = const u64 0
154%70 = vextract f64 0 %52
155%71 = bitcast u64 %70
156%72 = const u64 0
157%73 = call void %67 @f0 %72 %71
158%74 = xor u64 %69 %71
159%75 = vextract f64 1 %52
160%76 = bitcast u64 %75
161%77 = const u64 8
162%78 = call void %73 @f0 %77 %76
163%79 = xor u64 %74 %76
164%80 = vextract f64 0 %53
165%81 = bitcast u64 %80
166%82 = const u64 16
167%83 = call void %78 @f0 %82 %81
168%84 = xor u64 %79 %81
169%85 = vextract f64 1 %53
170%86 = bitcast u64 %85
171%87 = const u64 24
172%88 = call void %83 @f0 %87 %86
173%89 = xor u64 %84 %86
174%90 = vextract f64 0 %54
175%91 = bitcast u64 %90
176%92 = const u64 32
177%93 = call void %88 @f0 %92 %91
178%94 = xor u64 %89 %91
179%95 = vextract f64 1 %54
180%96 = bitcast u64 %95
181%97 = const u64 40
182%98 = call void %93 @f0 %97 %96
183%99 = xor u64 %94 %96
184%100 = vextract f64 0 %68
185%101 = bitcast u64 %100
186%102 = const u64 48
187%103 = call void %98 @f0 %102 %101
188%104 = xor u64 %99 %101
189%105 = vextract f64 1 %68
190%106 = bitcast u64 %105
191%107 = const u64 56
192%108 = call void %103 @f0 %107 %106
193%109 = xor u64 %104 %106
194%110 = vextract f64 0 %56
195%111 = bitcast u64 %110
196%112 = const u64 64
197%113 = call void %108 @f0 %112 %111
198%114 = xor u64 %109 %111
199%115 = vextract f64 1 %56
200%116 = bitcast u64 %115
201%117 = const u64 72
202%118 = call void %113 @f0 %117 %116
203%119 = xor u64 %114 %116
204%120 = vextract f64 0 %63
205%121 = bitcast u64 %120
206%122 = const u64 80
207%123 = call void %118 @f0 %122 %121
208%124 = xor u64 %119 %121
209%125 = vextract f64 1 %63
210%126 = bitcast u64 %125
211%127 = const u64 88
212%128 = call void %123 @f0 %127 %126
213%129 = xor u64 %124 %126
214%130 = gaddr %t38 @g1
215%131 = const u64 96
216%132 = const i32 1
217%133 = chk.slice 3 %128 %130 %36 %131
218%134 %135 = host i64 54 %133 %132 %130 %36 %131
219%136 = const u64 255
220%137 = and u64 %129 %136
221%138 = conv i32 0 %137
222retv %134 %138
223end