2222 ret i32 %a
2323}
2424
25+ ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
26+ declare i32 @llvm.smin.i32 (i32 , i32 ) #3
27+
2528; Function Attrs: nounwind
2629define hidden i32 @main.min2 (i32 %a , i32 %b , ptr %context ) unnamed_addr #2 {
2730entry:
@@ -53,29 +56,39 @@ entry:
5356 ret i8 %0
5457}
5558
59+ ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
60+ declare i8 @llvm.umin.i8 (i8 , i8 ) #3
61+
5662; Function Attrs: nounwind
5763define hidden i32 @main.minUnsigned (i32 %a , i32 %b , ptr %context ) unnamed_addr #2 {
5864entry:
5965 %0 = call i32 @llvm.umin.i32 (i32 %a , i32 %b )
6066 ret i32 %0
6167}
6268
69+ ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
70+ declare i32 @llvm.umin.i32 (i32 , i32 ) #3
71+
6372; Function Attrs: nounwind
6473define hidden float @main.minFloat32 (float %a , float %b , ptr %context ) unnamed_addr #2 {
6574entry:
66- %0 = fcmp olt float %a , %b
67- %1 = select i1 %0 , float %a , float %b
68- ret float %1
75+ %0 = call float @llvm.minimum.f32 (float %a , float %b )
76+ ret float %0
6977}
7078
79+ ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
80+ declare float @llvm.minimum.f32 (float , float ) #3
81+
7182; Function Attrs: nounwind
7283define hidden double @main.minFloat64 (double %a , double %b , ptr %context ) unnamed_addr #2 {
7384entry:
74- %0 = fcmp olt double %a , %b
75- %1 = select i1 %0 , double %a , double %b
76- ret double %1
85+ %0 = call double @llvm.minimum.f64 (double %a , double %b )
86+ ret double %0
7787}
7888
89+ ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
90+ declare double @llvm.minimum.f64 (double , double ) #3
91+
7992; Function Attrs: nounwind
8093define hidden %runtime._string @main.minString (ptr readonly %a.data , i32 %a.len , ptr readonly %b.data , i32 %b.len , ptr %context ) unnamed_addr #2 {
8194entry:
@@ -100,21 +113,29 @@ entry:
100113 ret i32 %0
101114}
102115
116+ ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
117+ declare i32 @llvm.smax.i32 (i32 , i32 ) #3
118+
103119; Function Attrs: nounwind
104120define hidden i32 @main.maxUint (i32 %a , i32 %b , ptr %context ) unnamed_addr #2 {
105121entry:
106122 %0 = call i32 @llvm.umax.i32 (i32 %a , i32 %b )
107123 ret i32 %0
108124}
109125
126+ ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
127+ declare i32 @llvm.umax.i32 (i32 , i32 ) #3
128+
110129; Function Attrs: nounwind
111130define hidden float @main.maxFloat32 (float %a , float %b , ptr %context ) unnamed_addr #2 {
112131entry:
113- %0 = fcmp ogt float %a , %b
114- %1 = select i1 %0 , float %a , float %b
115- ret float %1
132+ %0 = call float @llvm.maximum.f32 (float %a , float %b )
133+ ret float %0
116134}
117135
136+ ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
137+ declare float @llvm.maximum.f32 (float , float ) #3
138+
118139; Function Attrs: nounwind
119140define hidden %runtime._string @main.maxString (ptr readonly %a.data , i32 %a.len , ptr readonly %b.data , i32 %b.len , ptr %context ) unnamed_addr #2 {
120141entry:
@@ -139,7 +160,7 @@ entry:
139160}
140161
141162; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
142- declare void @llvm.memset.p0.i32 (ptr nocapture writeonly , i8 , i32 , i1 immarg) #3
163+ declare void @llvm.memset.p0.i32 (ptr nocapture writeonly , i8 , i32 , i1 immarg) #4
143164
144165; Function Attrs: nounwind
145166define hidden void @main.clearZeroSizedSlice (ptr %s.data , i32 %s.len , i32 %s.cap , ptr %context ) unnamed_addr #2 {
@@ -156,24 +177,9 @@ entry:
156177
157178declare void @runtime.hashmapClear (ptr dereferenceable_or_null (40 ), ptr ) #1
158179
159- ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
160- declare i32 @llvm.smin.i32 (i32 , i32 ) #4
161-
162- ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
163- declare i8 @llvm.umin.i8 (i8 , i8 ) #4
164-
165- ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
166- declare i32 @llvm.umin.i32 (i32 , i32 ) #4
167-
168- ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
169- declare i32 @llvm.smax.i32 (i32 , i32 ) #4
170-
171- ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
172- declare i32 @llvm.umax.i32 (i32 , i32 ) #4
173-
174180attributes #0 = { allockind("alloc,zeroed" ) allocsize(0 ) "alloc-family" ="runtime.alloc" "target-features" ="+bulk-memory,+bulk-memory-opt,+call-indirect-overlong,+mutable-globals,+nontrapping-fptoint,+sign-ext,-multivalue,-reference-types" }
175181attributes #1 = { "target-features" ="+bulk-memory,+bulk-memory-opt,+call-indirect-overlong,+mutable-globals,+nontrapping-fptoint,+sign-ext,-multivalue,-reference-types" }
176182attributes #2 = { nounwind "target-features" ="+bulk-memory,+bulk-memory-opt,+call-indirect-overlong,+mutable-globals,+nontrapping-fptoint,+sign-ext,-multivalue,-reference-types" }
177- attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write ) }
178- attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none ) }
183+ attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none ) }
184+ attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write ) }
179185attributes #5 = { nounwind }
0 commit comments