dawn-cmake/test/tint/builtins/gen/var
Zhaoming Jiang 6fe1f515d4 tint: Add f16 support for parts of float built-in, part 1
This patch add f16 support for a major part of numeric built-in, and
implement corresponding unittests for resolver and backends. This patch
also enable f16 constant evaluation for unary minus operator, `atan2`
and `clamp`.

The following numeric built-ins are not supported yet:
* frexp
* modf

The end-to-end tests for f16 built-in are not added yet.

Bug: tint:1473, tint:1502
Change-Id: If807185617b21c510a1a9c371179a60800c4f875
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/96722
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
2022-07-29 11:41:51 +00:00
..
abs test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
acos test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
acosh test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
all test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
any test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
arrayLength tint: Add f16 support for parts of float built-in, part 1 2022-07-29 11:41:51 +00:00
asin test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
asinh test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atan test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atan2 const eval of atan2 2022-07-27 14:51:27 +00:00
atanh test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicAdd test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicAnd test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicCompareExchangeWeak test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicExchange test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicLoad test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicMax test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicMin test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicOr test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicStore test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicSub test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
atomicXor test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
ceil test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
clamp const eval of clamp 2022-07-27 15:02:25 +00:00
cos test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
cosh test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
countLeadingZeros test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
countOneBits test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
countTrailingZeros test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
cross test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
degrees tint: Add f16 support for parts of float built-in, part 1 2022-07-29 11:41:51 +00:00
determinant test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
distance test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dot test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dot4I8Packed tint: Emitting enable directive for DP4A End-to-End test 2022-07-27 13:27:56 +00:00
dot4U8Packed tint: Emitting enable directive for DP4A End-to-End test 2022-07-27 13:27:56 +00:00
dpdx test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dpdxCoarse test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dpdxFine test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dpdy test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dpdyCoarse test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
dpdyFine test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
exp test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
exp2 test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
extractBits test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
faceForward test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
firstLeadingBit test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
firstTrailingBit test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
floor test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
fma test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
fract test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
frexp test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
fwidth test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
fwidthCoarse test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
fwidthFine test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
insertBits test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
inverseSqrt test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
ldexp test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
length test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
log test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
log2 test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
max test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
min test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
mix test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
modf test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
normalize test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
pack2x16float test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
pack2x16snorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
pack2x16unorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
pack4x8snorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
pack4x8unorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
pow test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
radians tint: Add f16 support for parts of float built-in, part 1 2022-07-29 11:41:51 +00:00
reflect test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
refract test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
reverseBits test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
round test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
select test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
sign test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
sin test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
sinh test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
smoothstep test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
sqrt test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
step test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
storageBarrier test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
tan test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
tanh test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureDimensions test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureGather test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureGatherCompare test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureLoad test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureNumLayers test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureNumLevels test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureNumSamples test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureSample test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureSampleBias test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureSampleCompare test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureSampleCompareLevel test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureSampleGrad test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureSampleLevel test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
textureStore test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
transpose test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
trunc test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
unpack2x16float test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
unpack2x16snorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
unpack2x16unorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
unpack4x8snorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
unpack4x8unorm test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00
workgroupBarrier test/tint: Regenerate expectations 2022-07-26 17:16:15 +00:00