summaryrefslogtreecommitdiff
path: root/reference/fragProg1/fragProg1-25.asm
diff options
context:
space:
mode:
Diffstat (limited to 'reference/fragProg1/fragProg1-25.asm')
-rw-r--r--reference/fragProg1/fragProg1-25.asm30
1 files changed, 10 insertions, 20 deletions
diff --git a/reference/fragProg1/fragProg1-25.asm b/reference/fragProg1/fragProg1-25.asm
index 8235a7f..82ed199 100644
--- a/reference/fragProg1/fragProg1-25.asm
+++ b/reference/fragProg1/fragProg1-25.asm
@@ -4,35 +4,25 @@
@out(r1.y) out1
@out(r1.z) out2
@out(r1.w) out3
+@const(c0.x) 0x3f266666, 0x3f666666, 0x00000000, 0x41000000
+@const(c1.x) 0x00000000, 0x3f800000, 0x43000000, 0x00000000
(sy)(ss)mov.f32f32 r0.x, c0.y
-mov.f32f32 r0.y, c0.x
-absneg.f r0.z, (neg)c0.x
+absneg.f r0.y, (neg)c0.x
+mov.f32f32 r0.z, c0.x
mov.f32f32 r1.w, c1.y
max.f r0.x, r0.x, c1.x
-max.f r0.y, r0.y, c1.x
-cmps.f.lt r0.z, r0.z, c0.z
-min.f r0.w, c0.w, c1.z
+cmps.f.lt r0.y, r0.y, c0.z
+max.f r1.y, r0.z, c1.x
+min.f r0.z, c0.w, c1.z
mov.f32f32 r1.x, c1.y
(rpt1)nop
log2 r0.x, r0.x
-(ss)mov.f32f32 r0.x, r0.x
-mov.f32f32 r1.y, r0.y
-(rpt1)nop
-mul.f r0.x, r0.w, r0.x
-(rpt2)nop
-mov.f32f32 r0.x, r0.x
+(ss)mul.f r0.x, r0.z, r0.x
(rpt5)nop
exp2 r0.x, r0.x
-(ss)mov.f32f32 r0.x, r0.x
-(rpt2)nop
-sel.b32 r0.x, r0.x, r0.z, c1.x
-(rpt2)nop
-mov.f32f32 r0.x, r0.x
-(rpt2)nop
-mov.f32f32 r1.z, r0.x
+(ss)sel.b32 r1.z, r0.x, r0.y, c1.x
end
-nop
; FRAG: outputs: r1.x (1:0)
; FRAG: inputs:
-; FRAG: 42 instructions, 0 half, 2 full
+; FRAG: 22 instructions, 0 half, 2 full