<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/wgsl/bitshifts.slang.expected.txt, branch master</title>
<subtitle>Making it easier to work with shaders</subtitle>
<id>https://git.yummers.dev/slang.git/atom?h=master</id>
<link rel='self' href='https://git.yummers.dev/slang.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/'/>
<updated>2025-01-10T19:05:05+00:00</updated>
<entry>
<title>WGSL: Convert signed vector shift amounts to unsigned (#6023)</title>
<updated>2025-01-10T19:05:05+00:00</updated>
<author>
<name>Anders Leino</name>
<email>aleino@nvidia.com</email>
</author>
<published>2025-01-10T19:05:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=803e0c9f9a9dc4b01e29ebbf3b37a5bba782ac83'/>
<id>urn:sha1:803e0c9f9a9dc4b01e29ebbf3b37a5bba782ac83</id>
<content type='text'>
* WGSL: Fixes for signed shift amounts

- Handle the case of vector shift amounts
 - Closes #5985
- Move handling of scalar case from emit to legalization
- Add tests for bitshifts.

* Move the binary operator legalization function to a common place

* Metal: Legalize binary operations

Closes #6029.

* Fix Metal filecheck test

The int shift amounts are now converted to unsigned.

* format code

---------

Co-authored-by: slangbot &lt;186143334+slangbot@users.noreply.github.com&gt;
Co-authored-by: Yong He &lt;yonghe@outlook.com&gt;</content>
</entry>
</feed>
