summaryrefslogtreecommitdiff
path: root/reference/glmark1.asm
blob: 88f3652ebcfa72194ebb31e1f3b55b467260e94f (plain)
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
; options:
; FRAG: new compiler
@in(r0.x)	in0
@in(r0.y)	in1
@out(r1.x)	out0
@out(r1.y)	out1
@out(r1.z)	out2
@out(r1.w)	out3
(sy)(ss)bary.f r0.z, 0, r0.x
bary.f (ei)r0.x, 1, r0.x
mov.f32f32 r0.y, c2.x
(rpt1)nop
mul.f r0.x, r0.z, r0.x
mov.f32f32 r1.w, r0.y
(rpt1)nop
add.f r0.y, c3.y, (neg)r0.x
add.f r0.z, c3.y, (neg)r0.x
add.f r0.w, c3.y, (neg)r0.x
mul.f r1.x, r0.x, c1.z
mul.f r0.y, r0.y, c0.z
mul.f r0.z, r0.z, c0.y
mul.f r0.w, r0.w, c0.x
mul.f r1.y, r0.x, c1.y
add.f r0.y, r1.x, r0.y
mul.f r0.x, r0.x, c1.x
(rpt1)nop
mov.f32f32 r1.z, r0.y
add.f r0.y, r1.y, r0.z
add.f r0.x, r0.x, r0.w
(rpt1)nop
mov.f32f32 r1.y, r0.y
mov.f32f32 r1.x, r0.x
end
nop
nop
nop
; FRAG: outputs: r1.x (1:0)
; FRAG: inputs: r0.x (5:20,cm=f,il=8,b=1)
; FRAG: 29 instructions, 0 half, 2 full