program RealValue {
section module {
}
section data {
int rax = 0
float xmm0 = 0.0
float xmm1 = 0.0
float real_const_1 = 0.1
float real_const_0 = 0.0
string str_0 = "value of x: "
string fmt_str = "%s "
string fmt_float = "%.6f "
string newline = "\n"
float x = 0.0
int i = 0
}
section code {
start:
mov i, 0
FOR_0:
cmp i, 10
jg ENDFOR_1
mov xmm0, real_const_0
mov x, xmm0
mov xmm1, real_const_1
add x, xmm1
FOR_CONTINUE_2:
add i, 1
jmp FOR_0
ENDFOR_1:
print fmt_str, str_0
print fmt_float, x
print newline
done
}
}