summaryrefslogtreecommitdiff
path: root/reference/face.asm
diff options
context:
space:
mode:
Diffstat (limited to 'reference/face.asm')
-rw-r--r--reference/face.asm16
1 files changed, 7 insertions, 9 deletions
diff --git a/reference/face.asm b/reference/face.asm
index 0e81ac5..d7e2e1c 100644
--- a/reference/face.asm
+++ b/reference/face.asm
@@ -5,27 +5,25 @@
@out(r1.y) out1
@out(r1.z) out2
@out(r1.w) out3
+@const(c0.x) 0x3f000000, 0x00000000, 0x00000000, 0x00000000
+@const(c1.x) 0x3f800000, 0x00000000, 0x00000000, 0x00000000
(sy)(ss)mul.s r0.x, hr0.x, 2
(rpt2)nop
add.s r0.x, r0.x, 1
(rpt2)nop
cov.s32f32 r0.x, r0.x
(rpt2)nop
-mov.f32f32 r0.x, r0.x
-(rpt2)nop
max.f r0.x, r0.x, c0.y
(rpt2)nop
min.f r0.x, r0.x, c1.x
(rpt2)nop
-mul.f r0.x, c0.x, r0.x
+mul.f r1.x, c0.x, r0.x
(rpt2)nop
-mov.f32f32 r1.w, r0.x
-mov.f32f32 r1.z, r0.x
-mov.f32f32 r1.y, r0.x
-mov.f32f32 r1.x, r0.x
+mov.f32f32 r1.w, r1.x
+mov.f32f32 r1.z, r1.x
+mov.f32f32 r1.y, r1.x
end
-nop
; FRAG: outputs: r1.x (1:0)
; FRAG: inputs: r63.y (7:0,cm=f,il=8,b=0)
-; FRAG: 33 instructions, 1 half, 2 full
+; FRAG: 28 instructions, 1 half, 2 full