summaryrefslogtreecommitdiff
path: root/reference/test3.asm
blob: fee7419634dd3fdcf647047f6e7c46273fd473dc (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
41
42
43
44
45
46
47
48
49
; options:
; VERT: new compiler
@in(r0.x)	in0
@in(r0.w)	in4
@in(r1.x)	in5
@in(r1.y)	in6
@in(r1.z)	in7
@out(r0.x)	out0
@out(r0.y)	out1
@out(r0.z)	out2
@out(r0.w)	out3
@const(c25.x)	0x3f000000, 0x00000000, 0x3f800000, 0x00000000
@const(c26.x)	0x00000000, 0x3f800000, 0x43000000, 0x00000000
(sy)(ss)mul.f r0.y, r0.x, c12.x
mul.f r1.w, r0.x, c0.x
mul.f r0.z, r0.w, c6.x
mul.f r0.x, r0.x, c0.y
mul.f r0.w, r0.y, r0.y
mul.f r2.x, r1.w, c10.x
mad.f32 r0.z, c6.y, r1.x, r0.z
(rpt3)nop
rsq r0.w, (abs)r0.w
(ss)mul.f r0.w, r0.y, r0.w
mad.f32 r1.x, c10.y, r0.x, r2.x
mad.f32 r1.y, c6.z, r1.y, r0.z
mov.f32f32 r0.z, c25.x
mov.f32f32 r0.y, c25.x
mov.f32f32 r0.x, c25.x
mad.f32 r1.x, c10.z, r1.y, r1.x
(rpt2)nop
mad.f32 r0.w, (neg)r1.x, r1.w, r0.w
(rpt2)nop
add.f r1.x, r0.w, c25.y
(rpt2)nop
mul.f r1.x, r1.x, c25.x
(rpt2)nop
mad.f32 r0.w, r0.w, r1.x, c25.x
(rpt2)nop
mul.f r0.w, r0.w, c21.w
nop
mad.f32 r0.w, c24.w, r1.z, r0.w
end
nop
nop
nop
; VERT: outputs: r0.x (0:0)
; VERT: inputs: r0.x (0:0,cm=1,il=8,b=0) r0.w (0:0,cm=f,il=12,b=0) r63.w (0:0,cm=0,il=16,b=0) r63.w (0:0,cm=0,il=20,b=0)
; VERT: 42 instructions, 0 half, 3 full