pow - Power

pow - Power

Calling Format

pow     dest, src0{ .x | .y | .z | .w}, src1{ .x | .y | .z | .w}

Operands

Name Registers
dest A temporary register.
src0 A temporary register, input register, or floating-point constant register.r.
Must specify any one of { .x | .y | .z | .w } as the component.
src1 A temporary register, input register, or floating-point constant register.r.
Must specify any one of { .x | .y | .z | .w } as the component.

Cannot specify the same register for src1 and dest.

Overview

Finds the src1 power of src0 and stores the result in dest.

Operation

tmp = src0{ .x | .y | .z | .w} ^ src1{ .x | .y | .z | .w}
dest.x = tmp
dest.y = tmp
dest.z = tmp
dest.w = tmp

Macro Expansion

log     dest.z, src0{ .x | .y | .z | .w}
mul     dest.z, dest.z, src1{ .x | .y | .z | .w}
exp     dest,   dest.z

Code Example

pow     r0, r1.y, r2.x

Timetable

12345678910 1112
log read LOG post write
mul STALL read MUL post write
exp STALL read EXP post write

Revision History

2011/12/20
Initial version.

CONFIDENTIAL