Skip to content

Long Vector Execution Tests: Unary Math Ops #7614

@alsepkow

Description

@alsepkow

The most recent Long Vector test plan document should be referenced when implementing: Long Vector Test Plan

Intrinsic DXIL OPCode(s) LLVM Instruction(s) HLSL Function Signature Accepted Inputs Docs
abs Imax, Fabs abs(x) numeric abs
ceil Round_pi ceil(x) floatlike ceil
exp Exp exp(x) floatlike exp
floor Round_ni floor(x) floatlike floor
frac rc frac(x) floatlike frac
log Log FMul log(x) floatlike log
rcp FDiv rcp(x) anyfloat rcp
round Round_ne round(x) floatlike round
rsqrt Rsqrt rsqrt(x) floatlike rsqrt
sign ZExt, Sub, ICmpSLT, FCmpOLT sign(x) numeric sign
sqrt Sqrt sqrt(x) floatlike sqrt
trunc Round_z trunc(x) floatlike trunc
exp2 Exp exp2(x) floatlike exp2
log10 Log FMul floatlike floatlike log10
log2 Log floatlike floatlike log2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions