Update ir examples

This commit is contained in:
Chunmyong Park
2020-06-14 12:58:28 +00:00
parent 1526873f41
commit 833f26b013
134 changed files with 298 additions and 10 deletions

View File

@@ -9,6 +9,8 @@ init:
%l3:i32:i
block b0:
%b0:p0:i32:len
%b0:p1:i32*:a
%b0:i0:unit = store %b0:p0:i32 %l0:i32*
%b0:i1:unit = store %b0:p1:i32* %l1:i32**
%b0:i2:unit = store 0:i32 %l2:i32*
@@ -62,6 +64,7 @@ init:
%l1:f64:t0
block b0:
%b0:p0:f64:a
%b0:i0:unit = store %b0:p0:f64 %l0:f64*
%b0:i1:f64 = load %l0:f64*
%b0:i2:f64 = typecast 0:i32 to f64
@@ -96,6 +99,8 @@ init:
%l2:f64:t0
block b0:
%b0:p0:f64:a
%b0:p1:f64:b
%b0:i0:unit = store %b0:p0:f64 %l0:f64*
%b0:i1:unit = store %b0:p1:f64 %l1:f64*
%b0:i2:f64 = load %l0:f64*
@@ -131,6 +136,10 @@ init:
%l3:f64:abs_tol
block b0:
%b0:p0:f64:a
%b0:p1:f64:b
%b0:p2:f64:rel_tol
%b0:p3:f64:abs_tol
%b0:i0:unit = store %b0:p0:f64 %l0:f64*
%b0:i1:unit = store %b0:p1:f64 %l1:f64*
%b0:i2:unit = store %b0:p2:f64 %l2:f64*