summaryrefslogtreecommitdiff
path: root/libc/test/src/sys/stat/fstat_test.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@quicinc.com>2022-09-20 10:47:55 -0700
committerKrzysztof Parzyszek <kparzysz@quicinc.com>2022-09-21 11:25:27 -0700
commitf6e7ad56040ee8531be3375e04312d30700a58b2 (patch)
treeeb1baa9b1777c017e6333f7bcd131ce774eef37a /libc/test/src/sys/stat/fstat_test.cpp
parentac434afed8dda112ef637cb27437cd82cf80a6c8 (diff)
[Hexagon] Revamp type legalization of ext/trunc/sat in HVX
Resizing operations (e.g. sign extension) in DAG can go from any width to any other width, e.g. i8 -> i32. If the input and the result differ by a factor larger than 2, the operation cannot be legal in HVX, since the only two legal vector sizes in HVX are a single vector and a pair of vectors. To simplify the legalization, such operations are expanded into steps that only double/halve the type size, so that each such step can be fully legalized on its own. The complication is that DAG will automatically fold these steps back into one, e.g. sext(sext) -> sext. To prevent that new HexagonISD nodes are introduced: TL_EXTEND and TL_TRUNCATE. Once legalized, these nodes are replaced with the original opcodes. The type legalization is now common to aext/sext/zext/trunc and Hexagon- specific ssat/usat nodes.
Diffstat (limited to 'libc/test/src/sys/stat/fstat_test.cpp')
0 files changed, 0 insertions, 0 deletions