Add encodings for square root instructions.

This commit is contained in:
Jakob Stoklund Olesen
2017-09-25 13:14:55 -07:00
parent 36585ddc4f
commit ac343ba92a
5 changed files with 45 additions and 2 deletions

View File

@@ -29,7 +29,12 @@ ebb0(v0: f32):
return v1
}
; function %f32_sqrt(f32) -> f32
function %f32_sqrt(f32) -> f32 {
ebb0(v0: f32):
v1 = sqrt v0
return v1
}
; function %f32_ceil(f32) -> f32
; function %f32_floor(f32) -> f32
; function %f32_trunc(f32) -> f32