P. 1
ptx_isa_2.0

ptx_isa_2.0

|Views: 154|Likes:
Published by Mariusz Wawrzyński

More info:

Published by: Mariusz Wawrzyński on Dec 06, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/08/2011

pdf

text

original

Instruction

.rn .rz .rm .rp .ftz .sat Notes

{add,sub,mul}.rnd.f32

If no rounding modifier is specified,
default is .rn and instructions may be
folded into a multiply-add.

{add,sub,mul}.rnd.f64

If no rounding modifier is specified,

default is .rn and instructions may be
folded into a multiply-add.

mad.f32

.target sm_1x

No rounding modifier.

{mad,fma}.rnd.f32

.target sm_20

mad.32 and fma.f32 are the same.

{mad,fma}.rnd.f64

mad.f64 and fma.f64 are the same.

div.full.f32

No rounding modifier.

{div,rcp,sqrt}.approx.f32

{div,rcp,sqrt}.rnd.f32

.target sm_20

{div,rcp,sqrt}.rnd.f64

.target sm_20

{abs,neg,min,max}.f32

n/a n/a n/a n/a

{abs,neg,min,max}.f64

n/a n/a n/a n/a

rsqrt.approx.f32

rsqrt.approx.f64

{sin,cos,lg2,ex2}.approx.f32

Instructions that support rounding modifiers are IEEE-754 compliant. Double-precision
instructions support subnormal inputs and results. Single-precision instructions support
subnormal inputs and results by default for sm_20 targets and flush subnormal inputs and
results to sign-preserving zero for sm_1x targets. The optional .ftz modifier on single-
precision instructions provides backward compatibility with sm_1x targets by flushing
subnormal inputs and results to sign-preserving zero regardless of the target architecture.
Single-precision add, sub, mul, and mad support saturation of results to the range [0.0, 1.0],
with NaNs being flushed to positive zero. NaN payloads are supported for double-precision
instructions, but single-precision instructions return an unspecified NaN. Note that future
implementations may support NaN payloads for single-precision instructions, so PTX
programs should not rely on the specific single-precision NaNs being generated.

Chapter 8. Instruction Set

January 24, 2010

83

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->