-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.chata
61 lines (37 loc) · 763 Bytes
/
test.chata
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# This is a comment
# Testing a comment with # a partial comment in it (you should see this) #
addi a1, zero, 1
fcvt.d.w fa1, a1
fadd.d fa0, fa0, fa1
addi t0, zero, 10
addi t1, zero, 10
fa0 += 2
fa0 -= 1
#fa0 *= 2
#fa0 /= 2
#t0 += 2
#t0 -= 2
#t0 *= 2
#t0 /= 2
j manually_added_label
manually_added_label:
if t0 = t1:
fadd.d fa0, fa0, fa1
fa0 *= 10
if t0 != t1:
fadd.d fa0, fa0, fa1
if t0 = 10:
fadd.d fa0, fa0, fa1
if 10 = t0:
fadd.d fa0, fa0, fa1
if t0 = 10.5: # This should round down
fadd.d fa0, fa0, fa1
if 10 = 10:
fadd.d fa0, fa0, fa1
if fa0 = fa0:
fadd.d fa0, fa0, fa1
if fa0 < 15:
fadd.d fa0, fa0, fa1
if 15 > fa0:
fadd.d fa0, fa0, fa1
addi a6, zero, # you shouldn't see this # 1