Merge pull request #544 from adriadam10/test/buffer-ops

test(shader): execute the untested buffer byte/short/dwordx2/x3 loads and stores and the 32-bit integer buffer atomics
This commit is contained in:
Dean
2026-10-05 10:23:49 +13:00
committed by GitHub
2 changed files with 669 additions and 0 deletions
@@ -0,0 +1,350 @@
#include "prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp"
#include "prx/libSceAgcDriver/Graphics/include/Draw.hpp"
#include "Recompiler.hpp"
#include "VulkanTestDevice.hpp"
#include <algorithm>
#include <array>
#include <cstdint>
#include <cstdio>
#include <iostream>
#include <span>
#include <string>
#include <vector>
namespace {
using AgcDriver::Graphics::Require;
using ShaderRecompiler::ShaderStage;
constexpr std::uint32_t MaxThreads = 64;
constexpr std::uint32_t Inputs = 4;
constexpr std::uint32_t Results = 128;
constexpr std::uint32_t SharedWords = 16;
constexpr std::uint32_t Checked = 33;
alignas(256) std::array<std::uint32_t, MaxThreads * Inputs + SharedWords> Input{};
alignas(256) std::array<std::uint32_t, MaxThreads * Results> Output{};
alignas(256) constexpr std::array<std::uint32_t, 195> Wave32Code{
0x34020084, 0x34060089, 0xe0381000, 0x80000401, 0xbf8c3f70, 0xe0701100, 0x80010403, 0xe0701104,
0x80010403, 0xe0701108, 0x80010403, 0xe070110c, 0x80010403, 0xe0701110, 0x80010403, 0xe0701114,
0x80010403, 0xe0701118, 0x80010403, 0xe070111c, 0x80010403, 0xe0701120, 0x80010403, 0xe0701124,
0x80010403, 0xe0701128, 0x80010403, 0xe070112c, 0x80010403, 0xe0701130, 0x80010403, 0xe0701134,
0x80010403, 0xe0701138, 0x80010403, 0xe070113c, 0x80010403, 0xe0701140, 0x80010403, 0xe0701144,
0x80010403, 0xe0701148, 0x80010403, 0xe070114c, 0x80010403, 0xe0701150, 0x80010403, 0xe0701154,
0x80010403, 0x7e120304, 0x7e100305, 0xbf8c3f70, 0x7e140305, 0x7e160305, 0x7e180305, 0x7e1a0305,
0x7e1c0305, 0x7e1e0305, 0x7e200305, 0x7e220305, 0x7e240305, 0x7e260305, 0x7e280306, 0x7e2a0308,
0x36a00e83, 0x7d8aa080, 0xbea83c6a, 0xe0c05100, 0x80010a03, 0xe0c85104, 0x80010b03, 0xe0cc5108,
0x80010c03, 0xe0d4510c, 0x80010d03, 0xe0d85110, 0x80010e03, 0xe0dc5114, 0x80010f03, 0xe0e05118,
0x80011003, 0xe0e4511c, 0x80011103, 0xe0e85120, 0x80011203, 0xe0ec5124, 0x80011303, 0xe0c45128,
0x80011403, 0xbefe03c1, 0x7e2c0306, 0x7e2e0309, 0xe0c0112c, 0x80010503, 0xe0c81130, 0x80010503,
0xe0cc1134, 0x80010503, 0xe0d41138, 0x80010503, 0xe0d8113c, 0x80010503, 0xe0dc1140, 0x80010503,
0xe0e01144, 0x80010503, 0xe0e41148, 0x80010503, 0xe0e8114c, 0x80010503, 0xe0ec1150, 0x80010503,
0xe0c41154, 0x80011603, 0x7ea202ff, 0x00000200, 0x4aa400ff, 0x01000193, 0xe0c81000, 0x80005251,
0xe0e41004, 0x80000551, 0xe0e81008, 0x80000651, 0xe0ec100c, 0x80000751, 0xe0d41010, 0x80000451,
0xe0e01014, 0x80000551, 0xbf8c3f70, 0xe030d100, 0x80011503, 0xe030d104, 0x80011603, 0xe030d108,
0x80011703, 0xe030d10c, 0x80011803, 0xe030d110, 0x80011903, 0xe030d114, 0x80011a03, 0xe030d118,
0x80011b03, 0xe030d11c, 0x80011c03, 0xe030d120, 0x80011d03, 0xe030d124, 0x80011e03, 0xe030d128,
0x80011f03, 0xe030d12c, 0x80012003, 0xe030d130, 0x80012103, 0xe030d134, 0x80012203, 0xe030d138,
0x80012303, 0xe030d13c, 0x80012403, 0xe030d140, 0x80012503, 0xe030d144, 0x80012603, 0xe030d148,
0x80012703, 0xe030d14c, 0x80012803, 0xe030d150, 0x80012903, 0xe030d154, 0x80012a03, 0xbf8c3f70,
0xe0781000, 0x80010a03, 0xe0781010, 0x80010e03, 0xe0781020, 0x80011203, 0xe0781030, 0x80011603,
0xe0781040, 0x80011a03, 0xe0781050, 0x80011e03, 0xe0781060, 0x80012203, 0xe0781070, 0x80012603,
0xe0781080, 0x80012a03, 0xbf810000,
};
alignas(256) constexpr std::array<std::uint32_t, 195> Wave64Code{
0x34020084, 0x34060089, 0xe0381000, 0x80000401, 0xbf8c3f70, 0xe0701100, 0x80010403, 0xe0701104,
0x80010403, 0xe0701108, 0x80010403, 0xe070110c, 0x80010403, 0xe0701110, 0x80010403, 0xe0701114,
0x80010403, 0xe0701118, 0x80010403, 0xe070111c, 0x80010403, 0xe0701120, 0x80010403, 0xe0701124,
0x80010403, 0xe0701128, 0x80010403, 0xe070112c, 0x80010403, 0xe0701130, 0x80010403, 0xe0701134,
0x80010403, 0xe0701138, 0x80010403, 0xe070113c, 0x80010403, 0xe0701140, 0x80010403, 0xe0701144,
0x80010403, 0xe0701148, 0x80010403, 0xe070114c, 0x80010403, 0xe0701150, 0x80010403, 0xe0701154,
0x80010403, 0x7e120304, 0x7e100305, 0xbf8c3f70, 0x7e140305, 0x7e160305, 0x7e180305, 0x7e1a0305,
0x7e1c0305, 0x7e1e0305, 0x7e200305, 0x7e220305, 0x7e240305, 0x7e260305, 0x7e280306, 0x7e2a0308,
0x36a00e83, 0x7d8aa080, 0xbea8246a, 0xe0c05100, 0x80010a03, 0xe0c85104, 0x80010b03, 0xe0cc5108,
0x80010c03, 0xe0d4510c, 0x80010d03, 0xe0d85110, 0x80010e03, 0xe0dc5114, 0x80010f03, 0xe0e05118,
0x80011003, 0xe0e4511c, 0x80011103, 0xe0e85120, 0x80011203, 0xe0ec5124, 0x80011303, 0xe0c45128,
0x80011403, 0xbefe04c1, 0x7e2c0306, 0x7e2e0309, 0xe0c0112c, 0x80010503, 0xe0c81130, 0x80010503,
0xe0cc1134, 0x80010503, 0xe0d41138, 0x80010503, 0xe0d8113c, 0x80010503, 0xe0dc1140, 0x80010503,
0xe0e01144, 0x80010503, 0xe0e41148, 0x80010503, 0xe0e8114c, 0x80010503, 0xe0ec1150, 0x80010503,
0xe0c41154, 0x80011603, 0x7ea202ff, 0x00000400, 0x4aa400ff, 0x01000193, 0xe0c81000, 0x80005251,
0xe0e41004, 0x80000551, 0xe0e81008, 0x80000651, 0xe0ec100c, 0x80000751, 0xe0d41010, 0x80000451,
0xe0e01014, 0x80000551, 0xbf8c3f70, 0xe030d100, 0x80011503, 0xe030d104, 0x80011603, 0xe030d108,
0x80011703, 0xe030d10c, 0x80011803, 0xe030d110, 0x80011903, 0xe030d114, 0x80011a03, 0xe030d118,
0x80011b03, 0xe030d11c, 0x80011c03, 0xe030d120, 0x80011d03, 0xe030d124, 0x80011e03, 0xe030d128,
0x80011f03, 0xe030d12c, 0x80012003, 0xe030d130, 0x80012103, 0xe030d134, 0x80012203, 0xe030d138,
0x80012303, 0xe030d13c, 0x80012403, 0xe030d140, 0x80012503, 0xe030d144, 0x80012603, 0xe030d148,
0x80012703, 0xe030d14c, 0x80012803, 0xe030d150, 0x80012903, 0xe030d154, 0x80012a03, 0xbf8c3f70,
0xe0781000, 0x80010a03, 0xe0781010, 0x80010e03, 0xe0781020, 0x80011203, 0xe0781030, 0x80011603,
0xe0781040, 0x80011a03, 0xe0781050, 0x80011e03, 0xe0781060, 0x80012203, 0xe0781070, 0x80012603,
0xe0781080, 0x80012a03, 0xbf810000,
};
constexpr std::uint32_t Rows[64][4] = {
{0x536e95dfu, 0x536fe5e0u, 0xd28fe56au, 0xf08db1fcu},
{0x00000000u, 0x00000000u, 0x0b76540cu, 0x5f4b2033u},
{0x00008000u, 0x00000000u, 0x1ee78c50u, 0x8acc84f8u},
{0x00000000u, 0x80000000u, 0x51bfe2a2u, 0xee29929du},
{0xa93f32a9u, 0x00007fffu, 0x074206e2u, 0xd5de6e91u},
{0x9399468au, 0x99e237bfu, 0x6ad546e6u, 0x7d513542u},
{0x000000ffu, 0x7fffffffu, 0x2ed0d50au, 0x54dc77a7u},
{0x00007fffu, 0x000ff0ffu, 0x39cff032u, 0x310ff5fcu},
{0x198f69a0u, 0xfb6fe870u, 0xb517d9fdu, 0xbd5ce1fdu},
{0x12345678u, 0x459ccb82u, 0x71dbadabu, 0xa0879a14u},
{0x1f1950d9u, 0xffffffffu, 0x0e6fd1c9u, 0xd4041791u},
{0xc045596eu, 0x00ff01fcu, 0x87ed8dfcu, 0x3f6fe27eu},
{0x00000001u, 0x00000001u, 0xa1e99e64u, 0x0a19deacu},
{0x6ecc5cb6u, 0x6ecc5cb6u, 0xfc520fdeu, 0x810717e7u},
{0x0e532388u, 0xd28fee69u, 0xb123fdfdu, 0xa78e89fdu},
{0x80000000u, 0x000ff801u, 0xcb4b21ffu, 0x7b2ffe58u},
{0x7fffffffu, 0x1a6589fdu, 0xe22fe806u, 0xdaef49fdu},
{0x00000001u, 0x3bbcaa3au, 0xaba08b3du, 0x80631136u},
{0xe2a77a78u, 0xe2a779fdu, 0x9f2fe8f7u, 0x6a3e71fdu},
{0x00000001u, 0x000ff801u, 0x242ffb1fu, 0x024ffee3u},
{0x7fffffffu, 0x7ffffffeu, 0x8853d3bfu, 0xb1fd721bu},
{0xff00ff00u, 0x00007fffu, 0x4894991du, 0xdd42f005u},
{0xffffffffu, 0x00000000u, 0xc69f64a3u, 0x47f32e2eu},
{0xfff2776cu, 0xfc2a621cu, 0xbfce753fu, 0xc488e594u},
{0x811b6c22u, 0x00007fffu, 0x60e75e3cu, 0xf86e2c6cu},
{0xb4f88561u, 0xecc6592du, 0x14321c1cu, 0x4636ff26u},
{0x00010000u, 0xb22f4004u, 0x0c8b001fu, 0x364d2b66u},
{0x8f9fa5ecu, 0x946fa280u, 0x0e9505f4u, 0x870fa76du},
{0x00000080u, 0x57d10b4du, 0x0f7b8468u, 0xad8d899eu},
{0xf4823356u, 0x00008000u, 0x142cfcf9u, 0x5c0a21d7u},
{0xd94e6bb3u, 0xd94e6bb3u, 0x732951cdu, 0xbf9cf610u},
{0x12345678u, 0x13afe032u, 0x6e0b75fcu, 0x012fe591u},
{0xd14e11a6u, 0x00007fffu, 0xa217908cu, 0xe80b3d6eu},
{0xab1ff0d5u, 0xab1ff0d5u, 0x0b897562u, 0x8cf72913u},
{0x82f94d41u, 0x2dafc382u, 0xbcd18df8u, 0x7b4cd5f8u},
{0x89abcdefu, 0x89abcdefu, 0x62fba05du, 0xbccfa6b8u},
{0x321439f8u, 0x00000003u, 0x3631cb82u, 0xc93a3d1bu},
{0x4e84d753u, 0x54a9b365u, 0x56ee8a7bu, 0xf702a20au},
{0xffffffffu, 0xff00ff00u, 0x36938222u, 0x41145208u},
{0x00000080u, 0x00000081u, 0xd4d05190u, 0x43d09980u},
{0x00008000u, 0x00000003u, 0x7ad78e73u, 0x967003cfu},
{0x00000080u, 0xe8e0746eu, 0x4bbe399cu, 0x950ff203u},
{0x9de1f1fcu, 0x7fffffffu, 0xe065fc6cu, 0xd2326b65u},
{0xce05cb84u, 0x5b11485au, 0x790577fdu, 0x7d79f3c4u},
{0x62cd61e2u, 0x12345678u, 0x6df9dc5cu, 0x9c8faa94u},
{0x00ff00ffu, 0x00ff00feu, 0x704b8500u, 0x82de0143u},
{0x053b0655u, 0x7fffffffu, 0x54a25ef4u, 0xe80c1562u},
{0x99062011u, 0x1c2fe6d7u, 0x59a71dfcu, 0x5b3425fcu},
{0x57ef669fu, 0x00000002u, 0xe1ff47dbu, 0xe840795eu},
{0x230a2bc5u, 0x230a2bc4u, 0xb278ccf4u, 0x063f9962u},
{0xff00ff00u, 0x000000ffu, 0xb83f90e9u, 0xa3640fdeu},
{0xee86c75eu, 0x00ff00ffu, 0xff5ae0b0u, 0x6ca5bfdcu},
{0x00000001u, 0x7c900a51u, 0x77bbc220u, 0x47229d30u},
{0x000000ffu, 0xffffffffu, 0x3b082f86u, 0x9592116bu},
{0xa9af3d85u, 0x938bfc16u, 0xf3cf3a11u, 0xb75e01dau},
{0x12345678u, 0x47021cf1u, 0x59c67fb6u, 0xf2b52a63u},
{0x89009332u, 0x89009332u, 0x3044bfafu, 0x5db890dau},
{0x7ab0e583u, 0x1d432825u, 0x8b85be22u, 0x7ac0b14cu},
{0x80000000u, 0x000001fcu, 0x5eafe75eu, 0x2b0fe583u},
{0x00007fffu, 0x00007ffeu, 0x5d9057fau, 0xbd31e9d1u},
{0x07939cf9u, 0x07939cf9u, 0xf7bc3c79u, 0xf438acb4u},
{0x99b9355bu, 0x066ff6ccu, 0x6c4ff23fu, 0xdcbc85feu},
{0xb71c6da5u, 0x4e0b9dcdu, 0x54b79af1u, 0x3c4b7d59u},
{0xa59fd12fu, 0xa59fd1fcu, 0x93b731fcu, 0x7f2d59fcu}
};
constexpr std::uint32_t SharedInit[SharedWords] = {0x89abcdefu, 0xffff0000u, 0x0f0f0f0fu, 0x12345678u, 0x00000005u, 0x80000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u};
constexpr std::uint32_t Expected32[32][33] = {
{0x536fe5e0u, 0x536fe5e0u, 0x536fe5e0u, 0x536fe5e0u, 0x536fe5e0u, 0x536fe5e0u, 0x536fe5e0u, 0x536fe5e0u, 0x536fe5e0u, 0x536fe5e0u, 0xd28fe56au, 0x536e95dfu, 0x536e95dfu, 0x536e95dfu, 0x536e95dfu, 0x536e95dfu, 0x536e95dfu, 0x536e95dfu, 0x536e95dfu, 0x536e95dfu, 0x536e95dfu, 0x536e95dfu, 0x536fe5e0u, 0xa6de7bbfu, 0xfffeafffu, 0x536e95dfu, 0x536e95dfu, 0x536fe5e0u, 0x536fe5e0u, 0x536e85c0u, 0x536ff5ffu, 0x0001703fu, 0xd28fe56au},
{0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x0b76540cu, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x0b76540cu},
{0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x1ee78c50u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00000000u, 0x00008000u, 0x00008000u, 0x00000000u, 0x00000000u, 0x00008000u, 0x00008000u, 0x00000000u, 0x00008000u, 0x00008000u, 0x1ee78c50u},
{0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x00000000u, 0x00000000u, 0x80000000u, 0x00000000u, 0x80000000u, 0x80000000u, 0x00000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x00000000u, 0x00000000u, 0x80000000u, 0x00000000u, 0x80000000u, 0x80000000u, 0x51bfe2a2u},
{0xa93f32a9u, 0xa93f32a9u, 0xa93f32a9u, 0xa93f32a9u, 0xa93f32a9u, 0xa93f32a9u, 0xa93f32a9u, 0xa93f32a9u, 0xa93f32a9u, 0xa93f32a9u, 0xa93f32a9u, 0x00007fffu, 0xa93fb2a8u, 0xa93eb2aau, 0xa93f32a9u, 0x00007fffu, 0x00007fffu, 0xa93f32a9u, 0x000032a9u, 0xa93f7fffu, 0xa93f4d56u, 0xa93f32a9u, 0x00007fffu, 0xa93fb2a8u, 0xa93eb2aau, 0xa93f32a9u, 0x00007fffu, 0x00007fffu, 0xa93f32a9u, 0x000032a9u, 0xa93f7fffu, 0xa93f4d56u, 0x074206e2u},
{0x9399468au, 0x9399468au, 0x9399468au, 0x9399468au, 0x9399468au, 0x9399468au, 0x9399468au, 0x9399468au, 0x9399468au, 0x9399468au, 0x9399468au, 0x99e237bfu, 0x2d7b7e49u, 0xf9b70ecbu, 0x9399468au, 0x9399468au, 0x99e237bfu, 0x99e237bfu, 0x9180068au, 0x9bfb77bfu, 0x0a7b7135u, 0x9399468au, 0x99e237bfu, 0x2d7b7e49u, 0xf9b70ecbu, 0x9399468au, 0x9399468au, 0x99e237bfu, 0x99e237bfu, 0x9180068au, 0x9bfb77bfu, 0x0a7b7135u, 0x6ad546e6u},
{0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x7fffffffu, 0x800000feu, 0x80000100u, 0x000000ffu, 0x000000ffu, 0x7fffffffu, 0x7fffffffu, 0x000000ffu, 0x7fffffffu, 0x7fffff00u, 0x000000ffu, 0x7fffffffu, 0x800000feu, 0x80000100u, 0x000000ffu, 0x000000ffu, 0x7fffffffu, 0x7fffffffu, 0x000000ffu, 0x7fffffffu, 0x7fffff00u, 0x2ed0d50au},
{0x000ff0ffu, 0x000ff0ffu, 0x000ff0ffu, 0x000ff0ffu, 0x000ff0ffu, 0x000ff0ffu, 0x000ff0ffu, 0x000ff0ffu, 0x000ff0ffu, 0x000ff0ffu, 0x39cff032u, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x000ff0ffu, 0x001070feu, 0xfff08f00u, 0x00007fffu, 0x00007fffu, 0x000ff0ffu, 0x000ff0ffu, 0x000070ffu, 0x000fffffu, 0x000f8f00u, 0x39cff032u},
{0x198f69a0u, 0x198f69a0u, 0x198f69a0u, 0x198f69a0u, 0x198f69a0u, 0x198f69a0u, 0x198f69a0u, 0x198f69a0u, 0x198f69a0u, 0x198f69a0u, 0x198f69a0u, 0xfb6fe870u, 0x14ff5210u, 0x1e1f8130u, 0xfb6fe870u, 0x198f69a0u, 0x198f69a0u, 0xfb6fe870u, 0x190f6820u, 0xfbefe9f0u, 0xe2e081d0u, 0x198f69a0u, 0xfb6fe870u, 0x14ff5210u, 0x1e1f8130u, 0xfb6fe870u, 0x198f69a0u, 0x198f69a0u, 0xfb6fe870u, 0x190f6820u, 0xfbefe9f0u, 0xe2e081d0u, 0xb517d9fdu},
{0x459ccb82u, 0x459ccb82u, 0x459ccb82u, 0x459ccb82u, 0x459ccb82u, 0x459ccb82u, 0x459ccb82u, 0x459ccb82u, 0x459ccb82u, 0x459ccb82u, 0x71dbadabu, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x459ccb82u, 0x57d121fau, 0xcc978af6u, 0x12345678u, 0x12345678u, 0x459ccb82u, 0x459ccb82u, 0x00144200u, 0x57bcdffau, 0x57a89dfau, 0x71dbadabu},
{0x1f1950d9u, 0x1f1950d9u, 0x1f1950d9u, 0x1f1950d9u, 0x1f1950d9u, 0x1f1950d9u, 0x1f1950d9u, 0x1f1950d9u, 0x1f1950d9u, 0x1f1950d9u, 0x1f1950d9u, 0xffffffffu, 0x1f1950d8u, 0x1f1950dau, 0xffffffffu, 0x1f1950d9u, 0x1f1950d9u, 0xffffffffu, 0x1f1950d9u, 0xffffffffu, 0xe0e6af26u, 0x1f1950d9u, 0xffffffffu, 0x1f1950d8u, 0x1f1950dau, 0xffffffffu, 0x1f1950d9u, 0x1f1950d9u, 0xffffffffu, 0x1f1950d9u, 0xffffffffu, 0xe0e6af26u, 0x0e6fd1c9u},
{0xc045596eu, 0xc045596eu, 0xc045596eu, 0xc045596eu, 0xc045596eu, 0xc045596eu, 0xc045596eu, 0xc045596eu, 0xc045596eu, 0xc045596eu, 0xc045596eu, 0x00ff01fcu, 0xc1445b6au, 0xbf465772u, 0xc045596eu, 0x00ff01fcu, 0x00ff01fcu, 0xc045596eu, 0x0045016cu, 0xc0ff59feu, 0xc0ba5892u, 0xc045596eu, 0x00ff01fcu, 0xc1445b6au, 0xbf465772u, 0xc045596eu, 0x00ff01fcu, 0x00ff01fcu, 0xc045596eu, 0x0045016cu, 0xc0ff59feu, 0xc0ba5892u, 0x87ed8dfcu},
{0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0xa1e99e64u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000002u, 0x00000000u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000000u, 0xa1e99e64u},
{0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0xdd98b96cu, 0x00000000u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x00000000u, 0xfc520fdeu, 0x6ecc5cb6u, 0xdd98b96cu, 0x00000000u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x00000000u, 0xfc520fdeu},
{0x0e532388u, 0x0e532388u, 0x0e532388u, 0x0e532388u, 0x0e532388u, 0x0e532388u, 0x0e532388u, 0x0e532388u, 0x0e532388u, 0x0e532388u, 0x0e532388u, 0xd28fee69u, 0xe0e311f1u, 0x3bc3351fu, 0xd28fee69u, 0x0e532388u, 0x0e532388u, 0xd28fee69u, 0x02032208u, 0xdedfefe9u, 0xdcdccde1u, 0x0e532388u, 0xd28fee69u, 0xe0e311f1u, 0x3bc3351fu, 0xd28fee69u, 0x0e532388u, 0x0e532388u, 0xd28fee69u, 0x02032208u, 0xdedfefe9u, 0xdcdccde1u, 0xb123fdfdu},
{0x000ff801u, 0x000ff801u, 0x000ff801u, 0x000ff801u, 0x000ff801u, 0x000ff801u, 0x000ff801u, 0x000ff801u, 0x000ff801u, 0x000ff801u, 0xcb4b21ffu, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x000ff801u, 0x800ff801u, 0x7ff007ffu, 0x80000000u, 0x000ff801u, 0x000ff801u, 0x80000000u, 0x00000000u, 0x800ff801u, 0x800ff801u, 0xcb4b21ffu},
{0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x1a6589fdu, 0x9a6589fcu, 0x659a7602u, 0x1a6589fdu, 0x1a6589fdu, 0x7fffffffu, 0x7fffffffu, 0x1a6589fdu, 0x7fffffffu, 0x659a7602u, 0x7fffffffu, 0x1a6589fdu, 0x9a6589fcu, 0x659a7602u, 0x1a6589fdu, 0x1a6589fdu, 0x7fffffffu, 0x7fffffffu, 0x1a6589fdu, 0x7fffffffu, 0x659a7602u, 0xe22fe806u},
{0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x3bbcaa3au, 0x3bbcaa3bu, 0xc44355c7u, 0x00000001u, 0x00000001u, 0x3bbcaa3au, 0x3bbcaa3au, 0x00000000u, 0x3bbcaa3bu, 0x3bbcaa3bu, 0x00000001u, 0x3bbcaa3au, 0x3bbcaa3bu, 0xc44355c7u, 0x00000001u, 0x00000001u, 0x3bbcaa3au, 0x3bbcaa3au, 0x00000000u, 0x3bbcaa3bu, 0x3bbcaa3bu, 0xaba08b3du},
{0xe2a77a78u, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77a78u, 0xe2a779fdu, 0xc54ef475u, 0x0000007bu, 0xe2a779fdu, 0xe2a779fdu, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77878u, 0xe2a77bfdu, 0x00000385u, 0xe2a77a78u, 0xe2a779fdu, 0xc54ef475u, 0x0000007bu, 0xe2a779fdu, 0xe2a779fdu, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77878u, 0xe2a77bfdu, 0x00000385u, 0x9f2fe8f7u},
{0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x000ff801u, 0x000ff802u, 0xfff00800u, 0x00000001u, 0x00000001u, 0x000ff801u, 0x000ff801u, 0x00000001u, 0x000ff801u, 0x000ff800u, 0x00000001u, 0x000ff801u, 0x000ff802u, 0xfff00800u, 0x00000001u, 0x00000001u, 0x000ff801u, 0x000ff801u, 0x00000001u, 0x000ff801u, 0x000ff800u, 0x242ffb1fu},
{0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7ffffffeu, 0xfffffffdu, 0x00000001u, 0x7ffffffeu, 0x7ffffffeu, 0x7fffffffu, 0x7fffffffu, 0x7ffffffeu, 0x7fffffffu, 0x00000001u, 0x7fffffffu, 0x7ffffffeu, 0xfffffffdu, 0x00000001u, 0x7ffffffeu, 0x7ffffffeu, 0x7fffffffu, 0x7fffffffu, 0x7ffffffeu, 0x7fffffffu, 0x00000001u, 0x8853d3bfu},
{0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0x00007fffu, 0xff017effu, 0xff007f01u, 0xff00ff00u, 0x00007fffu, 0x00007fffu, 0xff00ff00u, 0x00007f00u, 0xff00ffffu, 0xff0080ffu, 0xff00ff00u, 0x00007fffu, 0xff017effu, 0xff007f01u, 0xff00ff00u, 0x00007fffu, 0x00007fffu, 0xff00ff00u, 0x00007f00u, 0xff00ffffu, 0xff0080ffu, 0x4894991du},
{0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0x00000000u, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0x00000000u, 0x00000000u, 0xffffffffu, 0x00000000u, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0x00000000u, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0x00000000u, 0x00000000u, 0xffffffffu, 0x00000000u, 0xffffffffu, 0xffffffffu, 0xc69f64a3u},
{0xfc2a621cu, 0xfc2a621cu, 0xfc2a621cu, 0xfc2a621cu, 0xfc2a621cu, 0xfc2a621cu, 0xfc2a621cu, 0xfc2a621cu, 0xfc2a621cu, 0xfc2a621cu, 0xbfce753fu, 0xfff2776cu, 0xfff2776cu, 0xfff2776cu, 0xfff2776cu, 0xfff2776cu, 0xfff2776cu, 0xfff2776cu, 0xfff2776cu, 0xfff2776cu, 0xfff2776cu, 0xfff2776cu, 0xfc2a621cu, 0xfc1cd988u, 0x03c81550u, 0xfc2a621cu, 0xfc2a621cu, 0xfff2776cu, 0xfff2776cu, 0xfc22620cu, 0xfffa777cu, 0x03d81570u, 0xbfce753fu},
{0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x60e75e3cu, 0x811b6c22u, 0x811b6c22u, 0x811b6c22u, 0x811b6c22u, 0x811b6c22u, 0x811b6c22u, 0x811b6c22u, 0x811b6c22u, 0x811b6c22u, 0x811b6c22u, 0x811b6c22u, 0x00007fffu, 0x811bec21u, 0x811aec23u, 0x811b6c22u, 0x00007fffu, 0x00007fffu, 0x811b6c22u, 0x00006c22u, 0x811b7fffu, 0x811b13ddu, 0x60e75e3cu},
{0xb4f88561u, 0xb4f88561u, 0xb4f88561u, 0xb4f88561u, 0xb4f88561u, 0xb4f88561u, 0xb4f88561u, 0xb4f88561u, 0xb4f88561u, 0xb4f88561u, 0xb4f88561u, 0xecc6592du, 0xa1bede8eu, 0xc8322c34u, 0xb4f88561u, 0xb4f88561u, 0xecc6592du, 0xecc6592du, 0xa4c00121u, 0xfcfedd6du, 0x583edc4cu, 0xb4f88561u, 0xecc6592du, 0xa1bede8eu, 0xc8322c34u, 0xb4f88561u, 0xb4f88561u, 0xecc6592du, 0xecc6592du, 0xa4c00121u, 0xfcfedd6du, 0x583edc4cu, 0x14321c1cu},
{0x00010000u, 0x00010000u, 0x00010000u, 0x00010000u, 0x00010000u, 0x00010000u, 0x00010000u, 0x00010000u, 0x00010000u, 0x00010000u, 0x00010000u, 0xb22f4004u, 0xb2304004u, 0x4dd1bffcu, 0xb22f4004u, 0x00010000u, 0x00010000u, 0xb22f4004u, 0x00010000u, 0xb22f4004u, 0xb22e4004u, 0x00010000u, 0xb22f4004u, 0xb2304004u, 0x4dd1bffcu, 0xb22f4004u, 0x00010000u, 0x00010000u, 0xb22f4004u, 0x00010000u, 0xb22f4004u, 0xb22e4004u, 0x0c8b001fu},
{0x8f9fa5ecu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x946fa280u, 0x240f486cu, 0xfb30036cu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x946fa280u, 0x946fa280u, 0x840fa080u, 0x9fffa7ecu, 0x1bf0076cu, 0x8f9fa5ecu, 0x946fa280u, 0x240f486cu, 0xfb30036cu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x946fa280u, 0x946fa280u, 0x840fa080u, 0x9fffa7ecu, 0x1bf0076cu, 0x0e9505f4u},
{0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x57d10b4du, 0x57d10bcdu, 0xa82ef533u, 0x00000080u, 0x00000080u, 0x57d10b4du, 0x57d10b4du, 0x00000000u, 0x57d10bcdu, 0x57d10bcdu, 0x00000080u, 0x57d10b4du, 0x57d10bcdu, 0xa82ef533u, 0x00000080u, 0x00000080u, 0x57d10b4du, 0x57d10b4du, 0x00000000u, 0x57d10bcdu, 0x57d10bcdu, 0x0f7b8468u},
{0xf4823356u, 0xf4823356u, 0xf4823356u, 0xf4823356u, 0xf4823356u, 0xf4823356u, 0xf4823356u, 0xf4823356u, 0xf4823356u, 0xf4823356u, 0xf4823356u, 0x00008000u, 0xf482b356u, 0xf481b356u, 0xf4823356u, 0x00008000u, 0x00008000u, 0xf4823356u, 0x00000000u, 0xf482b356u, 0xf482b356u, 0xf4823356u, 0x00008000u, 0xf482b356u, 0xf481b356u, 0xf4823356u, 0x00008000u, 0x00008000u, 0xf4823356u, 0x00000000u, 0xf482b356u, 0xf482b356u, 0x142cfcf9u},
{0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0x732951cdu, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xb29cd766u, 0x00000000u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0x00000000u, 0x732951cdu},
{0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x13afe032u, 0x25e436aau, 0xfe847646u, 0x12345678u, 0x12345678u, 0x13afe032u, 0x13afe032u, 0x12244030u, 0x13bff67au, 0x019bb64au, 0x12345678u, 0x13afe032u, 0x25e436aau, 0xfe847646u, 0x12345678u, 0x12345678u, 0x13afe032u, 0x13afe032u, 0x12244030u, 0x13bff67au, 0x019bb64au, 0x6e0b75fcu}
};
constexpr std::uint32_t Expected64[64][33] = {
{0x536fe5e0u, 0x536fe5e0u, 0x536fe5e0u, 0x536fe5e0u, 0x536fe5e0u, 0x536fe5e0u, 0x536fe5e0u, 0x536fe5e0u, 0x536fe5e0u, 0x536fe5e0u, 0xd28fe56au, 0x536e95dfu, 0x536e95dfu, 0x536e95dfu, 0x536e95dfu, 0x536e95dfu, 0x536e95dfu, 0x536e95dfu, 0x536e95dfu, 0x536e95dfu, 0x536e95dfu, 0x536e95dfu, 0x536fe5e0u, 0xa6de7bbfu, 0xfffeafffu, 0x536e95dfu, 0x536e95dfu, 0x536fe5e0u, 0x536fe5e0u, 0x536e85c0u, 0x536ff5ffu, 0x0001703fu, 0xd28fe56au},
{0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x0b76540cu, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x0b76540cu},
{0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x1ee78c50u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00000000u, 0x00008000u, 0x00008000u, 0x00000000u, 0x00000000u, 0x00008000u, 0x00008000u, 0x00000000u, 0x00008000u, 0x00008000u, 0x1ee78c50u},
{0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x00000000u, 0x00000000u, 0x80000000u, 0x00000000u, 0x80000000u, 0x80000000u, 0x00000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x00000000u, 0x00000000u, 0x80000000u, 0x00000000u, 0x80000000u, 0x80000000u, 0x51bfe2a2u},
{0xa93f32a9u, 0xa93f32a9u, 0xa93f32a9u, 0xa93f32a9u, 0xa93f32a9u, 0xa93f32a9u, 0xa93f32a9u, 0xa93f32a9u, 0xa93f32a9u, 0xa93f32a9u, 0xa93f32a9u, 0x00007fffu, 0xa93fb2a8u, 0xa93eb2aau, 0xa93f32a9u, 0x00007fffu, 0x00007fffu, 0xa93f32a9u, 0x000032a9u, 0xa93f7fffu, 0xa93f4d56u, 0xa93f32a9u, 0x00007fffu, 0xa93fb2a8u, 0xa93eb2aau, 0xa93f32a9u, 0x00007fffu, 0x00007fffu, 0xa93f32a9u, 0x000032a9u, 0xa93f7fffu, 0xa93f4d56u, 0x074206e2u},
{0x9399468au, 0x9399468au, 0x9399468au, 0x9399468au, 0x9399468au, 0x9399468au, 0x9399468au, 0x9399468au, 0x9399468au, 0x9399468au, 0x9399468au, 0x99e237bfu, 0x2d7b7e49u, 0xf9b70ecbu, 0x9399468au, 0x9399468au, 0x99e237bfu, 0x99e237bfu, 0x9180068au, 0x9bfb77bfu, 0x0a7b7135u, 0x9399468au, 0x99e237bfu, 0x2d7b7e49u, 0xf9b70ecbu, 0x9399468au, 0x9399468au, 0x99e237bfu, 0x99e237bfu, 0x9180068au, 0x9bfb77bfu, 0x0a7b7135u, 0x6ad546e6u},
{0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x7fffffffu, 0x800000feu, 0x80000100u, 0x000000ffu, 0x000000ffu, 0x7fffffffu, 0x7fffffffu, 0x000000ffu, 0x7fffffffu, 0x7fffff00u, 0x000000ffu, 0x7fffffffu, 0x800000feu, 0x80000100u, 0x000000ffu, 0x000000ffu, 0x7fffffffu, 0x7fffffffu, 0x000000ffu, 0x7fffffffu, 0x7fffff00u, 0x2ed0d50au},
{0x000ff0ffu, 0x000ff0ffu, 0x000ff0ffu, 0x000ff0ffu, 0x000ff0ffu, 0x000ff0ffu, 0x000ff0ffu, 0x000ff0ffu, 0x000ff0ffu, 0x000ff0ffu, 0x39cff032u, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x000ff0ffu, 0x001070feu, 0xfff08f00u, 0x00007fffu, 0x00007fffu, 0x000ff0ffu, 0x000ff0ffu, 0x000070ffu, 0x000fffffu, 0x000f8f00u, 0x39cff032u},
{0x198f69a0u, 0x198f69a0u, 0x198f69a0u, 0x198f69a0u, 0x198f69a0u, 0x198f69a0u, 0x198f69a0u, 0x198f69a0u, 0x198f69a0u, 0x198f69a0u, 0x198f69a0u, 0xfb6fe870u, 0x14ff5210u, 0x1e1f8130u, 0xfb6fe870u, 0x198f69a0u, 0x198f69a0u, 0xfb6fe870u, 0x190f6820u, 0xfbefe9f0u, 0xe2e081d0u, 0x198f69a0u, 0xfb6fe870u, 0x14ff5210u, 0x1e1f8130u, 0xfb6fe870u, 0x198f69a0u, 0x198f69a0u, 0xfb6fe870u, 0x190f6820u, 0xfbefe9f0u, 0xe2e081d0u, 0xb517d9fdu},
{0x459ccb82u, 0x459ccb82u, 0x459ccb82u, 0x459ccb82u, 0x459ccb82u, 0x459ccb82u, 0x459ccb82u, 0x459ccb82u, 0x459ccb82u, 0x459ccb82u, 0x71dbadabu, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x459ccb82u, 0x57d121fau, 0xcc978af6u, 0x12345678u, 0x12345678u, 0x459ccb82u, 0x459ccb82u, 0x00144200u, 0x57bcdffau, 0x57a89dfau, 0x71dbadabu},
{0x1f1950d9u, 0x1f1950d9u, 0x1f1950d9u, 0x1f1950d9u, 0x1f1950d9u, 0x1f1950d9u, 0x1f1950d9u, 0x1f1950d9u, 0x1f1950d9u, 0x1f1950d9u, 0x1f1950d9u, 0xffffffffu, 0x1f1950d8u, 0x1f1950dau, 0xffffffffu, 0x1f1950d9u, 0x1f1950d9u, 0xffffffffu, 0x1f1950d9u, 0xffffffffu, 0xe0e6af26u, 0x1f1950d9u, 0xffffffffu, 0x1f1950d8u, 0x1f1950dau, 0xffffffffu, 0x1f1950d9u, 0x1f1950d9u, 0xffffffffu, 0x1f1950d9u, 0xffffffffu, 0xe0e6af26u, 0x0e6fd1c9u},
{0xc045596eu, 0xc045596eu, 0xc045596eu, 0xc045596eu, 0xc045596eu, 0xc045596eu, 0xc045596eu, 0xc045596eu, 0xc045596eu, 0xc045596eu, 0xc045596eu, 0x00ff01fcu, 0xc1445b6au, 0xbf465772u, 0xc045596eu, 0x00ff01fcu, 0x00ff01fcu, 0xc045596eu, 0x0045016cu, 0xc0ff59feu, 0xc0ba5892u, 0xc045596eu, 0x00ff01fcu, 0xc1445b6au, 0xbf465772u, 0xc045596eu, 0x00ff01fcu, 0x00ff01fcu, 0xc045596eu, 0x0045016cu, 0xc0ff59feu, 0xc0ba5892u, 0x87ed8dfcu},
{0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0xa1e99e64u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000002u, 0x00000000u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000000u, 0xa1e99e64u},
{0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0xdd98b96cu, 0x00000000u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x00000000u, 0xfc520fdeu, 0x6ecc5cb6u, 0xdd98b96cu, 0x00000000u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x00000000u, 0xfc520fdeu},
{0x0e532388u, 0x0e532388u, 0x0e532388u, 0x0e532388u, 0x0e532388u, 0x0e532388u, 0x0e532388u, 0x0e532388u, 0x0e532388u, 0x0e532388u, 0x0e532388u, 0xd28fee69u, 0xe0e311f1u, 0x3bc3351fu, 0xd28fee69u, 0x0e532388u, 0x0e532388u, 0xd28fee69u, 0x02032208u, 0xdedfefe9u, 0xdcdccde1u, 0x0e532388u, 0xd28fee69u, 0xe0e311f1u, 0x3bc3351fu, 0xd28fee69u, 0x0e532388u, 0x0e532388u, 0xd28fee69u, 0x02032208u, 0xdedfefe9u, 0xdcdccde1u, 0xb123fdfdu},
{0x000ff801u, 0x000ff801u, 0x000ff801u, 0x000ff801u, 0x000ff801u, 0x000ff801u, 0x000ff801u, 0x000ff801u, 0x000ff801u, 0x000ff801u, 0xcb4b21ffu, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x000ff801u, 0x800ff801u, 0x7ff007ffu, 0x80000000u, 0x000ff801u, 0x000ff801u, 0x80000000u, 0x00000000u, 0x800ff801u, 0x800ff801u, 0xcb4b21ffu},
{0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x1a6589fdu, 0x9a6589fcu, 0x659a7602u, 0x1a6589fdu, 0x1a6589fdu, 0x7fffffffu, 0x7fffffffu, 0x1a6589fdu, 0x7fffffffu, 0x659a7602u, 0x7fffffffu, 0x1a6589fdu, 0x9a6589fcu, 0x659a7602u, 0x1a6589fdu, 0x1a6589fdu, 0x7fffffffu, 0x7fffffffu, 0x1a6589fdu, 0x7fffffffu, 0x659a7602u, 0xe22fe806u},
{0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x3bbcaa3au, 0x3bbcaa3bu, 0xc44355c7u, 0x00000001u, 0x00000001u, 0x3bbcaa3au, 0x3bbcaa3au, 0x00000000u, 0x3bbcaa3bu, 0x3bbcaa3bu, 0x00000001u, 0x3bbcaa3au, 0x3bbcaa3bu, 0xc44355c7u, 0x00000001u, 0x00000001u, 0x3bbcaa3au, 0x3bbcaa3au, 0x00000000u, 0x3bbcaa3bu, 0x3bbcaa3bu, 0xaba08b3du},
{0xe2a77a78u, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77a78u, 0xe2a779fdu, 0xc54ef475u, 0x0000007bu, 0xe2a779fdu, 0xe2a779fdu, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77878u, 0xe2a77bfdu, 0x00000385u, 0xe2a77a78u, 0xe2a779fdu, 0xc54ef475u, 0x0000007bu, 0xe2a779fdu, 0xe2a779fdu, 0xe2a77a78u, 0xe2a77a78u, 0xe2a77878u, 0xe2a77bfdu, 0x00000385u, 0x9f2fe8f7u},
{0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x000ff801u, 0x000ff802u, 0xfff00800u, 0x00000001u, 0x00000001u, 0x000ff801u, 0x000ff801u, 0x00000001u, 0x000ff801u, 0x000ff800u, 0x00000001u, 0x000ff801u, 0x000ff802u, 0xfff00800u, 0x00000001u, 0x00000001u, 0x000ff801u, 0x000ff801u, 0x00000001u, 0x000ff801u, 0x000ff800u, 0x242ffb1fu},
{0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7fffffffu, 0x7ffffffeu, 0xfffffffdu, 0x00000001u, 0x7ffffffeu, 0x7ffffffeu, 0x7fffffffu, 0x7fffffffu, 0x7ffffffeu, 0x7fffffffu, 0x00000001u, 0x7fffffffu, 0x7ffffffeu, 0xfffffffdu, 0x00000001u, 0x7ffffffeu, 0x7ffffffeu, 0x7fffffffu, 0x7fffffffu, 0x7ffffffeu, 0x7fffffffu, 0x00000001u, 0x8853d3bfu},
{0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0x00007fffu, 0xff017effu, 0xff007f01u, 0xff00ff00u, 0x00007fffu, 0x00007fffu, 0xff00ff00u, 0x00007f00u, 0xff00ffffu, 0xff0080ffu, 0xff00ff00u, 0x00007fffu, 0xff017effu, 0xff007f01u, 0xff00ff00u, 0x00007fffu, 0x00007fffu, 0xff00ff00u, 0x00007f00u, 0xff00ffffu, 0xff0080ffu, 0x4894991du},
{0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0x00000000u, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0x00000000u, 0x00000000u, 0xffffffffu, 0x00000000u, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0x00000000u, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0x00000000u, 0x00000000u, 0xffffffffu, 0x00000000u, 0xffffffffu, 0xffffffffu, 0xc69f64a3u},
{0xfc2a621cu, 0xfc2a621cu, 0xfc2a621cu, 0xfc2a621cu, 0xfc2a621cu, 0xfc2a621cu, 0xfc2a621cu, 0xfc2a621cu, 0xfc2a621cu, 0xfc2a621cu, 0xbfce753fu, 0xfff2776cu, 0xfff2776cu, 0xfff2776cu, 0xfff2776cu, 0xfff2776cu, 0xfff2776cu, 0xfff2776cu, 0xfff2776cu, 0xfff2776cu, 0xfff2776cu, 0xfff2776cu, 0xfc2a621cu, 0xfc1cd988u, 0x03c81550u, 0xfc2a621cu, 0xfc2a621cu, 0xfff2776cu, 0xfff2776cu, 0xfc22620cu, 0xfffa777cu, 0x03d81570u, 0xbfce753fu},
{0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x60e75e3cu, 0x811b6c22u, 0x811b6c22u, 0x811b6c22u, 0x811b6c22u, 0x811b6c22u, 0x811b6c22u, 0x811b6c22u, 0x811b6c22u, 0x811b6c22u, 0x811b6c22u, 0x811b6c22u, 0x00007fffu, 0x811bec21u, 0x811aec23u, 0x811b6c22u, 0x00007fffu, 0x00007fffu, 0x811b6c22u, 0x00006c22u, 0x811b7fffu, 0x811b13ddu, 0x60e75e3cu},
{0xb4f88561u, 0xb4f88561u, 0xb4f88561u, 0xb4f88561u, 0xb4f88561u, 0xb4f88561u, 0xb4f88561u, 0xb4f88561u, 0xb4f88561u, 0xb4f88561u, 0xb4f88561u, 0xecc6592du, 0xa1bede8eu, 0xc8322c34u, 0xb4f88561u, 0xb4f88561u, 0xecc6592du, 0xecc6592du, 0xa4c00121u, 0xfcfedd6du, 0x583edc4cu, 0xb4f88561u, 0xecc6592du, 0xa1bede8eu, 0xc8322c34u, 0xb4f88561u, 0xb4f88561u, 0xecc6592du, 0xecc6592du, 0xa4c00121u, 0xfcfedd6du, 0x583edc4cu, 0x14321c1cu},
{0x00010000u, 0x00010000u, 0x00010000u, 0x00010000u, 0x00010000u, 0x00010000u, 0x00010000u, 0x00010000u, 0x00010000u, 0x00010000u, 0x00010000u, 0xb22f4004u, 0xb2304004u, 0x4dd1bffcu, 0xb22f4004u, 0x00010000u, 0x00010000u, 0xb22f4004u, 0x00010000u, 0xb22f4004u, 0xb22e4004u, 0x00010000u, 0xb22f4004u, 0xb2304004u, 0x4dd1bffcu, 0xb22f4004u, 0x00010000u, 0x00010000u, 0xb22f4004u, 0x00010000u, 0xb22f4004u, 0xb22e4004u, 0x0c8b001fu},
{0x8f9fa5ecu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x946fa280u, 0x240f486cu, 0xfb30036cu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x946fa280u, 0x946fa280u, 0x840fa080u, 0x9fffa7ecu, 0x1bf0076cu, 0x8f9fa5ecu, 0x946fa280u, 0x240f486cu, 0xfb30036cu, 0x8f9fa5ecu, 0x8f9fa5ecu, 0x946fa280u, 0x946fa280u, 0x840fa080u, 0x9fffa7ecu, 0x1bf0076cu, 0x0e9505f4u},
{0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x57d10b4du, 0x57d10bcdu, 0xa82ef533u, 0x00000080u, 0x00000080u, 0x57d10b4du, 0x57d10b4du, 0x00000000u, 0x57d10bcdu, 0x57d10bcdu, 0x00000080u, 0x57d10b4du, 0x57d10bcdu, 0xa82ef533u, 0x00000080u, 0x00000080u, 0x57d10b4du, 0x57d10b4du, 0x00000000u, 0x57d10bcdu, 0x57d10bcdu, 0x0f7b8468u},
{0xf4823356u, 0xf4823356u, 0xf4823356u, 0xf4823356u, 0xf4823356u, 0xf4823356u, 0xf4823356u, 0xf4823356u, 0xf4823356u, 0xf4823356u, 0xf4823356u, 0x00008000u, 0xf482b356u, 0xf481b356u, 0xf4823356u, 0x00008000u, 0x00008000u, 0xf4823356u, 0x00000000u, 0xf482b356u, 0xf482b356u, 0xf4823356u, 0x00008000u, 0xf482b356u, 0xf481b356u, 0xf4823356u, 0x00008000u, 0x00008000u, 0xf4823356u, 0x00000000u, 0xf482b356u, 0xf482b356u, 0x142cfcf9u},
{0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0x732951cdu, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xb29cd766u, 0x00000000u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0xd94e6bb3u, 0x00000000u, 0x732951cdu},
{0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x13afe032u, 0x25e436aau, 0xfe847646u, 0x12345678u, 0x12345678u, 0x13afe032u, 0x13afe032u, 0x12244030u, 0x13bff67au, 0x019bb64au, 0x12345678u, 0x13afe032u, 0x25e436aau, 0xfe847646u, 0x12345678u, 0x12345678u, 0x13afe032u, 0x13afe032u, 0x12244030u, 0x13bff67au, 0x019bb64au, 0x6e0b75fcu},
{0xd14e11a6u, 0xd14e11a6u, 0xd14e11a6u, 0xd14e11a6u, 0xd14e11a6u, 0xd14e11a6u, 0xd14e11a6u, 0xd14e11a6u, 0xd14e11a6u, 0xd14e11a6u, 0xd14e11a6u, 0x00007fffu, 0xd14e91a5u, 0xd14d91a7u, 0xd14e11a6u, 0x00007fffu, 0x00007fffu, 0xd14e11a6u, 0x000011a6u, 0xd14e7fffu, 0xd14e6e59u, 0xd14e11a6u, 0x00007fffu, 0xd14e91a5u, 0xd14d91a7u, 0xd14e11a6u, 0x00007fffu, 0x00007fffu, 0xd14e11a6u, 0x000011a6u, 0xd14e7fffu, 0xd14e6e59u, 0xa217908cu},
{0xab1ff0d5u, 0xab1ff0d5u, 0xab1ff0d5u, 0xab1ff0d5u, 0xab1ff0d5u, 0xab1ff0d5u, 0xab1ff0d5u, 0xab1ff0d5u, 0xab1ff0d5u, 0xab1ff0d5u, 0xab1ff0d5u, 0xab1ff0d5u, 0x563fe1aau, 0x00000000u, 0xab1ff0d5u, 0xab1ff0d5u, 0xab1ff0d5u, 0xab1ff0d5u, 0xab1ff0d5u, 0xab1ff0d5u, 0x00000000u, 0x0b897562u, 0xab1ff0d5u, 0x563fe1aau, 0x00000000u, 0xab1ff0d5u, 0xab1ff0d5u, 0xab1ff0d5u, 0xab1ff0d5u, 0xab1ff0d5u, 0xab1ff0d5u, 0x00000000u, 0x0b897562u},
{0x2dafc382u, 0x2dafc382u, 0x2dafc382u, 0x2dafc382u, 0x2dafc382u, 0x2dafc382u, 0x2dafc382u, 0x2dafc382u, 0x2dafc382u, 0x2dafc382u, 0xbcd18df8u, 0x82f94d41u, 0x82f94d41u, 0x82f94d41u, 0x82f94d41u, 0x82f94d41u, 0x82f94d41u, 0x82f94d41u, 0x82f94d41u, 0x82f94d41u, 0x82f94d41u, 0x82f94d41u, 0x2dafc382u, 0xb0a910c3u, 0x554989bfu, 0x82f94d41u, 0x2dafc382u, 0x2dafc382u, 0x82f94d41u, 0x00a94100u, 0xafffcfc3u, 0xaf568ec3u, 0xbcd18df8u},
{0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x62fba05du, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x13579bdeu, 0x00000000u, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x89abcdefu, 0x00000000u, 0x62fba05du},
{0x321439f8u, 0x321439f8u, 0x321439f8u, 0x321439f8u, 0x321439f8u, 0x321439f8u, 0x321439f8u, 0x321439f8u, 0x321439f8u, 0x321439f8u, 0x321439f8u, 0x00000003u, 0x321439fbu, 0x321439f5u, 0x00000003u, 0x00000003u, 0x321439f8u, 0x321439f8u, 0x00000000u, 0x321439fbu, 0x321439fbu, 0x321439f8u, 0x00000003u, 0x321439fbu, 0x321439f5u, 0x00000003u, 0x00000003u, 0x321439f8u, 0x321439f8u, 0x00000000u, 0x321439fbu, 0x321439fbu, 0x3631cb82u},
{0x4e84d753u, 0x4e84d753u, 0x4e84d753u, 0x4e84d753u, 0x4e84d753u, 0x4e84d753u, 0x4e84d753u, 0x4e84d753u, 0x4e84d753u, 0x4e84d753u, 0x4e84d753u, 0x54a9b365u, 0xa32e8ab8u, 0xf9db23eeu, 0x4e84d753u, 0x4e84d753u, 0x54a9b365u, 0x54a9b365u, 0x44809341u, 0x5eadf777u, 0x1a2d6436u, 0x4e84d753u, 0x54a9b365u, 0xa32e8ab8u, 0xf9db23eeu, 0x4e84d753u, 0x4e84d753u, 0x54a9b365u, 0x54a9b365u, 0x44809341u, 0x5eadf777u, 0x1a2d6436u, 0x56ee8a7bu},
{0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0x36938222u, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xffffffffu, 0xff00ff00u, 0xff00feffu, 0x00ff00ffu, 0xff00ff00u, 0xff00ff00u, 0xffffffffu, 0xffffffffu, 0xff00ff00u, 0xffffffffu, 0x00ff00ffu, 0x36938222u},
{0x00000081u, 0x00000081u, 0x00000081u, 0x00000081u, 0x00000081u, 0x00000081u, 0x00000081u, 0x00000081u, 0x00000081u, 0x00000081u, 0xd4d05190u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000081u, 0x00000101u, 0xffffffffu, 0x00000080u, 0x00000080u, 0x00000081u, 0x00000081u, 0x00000080u, 0x00000081u, 0x00000001u, 0xd4d05190u},
{0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00008000u, 0x00000003u, 0x00008003u, 0x00007ffdu, 0x00000003u, 0x00000003u, 0x00008000u, 0x00008000u, 0x00000000u, 0x00008003u, 0x00008003u, 0x00008000u, 0x00000003u, 0x00008003u, 0x00007ffdu, 0x00000003u, 0x00000003u, 0x00008000u, 0x00008000u, 0x00000000u, 0x00008003u, 0x00008003u, 0x7ad78e73u},
{0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0x00000080u, 0xe8e0746eu, 0xe8e074eeu, 0x171f8c12u, 0xe8e0746eu, 0x00000080u, 0x00000080u, 0xe8e0746eu, 0x00000000u, 0xe8e074eeu, 0xe8e074eeu, 0x00000080u, 0xe8e0746eu, 0xe8e074eeu, 0x171f8c12u, 0xe8e0746eu, 0x00000080u, 0x00000080u, 0xe8e0746eu, 0x00000000u, 0xe8e074eeu, 0xe8e074eeu, 0x4bbe399cu},
{0x9de1f1fcu, 0x9de1f1fcu, 0x9de1f1fcu, 0x9de1f1fcu, 0x9de1f1fcu, 0x9de1f1fcu, 0x9de1f1fcu, 0x9de1f1fcu, 0x9de1f1fcu, 0x9de1f1fcu, 0x9de1f1fcu, 0x7fffffffu, 0x1de1f1fbu, 0x1de1f1fdu, 0x9de1f1fcu, 0x7fffffffu, 0x7fffffffu, 0x9de1f1fcu, 0x1de1f1fcu, 0xffffffffu, 0xe21e0e03u, 0x9de1f1fcu, 0x7fffffffu, 0x1de1f1fbu, 0x1de1f1fdu, 0x9de1f1fcu, 0x7fffffffu, 0x7fffffffu, 0x9de1f1fcu, 0x1de1f1fcu, 0xffffffffu, 0xe21e0e03u, 0xe065fc6cu},
{0x5b11485au, 0x5b11485au, 0x5b11485au, 0x5b11485au, 0x5b11485au, 0x5b11485au, 0x5b11485au, 0x5b11485au, 0x5b11485au, 0x5b11485au, 0x790577fdu, 0xce05cb84u, 0xce05cb84u, 0xce05cb84u, 0xce05cb84u, 0xce05cb84u, 0xce05cb84u, 0xce05cb84u, 0xce05cb84u, 0xce05cb84u, 0xce05cb84u, 0xce05cb84u, 0x5b11485au, 0x291713deu, 0x72f4832au, 0xce05cb84u, 0x5b11485au, 0x5b11485au, 0xce05cb84u, 0x4a014800u, 0xdf15cbdeu, 0x951483deu, 0x790577fdu},
{0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x6df9dc5cu, 0x62cd61e2u, 0x62cd61e2u, 0x62cd61e2u, 0x62cd61e2u, 0x62cd61e2u, 0x62cd61e2u, 0x62cd61e2u, 0x62cd61e2u, 0x62cd61e2u, 0x62cd61e2u, 0x62cd61e2u, 0x12345678u, 0x7501b85au, 0x50990b6au, 0x12345678u, 0x12345678u, 0x62cd61e2u, 0x62cd61e2u, 0x02044060u, 0x72fd77fau, 0x70f9379au, 0x6df9dc5cu},
{0x00ff00ffu, 0x00ff00ffu, 0x00ff00ffu, 0x00ff00ffu, 0x00ff00ffu, 0x00ff00ffu, 0x00ff00ffu, 0x00ff00ffu, 0x00ff00ffu, 0x00ff00ffu, 0x00ff00ffu, 0x00ff00feu, 0x01fe01fdu, 0x00000001u, 0x00ff00feu, 0x00ff00feu, 0x00ff00ffu, 0x00ff00ffu, 0x00ff00feu, 0x00ff00ffu, 0x00000001u, 0x00ff00ffu, 0x00ff00feu, 0x01fe01fdu, 0x00000001u, 0x00ff00feu, 0x00ff00feu, 0x00ff00ffu, 0x00ff00ffu, 0x00ff00feu, 0x00ff00ffu, 0x00000001u, 0x704b8500u},
{0x053b0655u, 0x053b0655u, 0x053b0655u, 0x053b0655u, 0x053b0655u, 0x053b0655u, 0x053b0655u, 0x053b0655u, 0x053b0655u, 0x053b0655u, 0x053b0655u, 0x7fffffffu, 0x853b0654u, 0x853b0656u, 0x053b0655u, 0x053b0655u, 0x7fffffffu, 0x7fffffffu, 0x053b0655u, 0x7fffffffu, 0x7ac4f9aau, 0x053b0655u, 0x7fffffffu, 0x853b0654u, 0x853b0656u, 0x053b0655u, 0x053b0655u, 0x7fffffffu, 0x7fffffffu, 0x053b0655u, 0x7fffffffu, 0x7ac4f9aau, 0x54a25ef4u},
{0x1c2fe6d7u, 0x1c2fe6d7u, 0x1c2fe6d7u, 0x1c2fe6d7u, 0x1c2fe6d7u, 0x1c2fe6d7u, 0x1c2fe6d7u, 0x1c2fe6d7u, 0x1c2fe6d7u, 0x1c2fe6d7u, 0x59a71dfcu, 0x99062011u, 0x99062011u, 0x99062011u, 0x99062011u, 0x99062011u, 0x99062011u, 0x99062011u, 0x99062011u, 0x99062011u, 0x99062011u, 0x99062011u, 0x1c2fe6d7u, 0xb53606e8u, 0x7cd6393au, 0x99062011u, 0x1c2fe6d7u, 0x1c2fe6d7u, 0x99062011u, 0x18062011u, 0x9d2fe6d7u, 0x8529c6c6u, 0x59a71dfcu},
{0x57ef669fu, 0x57ef669fu, 0x57ef669fu, 0x57ef669fu, 0x57ef669fu, 0x57ef669fu, 0x57ef669fu, 0x57ef669fu, 0x57ef669fu, 0x57ef669fu, 0x57ef669fu, 0x00000002u, 0x57ef66a1u, 0x57ef669du, 0x00000002u, 0x00000002u, 0x57ef669fu, 0x57ef669fu, 0x00000002u, 0x57ef669fu, 0x57ef669du, 0x57ef669fu, 0x00000002u, 0x57ef66a1u, 0x57ef669du, 0x00000002u, 0x00000002u, 0x57ef669fu, 0x57ef669fu, 0x00000002u, 0x57ef669fu, 0x57ef669du, 0xe1ff47dbu},
{0x230a2bc5u, 0x230a2bc5u, 0x230a2bc5u, 0x230a2bc5u, 0x230a2bc5u, 0x230a2bc5u, 0x230a2bc5u, 0x230a2bc5u, 0x230a2bc5u, 0x230a2bc5u, 0x230a2bc5u, 0x230a2bc4u, 0x46145789u, 0x00000001u, 0x230a2bc4u, 0x230a2bc4u, 0x230a2bc5u, 0x230a2bc5u, 0x230a2bc4u, 0x230a2bc5u, 0x00000001u, 0x230a2bc5u, 0x230a2bc4u, 0x46145789u, 0x00000001u, 0x230a2bc4u, 0x230a2bc4u, 0x230a2bc5u, 0x230a2bc5u, 0x230a2bc4u, 0x230a2bc5u, 0x00000001u, 0xb278ccf4u},
{0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0xff00ff00u, 0x000000ffu, 0xff00ffffu, 0xff00fe01u, 0xff00ff00u, 0x000000ffu, 0x000000ffu, 0xff00ff00u, 0x00000000u, 0xff00ffffu, 0xff00ffffu, 0xff00ff00u, 0x000000ffu, 0xff00ffffu, 0xff00fe01u, 0xff00ff00u, 0x000000ffu, 0x000000ffu, 0xff00ff00u, 0x00000000u, 0xff00ffffu, 0xff00ffffu, 0xb83f90e9u},
{0x00ff00ffu, 0x00ff00ffu, 0x00ff00ffu, 0x00ff00ffu, 0x00ff00ffu, 0x00ff00ffu, 0x00ff00ffu, 0x00ff00ffu, 0x00ff00ffu, 0x00ff00ffu, 0xff5ae0b0u, 0xee86c75eu, 0xee86c75eu, 0xee86c75eu, 0xee86c75eu, 0xee86c75eu, 0xee86c75eu, 0xee86c75eu, 0xee86c75eu, 0xee86c75eu, 0xee86c75eu, 0xee86c75eu, 0x00ff00ffu, 0xef85c85du, 0xed87c65fu, 0xee86c75eu, 0x00ff00ffu, 0x00ff00ffu, 0xee86c75eu, 0x0086005eu, 0xeeffc7ffu, 0xee79c7a1u, 0xff5ae0b0u},
{0x7c900a51u, 0x7c900a51u, 0x7c900a51u, 0x7c900a51u, 0x7c900a51u, 0x7c900a51u, 0x7c900a51u, 0x7c900a51u, 0x7c900a51u, 0x7c900a51u, 0x77bbc220u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x00000001u, 0x7c900a51u, 0x7c900a52u, 0x836ff5b0u, 0x00000001u, 0x00000001u, 0x7c900a51u, 0x7c900a51u, 0x00000001u, 0x7c900a51u, 0x7c900a50u, 0x77bbc220u},
{0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0x000000ffu, 0xffffffffu, 0x000000feu, 0x00000100u, 0xffffffffu, 0x000000ffu, 0x000000ffu, 0xffffffffu, 0x000000ffu, 0xffffffffu, 0xffffff00u, 0x000000ffu, 0xffffffffu, 0x000000feu, 0x00000100u, 0xffffffffu, 0x000000ffu, 0x000000ffu, 0xffffffffu, 0x000000ffu, 0xffffffffu, 0xffffff00u, 0x3b082f86u},
{0xa9af3d85u, 0xa9af3d85u, 0xa9af3d85u, 0xa9af3d85u, 0xa9af3d85u, 0xa9af3d85u, 0xa9af3d85u, 0xa9af3d85u, 0xa9af3d85u, 0xa9af3d85u, 0xa9af3d85u, 0x938bfc16u, 0x3d3b399bu, 0x1623416fu, 0x938bfc16u, 0x938bfc16u, 0xa9af3d85u, 0xa9af3d85u, 0x818b3c04u, 0xbbaffd97u, 0x3a24c193u, 0xa9af3d85u, 0x938bfc16u, 0x3d3b399bu, 0x1623416fu, 0x938bfc16u, 0x938bfc16u, 0xa9af3d85u, 0xa9af3d85u, 0x818b3c04u, 0xbbaffd97u, 0x3a24c193u, 0xf3cf3a11u},
{0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x12345678u, 0x47021cf1u, 0x59367369u, 0xcb323987u, 0x12345678u, 0x12345678u, 0x47021cf1u, 0x47021cf1u, 0x02001470u, 0x57365ef9u, 0x55364a89u, 0x12345678u, 0x47021cf1u, 0x59367369u, 0xcb323987u, 0x12345678u, 0x12345678u, 0x47021cf1u, 0x47021cf1u, 0x02001470u, 0x57365ef9u, 0x55364a89u, 0x59c67fb6u},
{0x89009332u, 0x89009332u, 0x89009332u, 0x89009332u, 0x89009332u, 0x89009332u, 0x89009332u, 0x89009332u, 0x89009332u, 0x89009332u, 0x89009332u, 0x89009332u, 0x12012664u, 0x00000000u, 0x89009332u, 0x89009332u, 0x89009332u, 0x89009332u, 0x89009332u, 0x89009332u, 0x00000000u, 0x3044bfafu, 0x89009332u, 0x12012664u, 0x00000000u, 0x89009332u, 0x89009332u, 0x89009332u, 0x89009332u, 0x89009332u, 0x89009332u, 0x00000000u, 0x3044bfafu},
{0x1d432825u, 0x1d432825u, 0x1d432825u, 0x1d432825u, 0x1d432825u, 0x1d432825u, 0x1d432825u, 0x1d432825u, 0x1d432825u, 0x1d432825u, 0x8b85be22u, 0x7ab0e583u, 0x7ab0e583u, 0x7ab0e583u, 0x7ab0e583u, 0x7ab0e583u, 0x7ab0e583u, 0x7ab0e583u, 0x7ab0e583u, 0x7ab0e583u, 0x7ab0e583u, 0x7ab0e583u, 0x1d432825u, 0x97f40da8u, 0x5d6dbd5eu, 0x1d432825u, 0x1d432825u, 0x7ab0e583u, 0x7ab0e583u, 0x18002001u, 0x7ff3eda7u, 0x67f3cda6u, 0x8b85be22u},
{0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x80000000u, 0x000001fcu, 0x800001fcu, 0x7ffffe04u, 0x80000000u, 0x000001fcu, 0x000001fcu, 0x80000000u, 0x00000000u, 0x800001fcu, 0x800001fcu, 0x80000000u, 0x000001fcu, 0x800001fcu, 0x7ffffe04u, 0x80000000u, 0x000001fcu, 0x000001fcu, 0x80000000u, 0x00000000u, 0x800001fcu, 0x800001fcu, 0x5eafe75eu},
{0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007fffu, 0x00007ffeu, 0x0000fffdu, 0x00000001u, 0x00007ffeu, 0x00007ffeu, 0x00007fffu, 0x00007fffu, 0x00007ffeu, 0x00007fffu, 0x00000001u, 0x00007fffu, 0x00007ffeu, 0x0000fffdu, 0x00000001u, 0x00007ffeu, 0x00007ffeu, 0x00007fffu, 0x00007fffu, 0x00007ffeu, 0x00007fffu, 0x00000001u, 0x5d9057fau},
{0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0xf7bc3c79u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x0f2739f2u, 0x00000000u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x07939cf9u, 0x00000000u, 0xf7bc3c79u},
{0x99b9355bu, 0x99b9355bu, 0x99b9355bu, 0x99b9355bu, 0x99b9355bu, 0x99b9355bu, 0x99b9355bu, 0x99b9355bu, 0x99b9355bu, 0x99b9355bu, 0x99b9355bu, 0x066ff6ccu, 0xa0292c27u, 0x93493e8fu, 0x99b9355bu, 0x066ff6ccu, 0x066ff6ccu, 0x99b9355bu, 0x00293448u, 0x9ffff7dfu, 0x9fd6c397u, 0x99b9355bu, 0x066ff6ccu, 0xa0292c27u, 0x93493e8fu, 0x99b9355bu, 0x066ff6ccu, 0x066ff6ccu, 0x99b9355bu, 0x00293448u, 0x9ffff7dfu, 0x9fd6c397u, 0x6c4ff23fu},
{0xb71c6da5u, 0xb71c6da5u, 0xb71c6da5u, 0xb71c6da5u, 0xb71c6da5u, 0xb71c6da5u, 0xb71c6da5u, 0xb71c6da5u, 0xb71c6da5u, 0xb71c6da5u, 0xb71c6da5u, 0x4e0b9dcdu, 0x05280b72u, 0x6910cfd8u, 0xb71c6da5u, 0x4e0b9dcdu, 0x4e0b9dcdu, 0xb71c6da5u, 0x06080d85u, 0xff1ffdedu, 0xf917f068u, 0xb71c6da5u, 0x4e0b9dcdu, 0x05280b72u, 0x6910cfd8u, 0xb71c6da5u, 0x4e0b9dcdu, 0x4e0b9dcdu, 0xb71c6da5u, 0x06080d85u, 0xff1ffdedu, 0xf917f068u, 0x54b79af1u},
{0xa59fd1fcu, 0xa59fd1fcu, 0xa59fd1fcu, 0xa59fd1fcu, 0xa59fd1fcu, 0xa59fd1fcu, 0xa59fd1fcu, 0xa59fd1fcu, 0xa59fd1fcu, 0xa59fd1fcu, 0x93b731fcu, 0xa59fd12fu, 0xa59fd12fu, 0xa59fd12fu, 0xa59fd12fu, 0xa59fd12fu, 0xa59fd12fu, 0xa59fd12fu, 0xa59fd12fu, 0xa59fd12fu, 0xa59fd12fu, 0xa59fd12fu, 0xa59fd1fcu, 0x4b3fa32bu, 0xffffff33u, 0xa59fd12fu, 0xa59fd12fu, 0xa59fd1fcu, 0xa59fd1fcu, 0xa59fd12cu, 0xa59fd1ffu, 0x000000d3u, 0x93b731fcu}
};
constexpr const char* Names[Checked] = {
"buffer_atomic_swap returned", "buffer_atomic_add returned", "buffer_atomic_sub returned", "buffer_atomic_smin returned",
"buffer_atomic_umin returned", "buffer_atomic_smax returned", "buffer_atomic_umax returned", "buffer_atomic_and returned",
"buffer_atomic_or returned", "buffer_atomic_xor returned", "buffer_atomic_cmpswap returned", "buffer_atomic_swap (exec-masked) result",
"buffer_atomic_add (exec-masked) result", "buffer_atomic_sub (exec-masked) result", "buffer_atomic_smin (exec-masked) result", "buffer_atomic_umin (exec-masked) result",
"buffer_atomic_smax (exec-masked) result", "buffer_atomic_umax (exec-masked) result", "buffer_atomic_and (exec-masked) result", "buffer_atomic_or (exec-masked) result",
"buffer_atomic_xor (exec-masked) result", "buffer_atomic_cmpswap (exec-masked) result", "buffer_atomic_swap (no return) result", "buffer_atomic_add (no return) result",
"buffer_atomic_sub (no return) result", "buffer_atomic_smin (no return) result", "buffer_atomic_umin (no return) result", "buffer_atomic_smax (no return) result",
"buffer_atomic_umax (no return) result", "buffer_atomic_and (no return) result", "buffer_atomic_or (no return) result", "buffer_atomic_xor (no return) result",
"buffer_atomic_cmpswap (no return) result",
};
std::array<std::uint32_t, 4> BufferDescriptor(const void* data, std::uint32_t bytes) {
const auto address = reinterpret_cast<std::uintptr_t>(data);
return {static_cast<std::uint32_t>(address), static_cast<std::uint32_t>((address >> 32u) & 0xffffu), bytes, 0x31016facu};
}
std::string Hex(std::uint32_t value) {
char text[16];
std::snprintf(text, sizeof(text), "0x%08x", value);
return text;
}
void Run(AgcDriver::VulkanDevice& device, std::span<const std::uint32_t> code, std::uint32_t waveSize, const ShaderRecompiler::SpirvTarget& target) {
Input.fill(0u);
for (std::uint32_t tid = 0; tid < waveSize; ++tid) std::copy(std::begin(Rows[tid]), std::end(Rows[tid]), &Input[tid * Inputs]);
std::copy(std::begin(SharedInit), std::end(SharedInit), &Input[waveSize * Inputs]);
Output.fill(0xdeadbeefu);
std::vector<std::uint32_t> userData(8, 0u);
const auto input = BufferDescriptor(Input.data(), (waveSize * Inputs + SharedWords) * 4u);
const auto output = BufferDescriptor(Output.data(), waveSize * Results * 4u);
std::copy(input.begin(), input.end(), userData.begin());
std::copy(output.begin(), output.end(), userData.begin() + 4);
const std::array<ShaderRecompiler::MemoryRegion, 1> memory{{{reinterpret_cast<std::uintptr_t>(code.data()), std::as_bytes(code)}}};
const ShaderRecompiler::ShaderComputeStageInfo compute{{waveSize, 1, 1}, 0u, {false, false, false}, false, 1};
ShaderRecompiler::RecompileRequest request{
{ShaderStage::Compute, reinterpret_cast<std::uintptr_t>(code.data()), code, 0, {}},
{waveSize, 0, userData, compute, std::nullopt, std::nullopt, memory},
target,
{0, 0, 0, 128}
};
request.useCache = false;
const auto result = ShaderRecompiler::Recompile(request);
device.Dispatch(result, 1, 1, 1, {}, reinterpret_cast<std::uintptr_t>(code.data()));
device.WaitIdle();
}
template <std::size_t Lanes>
void Check(const std::uint32_t (&expected)[Lanes][Checked], const char* const (&names)[Checked], const char* run) {
for (std::uint32_t tid = 0; tid < Lanes; ++tid) {
for (std::uint32_t index = 0; index < Checked; ++index) {
const auto actual = Output[tid * Results + index];
Require(actual == expected[tid][index], std::string("buffer integer atomics ") + run + ": lane " + std::to_string(tid) + " " + names[index] + " is " + Hex(actual) + ", expected " + Hex(expected[tid][index]));
}
}
}
constexpr std::uint32_t SharedExpected32[6] = {
0xa9ac023fu, 0x00000000u, 0xffffffffu, 0x2853424au, 0x80000000u, 0xffffffffu
};
constexpr std::uint32_t SharedExpected64[6] = {
0xc9ac3a8fu, 0x00000000u, 0xffffffffu, 0xdacc543du, 0x80000000u, 0xffffffffu
};
constexpr const char* SharedNames[6] = {
"buffer_atomic_add, all lanes on one dword", "buffer_atomic_and, all lanes on one dword", "buffer_atomic_or, all lanes on one dword", "buffer_atomic_xor, all lanes on one dword",
"buffer_atomic_smin, all lanes on one dword", "buffer_atomic_umax, all lanes on one dword",
};
template <std::size_t Words>
void CheckShared(const std::uint32_t (&expected)[Words], const char* const (&names)[Words], std::uint32_t waveSize, const char* run) {
for (std::uint32_t index = 0; index < Words; ++index) {
const auto actual = Input[waveSize * Inputs + index];
Require(actual == expected[index], std::string("buffer integer atomics ") + run + ": " + names[index] + " is " + Hex(actual) + ", expected " + Hex(expected[index]));
}
}
}
int main() {
try {
const auto device = OpenVulkanTestDevice();
if (!device) return VulkanTestSkipped;
Run(*device, Wave32Code, 32, device->Target());
Check(Expected32, Names, "wave32");
CheckShared(SharedExpected32, SharedNames, 32, "wave32");
Run(*device, Wave64Code, 64, device->Target());
Check(Expected64, Names, "wave64");
CheckShared(SharedExpected64, SharedNames, 64, "wave64");
Run(*device, Wave64Code, 64, device->ComputeTarget(32));
Check(Expected64, Names, "wave64 split");
CheckShared(SharedExpected64, SharedNames, 64, "wave64 split");
std::puts("buffer integer atomics tests passed");
return 0;
} catch (const std::exception& error) {
std::cerr << error.what() << '\n';
return 1;
}
}
@@ -0,0 +1,319 @@
#include "prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp"
#include "prx/libSceAgcDriver/Graphics/include/Draw.hpp"
#include "Recompiler.hpp"
#include "VulkanTestDevice.hpp"
#include <algorithm>
#include <array>
#include <cstdint>
#include <cstdio>
#include <iostream>
#include <span>
#include <string>
#include <vector>
namespace {
using AgcDriver::Graphics::Require;
using ShaderRecompiler::ShaderStage;
constexpr std::uint32_t MaxThreads = 64;
constexpr std::uint32_t Inputs = 4;
constexpr std::uint32_t Results = 128;
constexpr std::uint32_t SharedWords = 16;
constexpr std::uint32_t Checked = 30;
alignas(256) std::array<std::uint32_t, MaxThreads * Inputs + SharedWords> Input{};
alignas(256) std::array<std::uint32_t, MaxThreads * Results> Output{};
alignas(256) constexpr std::array<std::uint32_t, 162> Wave32Code{
0x34020084, 0x34060089, 0xe0381000, 0x80000401, 0xbf8c3f70, 0xbe880300, 0xbe890301, 0xbe8a03ff,
0x00000200, 0xbe8b03ff, 0x31016fac, 0xbe8c0304, 0xbe8d0305, 0xbe8e03ff, 0x00002000, 0xbe8f03ff,
0x31016fac, 0xbe980383, 0xe0781100, 0x80010403, 0xe0781110, 0x80010403, 0xe0781120, 0x80010403,
0xe0781130, 0x80010403, 0xe07411f8, 0x80010403, 0xbf8c3f70, 0x36a60aff, 0x000003ff, 0xd5480054,
0x02291705, 0x36aa0cff, 0x000003fe, 0xd5480056, 0x02291706, 0x36ae0eff, 0x000003fc, 0xd5480058,
0x02291707, 0x36acacc2, 0x36b0b0c4, 0x7e140306, 0x7e160306, 0x7e180306, 0x7e1a0306, 0x7e1c0306,
0x7e1e0306, 0x7e200306, 0x7e220306, 0x7e240306, 0x7e260306, 0x7e280306, 0x7e2a0306, 0x2ca00e9e,
0x7d8aa080, 0xbea83c6a, 0xe0201000, 0x80020a53, 0xe0241000, 0x80020b54, 0xe0281000, 0x80020c55,
0xe02c1000, 0x80020d56, 0xe0341000, 0x80020e57, 0xe03c1000, 0x80021058, 0xe0201005, 0x18021301,
0xe024100f, 0x80021401, 0xe02c100b, 0x18021501, 0xbefe03c1, 0x36b2088f, 0x4ab2b303, 0xd548005a,
0x020d0904, 0xd746005a, 0x040d035a, 0xd548005b, 0x02050f04, 0xd746005b, 0x040d055b, 0x2ca00c9e,
0x7d8aa080, 0xbea83c6a, 0xe0601100, 0x80010659, 0xe0681110, 0x8001075a, 0xbefe03c1, 0xe07c1120,
0x8001055b, 0xe060112d, 0x18010703, 0xe0601130, 0x80030403, 0xe0681132, 0x80030503, 0xe07c1134,
0x80030503, 0xe07c11f8, 0x80030503, 0xbf8c3f70, 0xe030d100, 0x80011603, 0xe030d104, 0x80011703,
0xe030d108, 0x80011803, 0xe030d10c, 0x80011903, 0xe030d110, 0x80011a03, 0xe030d114, 0x80011b03,
0xe030d118, 0x80011c03, 0xe030d11c, 0x80011d03, 0xe030d120, 0x80011e03, 0xe030d124, 0x80011f03,
0xe030d128, 0x80012003, 0xe030d12c, 0x80012103, 0xe030d130, 0x80012203, 0xe030d134, 0x80012303,
0xe030d138, 0x80012403, 0xe030d13c, 0x80012503, 0xe030d1f8, 0x80012603, 0xe030d1fc, 0x80012703,
0xbf8c3f70, 0xe0781000, 0x80010a03, 0xe0781010, 0x80010e03, 0xe0781020, 0x80011203, 0xe0781030,
0x80011603, 0xe0781040, 0x80011a03, 0xe0781050, 0x80011e03, 0xe0781060, 0x80012203, 0xe0781070,
0x80012603, 0xbf810000,
};
alignas(256) constexpr std::array<std::uint32_t, 162> Wave64Code{
0x34020084, 0x34060089, 0xe0381000, 0x80000401, 0xbf8c3f70, 0xbe880300, 0xbe890301, 0xbe8a03ff,
0x00000400, 0xbe8b03ff, 0x31016fac, 0xbe8c0304, 0xbe8d0305, 0xbe8e03ff, 0x00004000, 0xbe8f03ff,
0x31016fac, 0xbe980383, 0xe0781100, 0x80010403, 0xe0781110, 0x80010403, 0xe0781120, 0x80010403,
0xe0781130, 0x80010403, 0xe07411f8, 0x80010403, 0xbf8c3f70, 0x36a60aff, 0x000007ff, 0xd5480054,
0x022d1705, 0x36aa0cff, 0x000007fe, 0xd5480056, 0x022d1706, 0x36ae0eff, 0x000007fc, 0xd5480058,
0x022d1707, 0x36acacc2, 0x36b0b0c4, 0x7e140306, 0x7e160306, 0x7e180306, 0x7e1a0306, 0x7e1c0306,
0x7e1e0306, 0x7e200306, 0x7e220306, 0x7e240306, 0x7e260306, 0x7e280306, 0x7e2a0306, 0x2ca00e9e,
0x7d8aa080, 0xbea8246a, 0xe0201000, 0x80020a53, 0xe0241000, 0x80020b54, 0xe0281000, 0x80020c55,
0xe02c1000, 0x80020d56, 0xe0341000, 0x80020e57, 0xe03c1000, 0x80021058, 0xe0201005, 0x18021301,
0xe024100f, 0x80021401, 0xe02c100b, 0x18021501, 0xbefe04c1, 0x36b2088f, 0x4ab2b303, 0xd548005a,
0x020d0904, 0xd746005a, 0x040d035a, 0xd548005b, 0x02050f04, 0xd746005b, 0x040d055b, 0x2ca00c9e,
0x7d8aa080, 0xbea8246a, 0xe0601100, 0x80010659, 0xe0681110, 0x8001075a, 0xbefe04c1, 0xe07c1120,
0x8001055b, 0xe060112d, 0x18010703, 0xe0601130, 0x80030403, 0xe0681132, 0x80030503, 0xe07c1134,
0x80030503, 0xe07c11f8, 0x80030503, 0xbf8c3f70, 0xe030d100, 0x80011603, 0xe030d104, 0x80011703,
0xe030d108, 0x80011803, 0xe030d10c, 0x80011903, 0xe030d110, 0x80011a03, 0xe030d114, 0x80011b03,
0xe030d118, 0x80011c03, 0xe030d11c, 0x80011d03, 0xe030d120, 0x80011e03, 0xe030d124, 0x80011f03,
0xe030d128, 0x80012003, 0xe030d12c, 0x80012103, 0xe030d130, 0x80012203, 0xe030d134, 0x80012303,
0xe030d138, 0x80012403, 0xe030d13c, 0x80012503, 0xe030d1f8, 0x80012603, 0xe030d1fc, 0x80012703,
0xbf8c3f70, 0xe0781000, 0x80010a03, 0xe0781010, 0x80010e03, 0xe0781020, 0x80011203, 0xe0781030,
0x80011603, 0xe0781040, 0x80011a03, 0xe0781050, 0x80011e03, 0xe0781060, 0x80012203, 0xe0781070,
0x80012603, 0xbf810000,
};
constexpr std::uint32_t Rows[64][4] = {
{0x536e95dfu, 0x536fe5e0u, 0xd28fe56au, 0xf08db1fcu},
{0x04826f45u, 0x049fc746u, 0x08fb4bf8u, 0x125fc41du},
{0x80000001u, 0xb2cc53fcu, 0x7caefbfcu, 0xc92fdbfcu},
{0xa93f32a9u, 0x00007fffu, 0x074206e2u, 0xd5de6e91u},
{0x12345678u, 0x459ccb82u, 0x71dbadabu, 0xa0879a14u},
{0xc045596eu, 0x00ff01fcu, 0x87ed8dfcu, 0x3f6fe27eu},
{0x6ecc5cb6u, 0x6ecc5cb6u, 0xfc520fdeu, 0x810717e7u},
{0x924f1693u, 0x0000007fu, 0x2a61adfdu, 0xf4f00c48u},
{0x198f69a0u, 0xfb6fe870u, 0xb517d9fdu, 0xbd5ce1fdu},
{0x9399468au, 0x99e237bfu, 0x6ad546e6u, 0x7d513542u},
{0xfff2776cu, 0xfc2a621cu, 0xbfce753fu, 0xc488e594u},
{0x811b6c22u, 0x00007fffu, 0x60e75e3cu, 0xf86e2c6cu},
{0xce05cb84u, 0x5b11485au, 0x790577fdu, 0x7d79f3c4u},
{0x99b9355bu, 0x066ff6ccu, 0x6c4ff23fu, 0xdcbc85feu},
{0x8232b967u, 0x8232b967u, 0x47a0e739u, 0x6c3f4bc5u},
{0xfe8c34bdu, 0x2b8bb388u, 0x1a85f953u, 0x4303ee91u},
{0x000000ffu, 0x7fffffffu, 0x2ed0d50au, 0x54dc77a7u},
{0x00007fffu, 0x000ff0ffu, 0x39cff032u, 0x310ff5fcu},
{0x1f1950d9u, 0xffffffffu, 0x0e6fd1c9u, 0xd4041791u},
{0x00000001u, 0x00000001u, 0xa1e99e64u, 0x0a19deacu},
{0x0e532388u, 0xd28fee69u, 0xb123fdfdu, 0xa78e89fdu},
{0x80000000u, 0x000ff801u, 0xcb4b21ffu, 0x7b2ffe58u},
{0x7fffffffu, 0x1a6589fdu, 0xe22fe806u, 0xdaef49fdu},
{0x00000001u, 0x3bbcaa3au, 0xaba08b3du, 0x80631136u},
{0xe2a77a78u, 0xe2a779fdu, 0x9f2fe8f7u, 0x6a3e71fdu},
{0x00000001u, 0x000ff801u, 0x242ffb1fu, 0x024ffee3u},
{0x7fffffffu, 0x7ffffffeu, 0x8853d3bfu, 0xb1fd721bu},
{0xff00ff00u, 0x00007fffu, 0x4894991du, 0xdd42f005u},
{0xffffffffu, 0x00000000u, 0xc69f64a3u, 0x47f32e2eu},
{0xb4f88561u, 0xecc6592du, 0x14321c1cu, 0x4636ff26u},
{0x00010000u, 0xb22f4004u, 0x0c8b001fu, 0x364d2b66u},
{0x8f9fa5ecu, 0x946fa280u, 0x0e9505f4u, 0x870fa76du},
{0x00000080u, 0x57d10b4du, 0x0f7b8468u, 0xad8d899eu},
{0xf4823356u, 0x00008000u, 0x142cfcf9u, 0x5c0a21d7u},
{0xd94e6bb3u, 0xd94e6bb3u, 0x732951cdu, 0xbf9cf610u},
{0x12345678u, 0x13afe032u, 0x6e0b75fcu, 0x012fe591u},
{0xd14e11a6u, 0x00007fffu, 0xa217908cu, 0xe80b3d6eu},
{0xab1ff0d5u, 0xab1ff0d5u, 0x0b897562u, 0x8cf72913u},
{0x82f94d41u, 0x2dafc382u, 0xbcd18df8u, 0x7b4cd5f8u},
{0x89abcdefu, 0x89abcdefu, 0x62fba05du, 0xbccfa6b8u},
{0x321439f8u, 0x00000003u, 0x3631cb82u, 0xc93a3d1bu},
{0x4e84d753u, 0x54a9b365u, 0x56ee8a7bu, 0xf702a20au},
{0xffffffffu, 0xff00ff00u, 0x36938222u, 0x41145208u},
{0x00000080u, 0x00000081u, 0xd4d05190u, 0x43d09980u},
{0x00008000u, 0x00000003u, 0x7ad78e73u, 0x967003cfu},
{0x00000080u, 0xe8e0746eu, 0x4bbe399cu, 0x950ff203u},
{0x9de1f1fcu, 0x7fffffffu, 0xe065fc6cu, 0xd2326b65u},
{0x62cd61e2u, 0x12345678u, 0x6df9dc5cu, 0x9c8faa94u},
{0x00ff00ffu, 0x00ff00feu, 0x704b8500u, 0x82de0143u},
{0x053b0655u, 0x7fffffffu, 0x54a25ef4u, 0xe80c1562u},
{0x99062011u, 0x1c2fe6d7u, 0x59a71dfcu, 0x5b3425fcu},
{0x57ef669fu, 0x00000002u, 0xe1ff47dbu, 0xe840795eu},
{0x230a2bc5u, 0x230a2bc4u, 0xb278ccf4u, 0x063f9962u},
{0xff00ff00u, 0x000000ffu, 0xb83f90e9u, 0xa3640fdeu},
{0xee86c75eu, 0x00ff00ffu, 0xff5ae0b0u, 0x6ca5bfdcu},
{0x00000001u, 0x7c900a51u, 0x77bbc220u, 0x47229d30u},
{0x000000ffu, 0xffffffffu, 0x3b082f86u, 0x9592116bu},
{0xa9af3d85u, 0x938bfc16u, 0xf3cf3a11u, 0xb75e01dau},
{0x12345678u, 0x47021cf1u, 0x59c67fb6u, 0xf2b52a63u},
{0x89009332u, 0x89009332u, 0x3044bfafu, 0x5db890dau},
{0x7ab0e583u, 0x1d432825u, 0x8b85be22u, 0x7ac0b14cu},
{0x80000000u, 0x000001fcu, 0x5eafe75eu, 0x2b0fe583u},
{0x00007fffu, 0x00007ffeu, 0x5d9057fau, 0xbd31e9d1u},
{0x07939cf9u, 0x07939cf9u, 0xf7bc3c79u, 0xf438acb4u}
};
constexpr std::uint32_t SharedInit[SharedWords] = {0x89abcdefu, 0xffff0000u, 0x0f0f0f0fu, 0x12345678u, 0x00000005u, 0x80000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u};
constexpr std::uint32_t Expected32[32][30] = {
{0x00000000u, 0x0000006du, 0x0000e22fu, 0xffffa76du, 0x870fa76du, 0x00000000u, 0x00007fffu, 0x4894991du, 0xdd42f005u, 0x0000006au, 0xfffffff0u, 0xfffff08du, 0x536e95dfu, 0x536fe5e0u, 0xd28fe56au, 0x6a8db1fcu, 0x536e95dfu, 0x536fe5e0u, 0xb1fce56au, 0xf08db1fcu, 0x536e95dfu, 0x536fe5e0u, 0xd28fe56au, 0xf08db1fcu, 0xe5e095dfu, 0x536fe5e0u, 0xd28fe56au, 0xf08db1fcu, 0x536fe5e0u, 0xd28fe56au},
{0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x04826f45u, 0x049fc746u, 0x08fb4bf8u, 0x125fc41du, 0x04826f45u, 0x049fc746u, 0x08fb4bf8u, 0x125fc41du, 0x049fc746u, 0x08fb4bf8u, 0x125fc41du, 0x125fc41du, 0xc7466f45u, 0x049fc746u, 0x08fb4bf8u, 0x125fc41du, 0x049fc746u, 0x08fb4bf8u},
{0x00000000u, 0x0000002fu, 0x00000000u, 0x00004636u, 0x00000000u, 0x00000000u, 0x0e9505f4u, 0x870fa76du, 0x00000000u, 0x000000fcu, 0xffffffc9u, 0xffffc92fu, 0x8000fc01u, 0xb2cc53fcu, 0x7caefbfcu, 0xc92fdbfcu, 0x8000dbfcu, 0xb2cc53fcu, 0x7caefbfcu, 0xc92fdbfcu, 0xb2cc53fcu, 0x7caefbfcu, 0xc92fdbfcu, 0xc92fdbfcu, 0x53fc0001u, 0xb2cc53fcu, 0x7caefbfcu, 0xc92fdbfcu, 0xb2cc53fcu, 0x7caefbfcu},
{0x00000000u, 0xfffffff0u, 0x00000000u, 0x00005678u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000e2u, 0xffffffd5u, 0xffffd5deu, 0xa93f32a9u, 0x00007fffu, 0x074206e2u, 0xd5de6e91u, 0xa93f32a9u, 0x00007fffu, 0x074206e2u, 0xd5de6e91u, 0xa93f32a9u, 0x00007fffu, 0x074206e2u, 0xd5de6e91u, 0x7fff32a9u, 0x00007fffu, 0x074206e2u, 0xd5de6e91u, 0x00007fffu, 0x074206e2u},
{0x00000000u, 0x00000000u, 0x00008853u, 0x00000000u, 0x00000000u, 0x00000000u, 0xfe8c34bdu, 0x2b8bb388u, 0x1a85f953u, 0x000000abu, 0xffffffa0u, 0xffffa087u, 0x12345678u, 0x459ccb82u, 0x71dbadabu, 0xa0879a14u, 0x12345678u, 0x459ccb82u, 0x71dbadabu, 0x9a149a14u, 0x459ccb82u, 0x71dbadabu, 0xa0879a14u, 0xa0879a14u, 0xcb825678u, 0x459ccb82u, 0x71dbadabu, 0xa0879a14u, 0x459ccb82u, 0x71dbadabu},
{0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0xc045596eu, 0x00ff01fcu, 0x87ed8dfcu, 0x3ffce27eu, 0xc045596eu, 0x00ff01fcu, 0x87ed8dfcu, 0x3f6fe27eu, 0x00ff01fcu, 0x87ed8dfcu, 0x3f6fe27eu, 0x3f6fe27eu, 0x01fc596eu, 0x00ff01fcu, 0x87ed8dfcu, 0x3f6fe27eu, 0x00ff01fcu, 0x87ed8dfcu},
{0x00000000u, 0xffffff9fu, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x8232b967u, 0x8232b967u, 0x47a0e739u, 0x000000deu, 0xffffff81u, 0xffff8107u, 0x6ecc5cb6u, 0x6ede5cb6u, 0xfc520fdeu, 0x810717e7u, 0x6ecc5cb6u, 0x17e75cb6u, 0xfc520fdeu, 0x810717e7u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0xfc520fdeu, 0x810717e7u, 0x5cb65cb6u, 0x6ecc5cb6u, 0xfc520fdeu, 0x810717e7u, 0x6ecc5cb6u, 0xfc520fdeu},
{0x000000f4u, 0xffffffdfu, 0x0000a76du, 0x00007fffu, 0x71dbadabu, 0xa0879a14u, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000fdu, 0xfffffff4u, 0xfffff4f0u, 0x924f1693u, 0x0000007fu, 0x2a61adfdu, 0xf4f00c48u, 0x924f1693u, 0x0000007fu, 0x2a61adfdu, 0xf4f00c48u, 0x924f1693u, 0x0000007fu, 0x2a61adfdu, 0xf4f00c48u, 0x007f1693u, 0x0000007fu, 0x2a61adfdu, 0xf4f00c48u, 0x0000007fu, 0x2a61adfdu},
{0x00000093u, 0xffffffa7u, 0x0000a76du, 0x00000000u, 0x870fa76du, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000fdu, 0xffffffbdu, 0xffffbd5cu, 0x198f69fdu, 0xfb6fe870u, 0xb517d9fdu, 0xbd5ce1fdu, 0x198f69a0u, 0xfb6fe1fdu, 0xb517d9fdu, 0xbd5ce1fdu, 0x198f69a0u, 0xfb6fe870u, 0xb517d9fdu, 0xbd5ce1fdu, 0xe87069a0u, 0xfb6fe870u, 0xb517d9fdu, 0xbd5ce1fdu, 0xfb6fe870u, 0xb517d9fdu},
{0x00000000u, 0xffffff9cu, 0x00000000u, 0x00000000u, 0x0e532388u, 0xd28fee69u, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000e6u, 0x0000007du, 0x00007d51u, 0x9399468au, 0x99e237bfu, 0x6ae646e6u, 0x7d513542u, 0x93993542u, 0x99e237bfu, 0x6ad546e6u, 0x7d513542u, 0x9399468au, 0x99e237bfu, 0x6ad546e6u, 0x7d513542u, 0x37bf468au, 0x99e237bfu, 0x6ad546e6u, 0x7d513542u, 0x99e237bfu, 0x6ad546e6u},
{0x00000000u, 0xfffffffdu, 0x00000a19u, 0x000047f3u, 0x000ff801u, 0x242ffb1fu, 0x310ff5fcu, 0x1f1950d9u, 0xffffffffu, 0x0000003fu, 0xffffffc4u, 0xffffc488u, 0xfff2776cu, 0xfc2a621cu, 0xbfce753fu, 0xc488e53fu, 0xfff2776cu, 0xfc2a621cu, 0xbfce753fu, 0xc488e594u, 0xfc2a621cu, 0xbfce753fu, 0xc488e594u, 0xc488e594u, 0x621c776cu, 0xfc2a621cu, 0xbfce753fu, 0xc488e594u, 0xfc2a621cu, 0xbfce753fu},
{0x00000000u, 0xfffffff0u, 0x00000000u, 0x000047a0u, 0x810717e7u, 0x924f1693u, 0x00000000u, 0xc69f64a3u, 0x47f32e2eu, 0x0000003cu, 0xfffffff8u, 0xfffff86eu, 0x813c6c22u, 0x00007fffu, 0x60e75e3cu, 0xf86e2c6cu, 0x811b6c22u, 0x00002c6cu, 0x60e75e3cu, 0xf86e2c6cu, 0x00007fffu, 0x60e75e3cu, 0xf86e2c6cu, 0xf86e2c6cu, 0x7fff6c22u, 0x00007fffu, 0x60e75e3cu, 0xf86e2c6cu, 0x00007fffu, 0x60e75e3cu},
{0x000000edu, 0x00000000u, 0x00000000u, 0xffffc488u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000fdu, 0x0000007du, 0x00007d79u, 0xce05cb84u, 0x5b1148fdu, 0x790577fdu, 0x7d79f3c4u, 0xce05f3c4u, 0x5b11485au, 0x790577fdu, 0x7d79f3c4u, 0xce05cb84u, 0x5b11485au, 0x790577fdu, 0x7d79f3c4u, 0x485acb84u, 0x5b11485au, 0x790577fdu, 0x7d79f3c4u, 0x5b11485au, 0x790577fdu},
{0x00000000u, 0x0000000fu, 0x00000000u, 0xffff870fu, 0x870fa76du, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x0000003fu, 0xffffffdcu, 0xffffdcbcu, 0x99b9355bu, 0x066ff6ccu, 0x3f4ff23fu, 0xdcbc85feu, 0x99b9355bu, 0x066ff6ccu, 0x85fef23fu, 0xdcbc85feu, 0x066ff6ccu, 0x6c4ff23fu, 0xdcbc85feu, 0xdcbc85feu, 0xf6cc355bu, 0x066ff6ccu, 0x6c4ff23fu, 0xdcbc85feu, 0x066ff6ccu, 0x6c4ff23fu},
{0x0000001au, 0x00000000u, 0x00000000u, 0xffffc41du, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000039u, 0x0000006cu, 0x00006c3fu, 0x8232b967u, 0x3932b967u, 0x47a0e739u, 0x6c3f4bc5u, 0x8232b967u, 0x8232b967u, 0x47a0e739u, 0x6c3f4bc5u, 0x8232b967u, 0x47a0e739u, 0x6c3f4bc5u, 0x6c3f4bc5u, 0xb967b967u, 0x8232b967u, 0x47a0e739u, 0x6c3f4bc5u, 0x8232b967u, 0x47a0e739u},
{0x00000000u, 0xffffffbcu, 0x00008000u, 0xfffff86eu, 0x00000000u, 0x00000000u, 0xf4f00c48u, 0x198f69a0u, 0xfb6fe870u, 0x00000053u, 0x00000043u, 0x00004303u, 0xfe8c34bdu, 0x2b8bb388u, 0x1a85f953u, 0x4303ee91u, 0xfe8c34bdu, 0x2b8bb388u, 0x1a85f953u, 0x4303ee91u, 0xfe8c34bdu, 0x2b8bb388u, 0x1a85f953u, 0x4303ee91u, 0xb38834bdu, 0x2b8bb388u, 0x1a85f953u, 0x4303ee91u, 0x2b8bb388u, 0x1a85f953u},
{0x00000000u, 0x00000000u, 0x00002ed0u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x0000000au, 0x00000054u, 0x000054dcu, 0x000000ffu, 0x7fffffffu, 0x2ed0d50au, 0x54dc77a7u, 0x000000ffu, 0x7fffffffu, 0x2ed0d50au, 0x54dc77a7u, 0x000000ffu, 0x7fffffffu, 0x2ed0d50au, 0x54dc77a7u, 0x000000a7u, 0x7fffffffu, 0x2ed0d50au, 0x54dc77a7u, 0x000000ffu, 0x7fffffffu},
{0x39cff032u, 0x39cff032u, 0x39cff032u, 0x39cff032u, 0x39cff032u, 0x39cff032u, 0x39cff032u, 0x39cff032u, 0x39cff032u, 0x39cff032u, 0x39cff032u, 0x39cff032u, 0x00007fffu, 0x000ff0ffu, 0x39cff032u, 0x310ff5fcu, 0x00007fffu, 0x000ff0ffu, 0x39cff032u, 0x310ff5fcu, 0x00007fffu, 0x000ff0ffu, 0x39cff032u, 0x310ff5fcu, 0x00007ffcu, 0x000ff0ffu, 0x39cff032u, 0x310ff5fcu, 0x00007fffu, 0x000ff0ffu},
{0x00000000u, 0x00000000u, 0x000064a3u, 0x00000e95u, 0x00000000u, 0x00000000u, 0x198f69a0u, 0xfb6fe870u, 0xb517d9fdu, 0x000000c9u, 0xffffffd4u, 0xffffd404u, 0x1f1950d9u, 0xffffffffu, 0x0e6fd1c9u, 0xd4041791u, 0x1f1950d9u, 0xffffffffu, 0x0e6fd1c9u, 0xd4041791u, 0x1f1950d9u, 0xffffffffu, 0x0e6fd1c9u, 0xd4041791u, 0x1f195091u, 0xffffffffu, 0x0e6fd1c9u, 0xd4041791u, 0x1f1950d9u, 0xffffffffu},
{0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0x00006401u, 0x00000001u, 0xa1e99e64u, 0x0a19deacu, 0x0000deacu, 0x00000001u, 0xa1e99e64u, 0x0a19deacu, 0x00000001u, 0xa1e99e64u, 0x0a19deacu, 0x0a19deacu, 0x000000acu, 0x00000001u, 0xa1e99e64u, 0x0a19deacu, 0x00000001u, 0x00000001u},
{0x00000000u, 0xffffffa7u, 0x0000a76du, 0xfffff4f0u, 0x870fa76du, 0x00000000u, 0xb4f88561u, 0xecc6592du, 0x14321c1cu, 0x000000fdu, 0xffffffa7u, 0xffffa78eu, 0x0e532388u, 0xd28fee69u, 0xb123fdfdu, 0xa78e89fdu, 0x0e5389fdu, 0xd28fee69u, 0xb123fdfdu, 0xa78e89fdu, 0x0e532388u, 0xd28fee69u, 0xb123fdfdu, 0xa78e89fdu, 0x0e5323fdu, 0xd28fee69u, 0xb123fdfdu, 0xa78e89fdu, 0x0e532388u, 0xd28fee69u},
{0x00000095u, 0xffffff87u, 0x0000870fu, 0xffff89fdu, 0x00000000u, 0x00000000u, 0x870fa76du, 0x00000000u, 0x00000000u, 0x000000ffu, 0x0000007bu, 0x00007b2fu, 0x800000ffu, 0x000ff801u, 0xcb4b21ffu, 0x7b2ffe58u, 0x8000fe58u, 0x000ff801u, 0xcb4b21ffu, 0x7b2ffe58u, 0x000ff801u, 0xcb4b21ffu, 0x7b2ffe58u, 0x7b2ffe58u, 0x80000058u, 0x000ff801u, 0xcb4b21ffu, 0x7b2ffe58u, 0x80000000u, 0x000ff801u},
{0x000000a7u, 0x0000006cu, 0x0000536fu, 0xffffa76du, 0x870fa76du, 0x00000000u, 0x0c8b001fu, 0x364d2b66u, 0x8f9fa5ecu, 0x00000006u, 0xffffffdau, 0xffffdaefu, 0x7fffffffu, 0x1a6589fdu, 0xe22fe806u, 0x06ef49fdu, 0x7fffffffu, 0x1a6589fdu, 0xe22fe806u, 0x49fd49fdu, 0x7fffffffu, 0x1a6589fdu, 0xe22fe806u, 0xdaef49fdu, 0x7ffffffdu, 0x1a6589fdu, 0xe22fe806u, 0xdaef49fdu, 0x7fffffffu, 0x1a6589fdu},
{0x00000000u, 0x00000000u, 0x00000000u, 0x00006f45u, 0x00000001u, 0xa1e99e64u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0xfc520fdeu, 0x0000003du, 0xffffff80u, 0xffff8063u, 0x00003d01u, 0x3bbcaa3au, 0xaba08b3du, 0x80631136u, 0x00001136u, 0x3bbcaa3au, 0xaba08b3du, 0x80631136u, 0x3bbcaa3au, 0xaba08b3du, 0x80631136u, 0x80631136u, 0x00000036u, 0x3bbcaa3au, 0xaba08b3du, 0x80631136u, 0x00000001u, 0x3bbcaa3au},
{0x000000a7u, 0x0000006cu, 0x00002b8bu, 0xffffa76du, 0x870fa76du, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000f7u, 0x0000006au, 0x00006a3eu, 0xe2a77a78u, 0xe2a779fdu, 0x9f2fe8f7u, 0x6a3e71fdu, 0xe2a77a78u, 0xe2a779fdu, 0x9f2fe8f7u, 0x71fd71fdu, 0xe2a779fdu, 0x9f2fe8f7u, 0x6a3e71fdu, 0x6a3e71fdu, 0xe2a77afdu, 0xe2a779fdu, 0x9f2fe8f7u, 0x6a3e71fdu, 0xe2a77a78u, 0xe2a779fdu},
{0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x00000001u, 0x000ff801u, 0x242ffb1fu, 0x024ffee3u, 0x00000001u, 0x000ff801u, 0x242ffb1fu, 0x024ffee3u, 0x000ff801u, 0x242ffb1fu, 0x024ffee3u, 0x024ffee3u, 0x000000e3u, 0x000ff801u, 0x242ffb1fu, 0x024ffee3u, 0x00000001u, 0x000ff801u},
{0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000bfu, 0xffffffb1u, 0xffffb1fdu, 0x7fffffffu, 0x7ffffffeu, 0x8853d3bfu, 0xbffd721bu, 0x7fffffffu, 0x7ffffffeu, 0x8853d3bfu, 0x721b721bu, 0x7fffffffu, 0x7ffffffeu, 0x8853d3bfu, 0xb1fd721bu, 0x7fffff1bu, 0x7ffffffeu, 0x8853d3bfu, 0xb1fd721bu, 0x7fffffffu, 0x7ffffffeu},
{0x00000000u, 0xfffffff0u, 0x0000f5fcu, 0x00000000u, 0x536fe5e0u, 0xd28fe56au, 0x3f6fe27eu, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x0000001du, 0xffffffddu, 0xffffdd42u, 0xff00ff1du, 0x00007fffu, 0x4894991du, 0xdd42f005u, 0xff00f005u, 0x00007fffu, 0x4894991du, 0xdd42f005u, 0x00007fffu, 0x4894991du, 0xdd42f005u, 0xdd42f005u, 0xff00ff05u, 0x00007fffu, 0x4894991du, 0xdd42f005u, 0xff00ff00u, 0x00007fffu},
{0x000000dfu, 0xffffffdfu, 0x0000fff2u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000a3u, 0x00000047u, 0x000047f3u, 0xffffffffu, 0x00000000u, 0xc69f64a3u, 0xa3f32e2eu, 0xffffffffu, 0x00000000u, 0xc69f64a3u, 0x2e2e2e2eu, 0xffffffffu, 0x00000000u, 0xc69f64a3u, 0x47f32e2eu, 0xffffff2eu, 0x00000000u, 0xc69f64a3u, 0x47f32e2eu, 0xffffffffu, 0x00000000u},
{0x00000017u, 0x00000079u, 0x0000c41du, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x0000001cu, 0x00000046u, 0x00004636u, 0xb4f88561u, 0xecc6592du, 0x14321c1cu, 0x4636ff26u, 0xb4f88561u, 0xecc6592du, 0x14321c1cu, 0x4636ff26u, 0xecc6592du, 0x14321c1cu, 0x4636ff26u, 0x4636ff26u, 0xb4f88526u, 0xecc6592du, 0x14321c1cu, 0x4636ff26u, 0xb4f88561u, 0xecc6592du},
{0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x00010000u, 0xb22f4004u, 0x0c8b001fu, 0x364d2b66u, 0x00010000u, 0xb22f4004u, 0x0c8b001fu, 0x364d2b66u, 0xb22f4004u, 0x0c8b001fu, 0x364d2b66u, 0x364d2b66u, 0x00010066u, 0xb22f4004u, 0x0c8b001fu, 0x364d2b66u, 0x00010000u, 0xb22f4004u},
{0x00000000u, 0xffffff80u, 0x0000a280u, 0x00000000u, 0x00000000u, 0x00000000u, 0x946fa280u, 0x0e9505f4u, 0x870fa76du, 0x000000f4u, 0xffffff87u, 0xffff870fu, 0x8f9fa5ecu, 0x946fa280u, 0x0e9505f4u, 0x870fa76du, 0x8f9fa5ecu, 0x946fa280u, 0x0e9505f4u, 0x870fa76du, 0x8f9fa5ecu, 0x946fa280u, 0x0e9505f4u, 0x870fa76du, 0x8f9fa56du, 0x946fa280u, 0x0e9505f4u, 0x870fa76du, 0x8f9fa5ecu, 0x946fa280u}
};
constexpr std::uint32_t Expected64[64][30] = {
{0x00000000u, 0x00000000u, 0x00000000u, 0xffffa76du, 0x870fa76du, 0x00000080u, 0x00007fffu, 0x4894991du, 0xdd42f005u, 0x0000006au, 0xfffffff0u, 0xfffff08du, 0x536e95dfu, 0x536fe5e0u, 0xd28fe56au, 0x6a8db1fcu, 0x536e95dfu, 0x536fe5e0u, 0xb1fce56au, 0xf08db1fcu, 0x536e95dfu, 0x536fe5e0u, 0xd28fe56au, 0xf08db1fcu, 0xe5e095dfu, 0x536fe5e0u, 0xd28fe56au, 0xf08db1fcu, 0x536fe5e0u, 0xd28fe56au},
{0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x08fb4bf8u, 0x04826f45u, 0x049fc746u, 0x08fb4bf8u, 0x125fc41du, 0x04826f45u, 0x049fc746u, 0x08fb4bf8u, 0x125fc41du, 0x049fc746u, 0x08fb4bf8u, 0x125fc41du, 0x125fc41du, 0xc7466f45u, 0x049fc746u, 0x08fb4bf8u, 0x125fc41du, 0x049fc746u, 0x08fb4bf8u},
{0x000000b4u, 0x0000002fu, 0x0000acb4u, 0x00000000u, 0xf438acb4u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000fcu, 0xffffffc9u, 0xffffc92fu, 0x8000fc01u, 0xb2cc53fcu, 0x7caefbfcu, 0xc92fdbfcu, 0x8000dbfcu, 0xb2cc53fcu, 0x7caefbfcu, 0xc92fdbfcu, 0xb2cc53fcu, 0x7caefbfcu, 0xc92fdbfcu, 0xc92fdbfcu, 0x53fc0001u, 0xb2cc53fcu, 0x7caefbfcu, 0xc92fdbfcu, 0xb2cc53fcu, 0x7caefbfcu},
{0x00000000u, 0xfffffff0u, 0x00000000u, 0x00005678u, 0x00000000u, 0x00000000u, 0x7ac0b14cu, 0x80000000u, 0x000001fcu, 0x000000e2u, 0xffffffd5u, 0xffffd5deu, 0xa93f32a9u, 0x00007fffu, 0x074206e2u, 0xd5de6e91u, 0xa93f32a9u, 0x00007fffu, 0x074206e2u, 0xd5de6e91u, 0xa93f32a9u, 0x00007fffu, 0x074206e2u, 0xd5de6e91u, 0x7fff32a9u, 0x00007fffu, 0x074206e2u, 0xd5de6e91u, 0x00007fffu, 0x074206e2u},
{0x00000000u, 0x0000003au, 0x00000000u, 0x00000a51u, 0x00008000u, 0x142cfcf9u, 0xfe8c34bdu, 0x2b8bb388u, 0x1a85f953u, 0x000000abu, 0xffffffa0u, 0xffffa087u, 0x12345678u, 0x459ccb82u, 0x71dbadabu, 0xa0879a14u, 0x12345678u, 0x459ccb82u, 0x71dbadabu, 0x9a149a14u, 0x459ccb82u, 0x71dbadabu, 0xa0879a14u, 0xa0879a14u, 0xcb825678u, 0x459ccb82u, 0x71dbadabu, 0xa0879a14u, 0x459ccb82u, 0x71dbadabu},
{0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0x87ed8dfcu, 0xc045596eu, 0x00ff01fcu, 0x87ed8dfcu, 0x3ffce27eu, 0xc045596eu, 0x00ff01fcu, 0x87ed8dfcu, 0x3f6fe27eu, 0x00ff01fcu, 0x87ed8dfcu, 0x3f6fe27eu, 0x3f6fe27eu, 0x01fc596eu, 0x00ff01fcu, 0x87ed8dfcu, 0x3f6fe27eu, 0x00ff01fcu, 0x87ed8dfcu},
{0x00000000u, 0xffffff9fu, 0x00000000u, 0x000011a6u, 0x00000000u, 0x00000000u, 0x8232b967u, 0x8232b967u, 0x47a0e739u, 0x000000deu, 0xffffff81u, 0xffff8107u, 0x6ecc5cb6u, 0x6ede5cb6u, 0xfc520fdeu, 0x810717e7u, 0x6ecc5cb6u, 0x17e75cb6u, 0xfc520fdeu, 0x810717e7u, 0x6ecc5cb6u, 0x6ecc5cb6u, 0xfc520fdeu, 0x810717e7u, 0x5cb65cb6u, 0x6ecc5cb6u, 0xfc520fdeu, 0x810717e7u, 0x6ecc5cb6u, 0xfc520fdeu},
{0x000000f4u, 0xffffffdfu, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000fdu, 0xfffffff4u, 0xfffff4f0u, 0x924f1693u, 0x0000007fu, 0x2a61adfdu, 0xf4f00c48u, 0x924f1693u, 0x0000007fu, 0x2a61adfdu, 0xf4f00c48u, 0x924f1693u, 0x0000007fu, 0x2a61adfdu, 0xf4f00c48u, 0x007f1693u, 0x0000007fu, 0x2a61adfdu, 0xf4f00c48u, 0x0000007fu, 0x2a61adfdu},
{0x00000093u, 0x00000000u, 0x0000a76du, 0x00006df9u, 0x870fa76du, 0x00000080u, 0xb75e01dau, 0x12345678u, 0x47021cf1u, 0x000000fdu, 0xffffffbdu, 0xffffbd5cu, 0x198f69fdu, 0xfb6fe870u, 0xb517d9fdu, 0xbd5ce1fdu, 0x198f69a0u, 0xfb6fe1fdu, 0xb517d9fdu, 0xbd5ce1fdu, 0x198f69a0u, 0xfb6fe870u, 0xb517d9fdu, 0xbd5ce1fdu, 0xe87069a0u, 0xfb6fe870u, 0xb517d9fdu, 0xbd5ce1fdu, 0xfb6fe870u, 0xb517d9fdu},
{0x00000000u, 0x00000000u, 0x00000000u, 0xffff8222u, 0x00000000u, 0x00000000u, 0xd94e6bb3u, 0x732951cdu, 0xbf9cf610u, 0x000000e6u, 0x0000007du, 0x00007d51u, 0x9399468au, 0x99e237bfu, 0x6ae646e6u, 0x7d513542u, 0x93993542u, 0x99e237bfu, 0x6ad546e6u, 0x7d513542u, 0x9399468au, 0x99e237bfu, 0x6ad546e6u, 0x7d513542u, 0x37bf468au, 0x99e237bfu, 0x6ad546e6u, 0x7d513542u, 0x99e237bfu, 0x6ad546e6u},
{0x000000d7u, 0x00000000u, 0x00000000u, 0x000047f3u, 0x00000000u, 0x00000000u, 0x310ff5fcu, 0x1f1950d9u, 0xffffffffu, 0x0000003fu, 0xffffffc4u, 0xffffc488u, 0xfff2776cu, 0xfc2a621cu, 0xbfce753fu, 0xc488e53fu, 0xfff2776cu, 0xfc2a621cu, 0xbfce753fu, 0xc488e594u, 0xfc2a621cu, 0xbfce753fu, 0xc488e594u, 0xc488e594u, 0x621c776cu, 0xfc2a621cu, 0xbfce753fu, 0xc488e594u, 0xfc2a621cu, 0xbfce753fu},
{0x00000000u, 0xfffffff0u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x0000003cu, 0xfffffff8u, 0xfffff86eu, 0x813c6c22u, 0x00007fffu, 0x60e75e3cu, 0xf86e2c6cu, 0x811b6c22u, 0x00002c6cu, 0x60e75e3cu, 0xf86e2c6cu, 0x00007fffu, 0x60e75e3cu, 0xf86e2c6cu, 0xf86e2c6cu, 0x7fff6c22u, 0x00007fffu, 0x60e75e3cu, 0xf86e2c6cu, 0x00007fffu, 0x60e75e3cu},
{0x000000edu, 0x00000051u, 0x00000000u, 0xffffc488u, 0x1d432825u, 0x8b85be22u, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000fdu, 0x0000007du, 0x00007d79u, 0xce05cb84u, 0x5b1148fdu, 0x790577fdu, 0x7d79f3c4u, 0xce05f3c4u, 0x5b11485au, 0x790577fdu, 0x7d79f3c4u, 0xce05cb84u, 0x5b11485au, 0x790577fdu, 0x7d79f3c4u, 0x485acb84u, 0x5b11485au, 0x790577fdu, 0x7d79f3c4u, 0x5b11485au, 0x790577fdu},
{0x00000000u, 0x00000000u, 0x0000012fu, 0xffff870fu, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x0000003fu, 0xffffffdcu, 0xffffdcbcu, 0x99b9355bu, 0x066ff6ccu, 0x3f4ff23fu, 0xdcbc85feu, 0x99b9355bu, 0x066ff6ccu, 0x85fef23fu, 0xdcbc85feu, 0x066ff6ccu, 0x6c4ff23fu, 0xdcbc85feu, 0xdcbc85feu, 0xf6cc355bu, 0x066ff6ccu, 0x6c4ff23fu, 0xdcbc85feu, 0x066ff6ccu, 0x6c4ff23fu},
{0x0000001au, 0x00000000u, 0x00000000u, 0x00000000u, 0x1d432825u, 0x8b85be22u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000039u, 0x0000006cu, 0x00006c3fu, 0x8232b967u, 0x3932b967u, 0x47a0e739u, 0x6c3f4bc5u, 0x8232b967u, 0x8232b967u, 0x47a0e739u, 0x6c3f4bc5u, 0x8232b967u, 0x47a0e739u, 0x6c3f4bc5u, 0x6c3f4bc5u, 0xb967b967u, 0x8232b967u, 0x47a0e739u, 0x6c3f4bc5u, 0x8232b967u, 0x47a0e739u},
{0x00000086u, 0xffffffbcu, 0x00008000u, 0xfffff86eu, 0x00000000u, 0x00000000u, 0xf4f00c48u, 0x198f69a0u, 0xfb6fe870u, 0x00000053u, 0x00000043u, 0x00004303u, 0xfe8c34bdu, 0x2b8bb388u, 0x1a85f953u, 0x4303ee91u, 0xfe8c34bdu, 0x2b8bb388u, 0x1a85f953u, 0x4303ee91u, 0xfe8c34bdu, 0x2b8bb388u, 0x1a85f953u, 0x4303ee91u, 0xb38834bdu, 0x2b8bb388u, 0x1a85f953u, 0x4303ee91u, 0x2b8bb388u, 0x1a85f953u},
{0x00000000u, 0x00000000u, 0x00000000u, 0x0000142cu, 0x00000000u, 0x00000000u, 0x9592116bu, 0xa9af3d85u, 0x938bfc16u, 0x0000000au, 0x00000054u, 0x000054dcu, 0x000000ffu, 0x7fffffffu, 0x2ed0d50au, 0x54dc77a7u, 0x000000ffu, 0x7fffffffu, 0x2ed0d50au, 0x54dc77a7u, 0x000000ffu, 0x7fffffffu, 0x2ed0d50au, 0x54dc77a7u, 0xffff00ffu, 0x7fffffffu, 0x2ed0d50au, 0x54dc77a7u, 0x7fffffffu, 0x2ed0d50au},
{0x39cff032u, 0x39cff032u, 0x39cff032u, 0x39cff032u, 0x39cff032u, 0x39cff032u, 0x39cff032u, 0x39cff032u, 0x39cff032u, 0x39cff032u, 0x39cff032u, 0x39cff032u, 0x00007fffu, 0x000ff0ffu, 0x39cff032u, 0x310ff5fcu, 0x00007fffu, 0x000ff0ffu, 0x39cff032u, 0x310ff5fcu, 0x00007fffu, 0x000ff0ffu, 0x39cff032u, 0x310ff5fcu, 0xf0ff7fffu, 0x000ff0ffu, 0x39cff032u, 0x310ff5fcu, 0x000ff0ffu, 0x39cff032u},
{0x00000000u, 0x00000000u, 0x000064a3u, 0x00000000u, 0x00000000u, 0x00000000u, 0x198f69a0u, 0xfb6fe870u, 0xb517d9fdu, 0x000000c9u, 0xffffffd4u, 0xffffd404u, 0x1f1950d9u, 0xffffffffu, 0x0e6fd1c9u, 0xd4041791u, 0x1f1950d9u, 0xffffffffu, 0x0e6fd1c9u, 0xd4041791u, 0x1f1950d9u, 0xffffffffu, 0x0e6fd1c9u, 0xd4041791u, 0xffff50d9u, 0xffffffffu, 0x0e6fd1c9u, 0xd4041791u, 0xffffffffu, 0x0e6fd1c9u},
{0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0xa1e99e64u, 0x00006401u, 0x00000001u, 0xa1e99e64u, 0x0a19deacu, 0x0000deacu, 0x00000001u, 0xa1e99e64u, 0x0a19deacu, 0x00000001u, 0xa1e99e64u, 0x0a19deacu, 0x0a19deacu, 0x00010001u, 0x00000001u, 0xa1e99e64u, 0x0a19deacu, 0x00000001u, 0xa1e99e64u},
{0x00000000u, 0xffffffa7u, 0x00000000u, 0x00000000u, 0x870fa76du, 0x00000080u, 0xb4f88561u, 0xecc6592du, 0x14321c1cu, 0x000000fdu, 0xffffffa7u, 0xffffa78eu, 0x0e532388u, 0xd28fee69u, 0xb123fdfdu, 0xa78e89fdu, 0x0e5389fdu, 0xd28fee69u, 0xb123fdfdu, 0xa78e89fdu, 0x0e532388u, 0xd28fee69u, 0xb123fdfdu, 0xa78e89fdu, 0xee692388u, 0xd28fee69u, 0xb123fdfdu, 0xa78e89fdu, 0xd28fee69u, 0xb123fdfdu},
{0x00000095u, 0xffffff87u, 0x0000870fu, 0xffff89fdu, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000ffu, 0x0000007bu, 0x00007b2fu, 0x800000ffu, 0x000ff801u, 0xcb4b21ffu, 0x7b2ffe58u, 0x8000fe58u, 0x000ff801u, 0xcb4b21ffu, 0x7b2ffe58u, 0x000ff801u, 0xcb4b21ffu, 0x7b2ffe58u, 0x7b2ffe58u, 0xf8010000u, 0x000ff801u, 0xcb4b21ffu, 0x7b2ffe58u, 0x000ff801u, 0xcb4b21ffu},
{0x000000a7u, 0x00000000u, 0x0000536fu, 0x00000000u, 0x870fa76du, 0x00000080u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000006u, 0xffffffdau, 0xffffdaefu, 0x7fffffffu, 0x1a6589fdu, 0xe22fe806u, 0x06ef49fdu, 0x7fffffffu, 0x1a6589fdu, 0xe22fe806u, 0x49fd49fdu, 0x7fffffffu, 0x1a6589fdu, 0xe22fe806u, 0xdaef49fdu, 0x89fdffffu, 0x1a6589fdu, 0xe22fe806u, 0xdaef49fdu, 0x1a6589fdu, 0xe22fe806u},
{0x0000000bu, 0x00000000u, 0x0000795eu, 0x00000000u, 0x00000001u, 0xa1e99e64u, 0x00000000u, 0x00000000u, 0x00000000u, 0x0000003du, 0xffffff80u, 0xffff8063u, 0x00003d01u, 0x3bbcaa3au, 0xaba08b3du, 0x80631136u, 0x00001136u, 0x3bbcaa3au, 0xaba08b3du, 0x80631136u, 0x3bbcaa3au, 0xaba08b3du, 0x80631136u, 0x80631136u, 0xaa3a0001u, 0x3bbcaa3au, 0xaba08b3du, 0x80631136u, 0x3bbcaa3au, 0xaba08b3du},
{0x000000a7u, 0x00000000u, 0x00002b8bu, 0x00000000u, 0x870fa76du, 0x00000080u, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000f7u, 0x0000006au, 0x00006a3eu, 0xe2a77a78u, 0xe2a779fdu, 0x9f2fe8f7u, 0x6a3e71fdu, 0xe2a77a78u, 0xe2a779fdu, 0x9f2fe8f7u, 0x71fd71fdu, 0xe2a779fdu, 0x9f2fe8f7u, 0x6a3e71fdu, 0x6a3e71fdu, 0x79fd7a78u, 0xe2a779fdu, 0x9f2fe8f7u, 0x6a3e71fdu, 0xe2a779fdu, 0x9f2fe8f7u},
{0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x242ffb1fu, 0x00000001u, 0x000ff801u, 0x242ffb1fu, 0x024ffee3u, 0x00000001u, 0x000ff801u, 0x242ffb1fu, 0x024ffee3u, 0x000ff801u, 0x242ffb1fu, 0x024ffee3u, 0x024ffee3u, 0xf8010001u, 0x000ff801u, 0x242ffb1fu, 0x024ffee3u, 0x000ff801u, 0x242ffb1fu},
{0x00000000u, 0x00000000u, 0x00005db8u, 0x000062fbu, 0x142cfcf9u, 0x5c0a21d7u, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000bfu, 0xffffffb1u, 0xffffb1fdu, 0x7fffffffu, 0x7ffffffeu, 0x8853d3bfu, 0xbffd721bu, 0x7fffffffu, 0x7ffffffeu, 0x8853d3bfu, 0x721b721bu, 0x7fffffffu, 0x7ffffffeu, 0x8853d3bfu, 0xb1fd721bu, 0xfffeffffu, 0x7ffffffeu, 0x8853d3bfu, 0xb1fd721bu, 0x7ffffffeu, 0x8853d3bfu},
{0x00000000u, 0xfffffff0u, 0x0000f5fcu, 0x00004e84u, 0x536fe5e0u, 0xd28fe56au, 0x3f6fe27eu, 0x6ecc5cb6u, 0x6ecc5cb6u, 0x0000001du, 0xffffffddu, 0xffffdd42u, 0xff00ff1du, 0x00007fffu, 0x4894991du, 0xdd42f005u, 0xff00f005u, 0x00007fffu, 0x4894991du, 0xdd42f005u, 0x00007fffu, 0x4894991du, 0xdd42f005u, 0xdd42f005u, 0x7fffff00u, 0x00007fffu, 0x4894991du, 0xdd42f005u, 0x00007fffu, 0x4894991du},
{0x000000dfu, 0xffffffdfu, 0x00000000u, 0xffffe9d1u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000a3u, 0x00000047u, 0x000047f3u, 0xffffffffu, 0x00000000u, 0xc69f64a3u, 0xa3f32e2eu, 0xffffffffu, 0x00000000u, 0xc69f64a3u, 0x2e2e2e2eu, 0xffffffffu, 0x00000000u, 0xc69f64a3u, 0x47f32e2eu, 0x0000ffffu, 0x00000000u, 0xc69f64a3u, 0x47f32e2eu, 0x00000000u, 0xc69f64a3u},
{0x00000017u, 0x00000079u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x0000001cu, 0x00000046u, 0x00004636u, 0xb4f88561u, 0xecc6592du, 0x14321c1cu, 0x4636ff26u, 0xb4f88561u, 0xecc6592du, 0x14321c1cu, 0x4636ff26u, 0xecc6592du, 0x14321c1cu, 0x4636ff26u, 0x4636ff26u, 0x592d8561u, 0xecc6592du, 0x14321c1cu, 0x4636ff26u, 0xecc6592du, 0x14321c1cu},
{0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x0c8b001fu, 0x00010000u, 0xb22f4004u, 0x0c8b001fu, 0x364d2b66u, 0x00010000u, 0xb22f4004u, 0x0c8b001fu, 0x364d2b66u, 0xb22f4004u, 0x0c8b001fu, 0x364d2b66u, 0x364d2b66u, 0x40040000u, 0xb22f4004u, 0x0c8b001fu, 0x364d2b66u, 0xb22f4004u, 0x0c8b001fu},
{0x000000f8u, 0x00000000u, 0x00000000u, 0xffffffffu, 0x00000000u, 0x00000000u, 0x946fa280u, 0x0e9505f4u, 0x870fa76du, 0x000000f4u, 0xffffff87u, 0xffff870fu, 0x8f9fa5ecu, 0x946fa280u, 0x0e9505f4u, 0x870fa76du, 0x8f9fa5ecu, 0x946fa280u, 0x0e9505f4u, 0x870fa76du, 0x8f9fa5ecu, 0x946fa280u, 0x0e9505f4u, 0x870fa76du, 0xa280a5ecu, 0x946fa280u, 0x0e9505f4u, 0x870fa76du, 0x946fa280u, 0x0e9505f4u},
{0x00000099u, 0x0000006bu, 0x00000000u, 0x00000000u, 0x024ffee3u, 0x7fffffffu, 0xff00ff00u, 0x00007fffu, 0x4894991du, 0x00000068u, 0xffffffadu, 0xffffad8du, 0x00000080u, 0x57d10b4du, 0x0f7b8468u, 0xad8d899eu, 0x00000080u, 0x57d10b4du, 0x0f7b8468u, 0xad8d899eu, 0x00000080u, 0x57d10b4du, 0x0f7b8468u, 0xad8d899eu, 0x0000009eu, 0x57d10b4du, 0x0f7b8468u, 0xad8d899eu, 0x00000080u, 0x57d10b4du},
{0x000000dfu, 0x00000045u, 0x00000000u, 0x00000000u, 0xecc6592du, 0x14321c1cu, 0xd28fee69u, 0xb123fdfdu, 0xa78e89fdu, 0x000000f9u, 0x0000005cu, 0x00005c0au, 0xf4823356u, 0x00008000u, 0x142cfcf9u, 0x5c0a21d7u, 0xf4823356u, 0x00008000u, 0x142cfcf9u, 0x5c0a21d7u, 0x00008000u, 0x142cfcf9u, 0x5c0a21d7u, 0x5c0a21d7u, 0xf48233d7u, 0x00008000u, 0x142cfcf9u, 0x5c0a21d7u, 0xf4823356u, 0x00008000u},
{0x00000089u, 0x0000002eu, 0x00002e2eu, 0x00000000u, 0x00000000u, 0x00000000u, 0xb75e01dau, 0x12345678u, 0x47021cf1u, 0x000000cdu, 0xffffffbfu, 0xffffbf9cu, 0xcd4e6bb3u, 0xd94e6bb3u, 0x732951cdu, 0xbf9cf610u, 0xd94e6bb3u, 0xf6106bb3u, 0x732951cdu, 0xbf9cf610u, 0xd94e6bb3u, 0xd94e6bb3u, 0x732951cdu, 0xbf9cf610u, 0xd94e6b10u, 0xd94e6bb3u, 0x732951cdu, 0xbf9cf610u, 0xd94e6bb3u, 0xd94e6bb3u},
{0x6e0b75fcu, 0x6e0b75fcu, 0x6e0b75fcu, 0x6e0b75fcu, 0x6e0b75fcu, 0x6e0b75fcu, 0x6e0b75fcu, 0x6e0b75fcu, 0x6e0b75fcu, 0x6e0b75fcu, 0x6e0b75fcu, 0x6e0b75fcu, 0x12345678u, 0x13afe032u, 0x6e0b75fcu, 0x012fe591u, 0x12345678u, 0x13afe032u, 0x6e0b75fcu, 0xe591e591u, 0x13afe032u, 0x6e0b75fcu, 0x012fe591u, 0x012fe591u, 0x12345691u, 0x13afe032u, 0x6e0b75fcu, 0x012fe591u, 0x12345678u, 0x13afe032u},
{0x00000000u, 0xfffffff0u, 0x0000e1fdu, 0x000062cdu, 0x00000000u, 0x00000000u, 0x1a6589fdu, 0xe22fe806u, 0xdaef49fdu, 0x0000008cu, 0xffffffe8u, 0xffffe80bu, 0xd14e11a6u, 0x008c7fffu, 0xa217908cu, 0xe80b3d6eu, 0xd14e11a6u, 0x00003d6eu, 0xa217908cu, 0xe80b3d6eu, 0xd14e11a6u, 0x00007fffu, 0xa217908cu, 0xe80b3d6eu, 0xd14e116eu, 0x00007fffu, 0xa217908cu, 0xe80b3d6eu, 0xd14e11a6u, 0x00007fffu},
{0x000000f6u, 0x00000038u, 0x00000000u, 0xffffd404u, 0x00007fffu, 0x000ff0ffu, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000062u, 0xffffff8cu, 0xffff8cf7u, 0xab1ff0d5u, 0xab1ff0d5u, 0x0b897562u, 0x8cf72913u, 0xab1ff0d5u, 0xab1ff0d5u, 0x0b897562u, 0x8cf72913u, 0xab1ff0d5u, 0xab1ff0d5u, 0x0b897562u, 0x8cf72913u, 0xab1ff013u, 0xab1ff0d5u, 0x0b897562u, 0x8cf72913u, 0xab1ff0d5u, 0xab1ff0d5u},
{0x00000000u, 0x00000000u, 0x00000000u, 0x00005678u, 0x00000000u, 0x00000000u, 0x242ffb1fu, 0x024ffee3u, 0x7fffffffu, 0x000000f8u, 0x0000007bu, 0x00007b4cu, 0x82f9f841u, 0x2dafc382u, 0xbcd18df8u, 0x7b4cd5f8u, 0x82f94d41u, 0x2dafc382u, 0xbcd1d5f8u, 0x7b4cd5f8u, 0x2dafc382u, 0xbcd18df8u, 0x7b4cd5f8u, 0x7b4cd5f8u, 0x82f94df8u, 0x2dafc382u, 0xbcd18df8u, 0x7b4cd5f8u, 0x82f94d41u, 0x2dafc382u},
{0x00000000u, 0x00000000u, 0x0000e27eu, 0x00000000u, 0x00000000u, 0x00000000u, 0x946fa280u, 0x0e9505f4u, 0x870fa76du, 0x0000005du, 0xffffffbcu, 0xffffbccfu, 0x89abcdefu, 0x89abcdefu, 0x62fba05du, 0x5dcfa6b8u, 0x89abcdefu, 0x89abcdefu, 0x62fba05du, 0xbccfa6b8u, 0x89abcdefu, 0x89abcdefu, 0x62fba05du, 0xbccfa6b8u, 0x89abcdb8u, 0x89abcdefu, 0x62fba05du, 0xbccfa6b8u, 0x89abcdefu, 0x89abcdefu},
{0x00000053u, 0xffffffdfu, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000082u, 0xffffffc9u, 0xffffc93au, 0x321439f8u, 0x00000003u, 0x3631cb82u, 0xc93a3d1bu, 0x321439f8u, 0x00000003u, 0x3631cb82u, 0xc93a3d1bu, 0x321439f8u, 0x00000003u, 0x3631cb82u, 0xc93a3d1bu, 0x3214391bu, 0x00000003u, 0x3631cb82u, 0xc93a3d1bu, 0x321439f8u, 0x00000003u},
{0x00000000u, 0x00000000u, 0x000062fbu, 0x00000000u, 0x0f7b8468u, 0xad8d899eu, 0x00ff01fcu, 0x87ed8dfcu, 0x3f6fe27eu, 0x0000007bu, 0xfffffff7u, 0xfffff702u, 0x7b84d753u, 0x54a9b365u, 0x56ee8a7bu, 0xf702a20au, 0x4e84d753u, 0x54a9b365u, 0xa20a8a7bu, 0xf702a20au, 0x54a9b365u, 0x56ee8a7bu, 0xf702a20au, 0xf702a20au, 0x4e84d70au, 0x54a9b365u, 0x56ee8a7bu, 0xf702a20au, 0x4e84d753u, 0x54a9b365u},
{0x00000000u, 0x00000012u, 0x0000d94eu, 0xffffcdefu, 0x0f7b8468u, 0xad8d899eu, 0x3631cb82u, 0xc93a3d1bu, 0x4e84d753u, 0x00000022u, 0x00000041u, 0x00004114u, 0xffffffffu, 0xff00ff00u, 0x36938222u, 0x41145208u, 0xffffffffu, 0xff00ff00u, 0x36938222u, 0x41145208u, 0xffffffffu, 0xff00ff00u, 0x36938222u, 0x41145208u, 0xffffff08u, 0xff00ff00u, 0x36938222u, 0x41145208u, 0xffffffffu, 0xff00ff00u},
{0x00000069u, 0xffffffdfu, 0x00000001u, 0x00000f7bu, 0xe2a77a78u, 0xe2a779fdu, 0xf4823356u, 0x00008000u, 0x142cfcf9u, 0x00000090u, 0x00000043u, 0x000043d0u, 0x00000090u, 0x00000081u, 0xd4d05190u, 0x43d09980u, 0x00009980u, 0x00000081u, 0xd4d05190u, 0x43d09980u, 0x00000080u, 0x00000081u, 0xd4d05190u, 0x43d09980u, 0x00000080u, 0x00000081u, 0xd4d05190u, 0x43d09980u, 0x00000080u, 0x00000081u},
{0x00000053u, 0xffffffdfu, 0x00000000u, 0x000061e2u, 0x7ac0b14cu, 0x80000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000073u, 0xffffff96u, 0xffff9670u, 0x00008073u, 0x00000003u, 0x7ad78e73u, 0x967003cfu, 0x000003cfu, 0x00000003u, 0x7ad78e73u, 0x967003cfu, 0x00000003u, 0x7ad78e73u, 0x967003cfu, 0x967003cfu, 0x000080cfu, 0x00000003u, 0x7ad78e73u, 0x967003cfu, 0x00008000u, 0x00000003u},
{0x00000000u, 0x00000000u, 0x0000fee3u, 0x00000000u, 0x00000080u, 0x57d10b4du, 0x870fa76du, 0x00000080u, 0x57d10b4du, 0x0000009cu, 0xffffff95u, 0xffff950fu, 0x0000009cu, 0xe8e0746eu, 0x4bbe399cu, 0x950ff203u, 0x0000f203u, 0xe8e0746eu, 0x4bbe399cu, 0x950ff203u, 0x00000080u, 0xe8e0746eu, 0x4bbe399cu, 0x950ff203u, 0x00000003u, 0xe8e0746eu, 0x4bbe399cu, 0x950ff203u, 0x00000080u, 0xe8e0746eu},
{0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00ff00ffu, 0xff5ae0b0u, 0x00000000u, 0x00000000u, 0x00000000u, 0x0000006cu, 0xffffffd2u, 0xffffd232u, 0x9de1f1fcu, 0x7fffffffu, 0xe065fc6cu, 0xd2326b6cu, 0x9de1f1fcu, 0x7fffffffu, 0xe065fc6cu, 0x6b656b65u, 0x9de1f1fcu, 0x7fffffffu, 0xe065fc6cu, 0xd2326b65u, 0x9de1f165u, 0x7fffffffu, 0xe065fc6cu, 0xd2326b65u, 0x9de1f1fcu, 0x7fffffffu},
{0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x54a9b365u, 0x56ee8a7bu, 0x946fa280u, 0x0e9505f4u, 0x870fa76du, 0x0000005cu, 0xffffff9cu, 0xffff9c8fu, 0x625c61e2u, 0x12345678u, 0x6df9dc5cu, 0x9c8faa94u, 0x62cd61e2u, 0x12345678u, 0x6df9dc5cu, 0x9c8faa94u, 0x62cd61e2u, 0x12345678u, 0x6df9dc5cu, 0x9c8faa94u, 0x62cd6194u, 0x12345678u, 0x6df9dc5cu, 0x9c8faa94u, 0x62cd61e2u, 0x12345678u},
{0x00000003u, 0x00000000u, 0x00000000u, 0x00000001u, 0x0e532388u, 0xd28fee69u, 0x7ab0e583u, 0x1d432825u, 0x8b85be22u, 0x00000000u, 0xffffff82u, 0xffff82deu, 0x00ff00ffu, 0x00ff00feu, 0x704b8500u, 0x00de0143u, 0x00ff00ffu, 0x00ff00feu, 0x704b8500u, 0x01430143u, 0x00ff00ffu, 0x00ff00feu, 0x704b8500u, 0x82de0143u, 0x00ff0043u, 0x00ff00feu, 0x704b8500u, 0x82de0143u, 0x00ff00ffu, 0x00ff00feu},
{0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0xe2a77a78u, 0xe2a779fdu, 0x9f2fe8f7u, 0x000000f4u, 0xffffffe8u, 0xffffe80cu, 0x053b0655u, 0x7ffff4ffu, 0x54a25ef4u, 0xe80c1562u, 0x053b0655u, 0x7fffffffu, 0x15625ef4u, 0xe80c1562u, 0x7fffffffu, 0x54a25ef4u, 0xe80c1562u, 0xe80c1562u, 0x053b0662u, 0x7fffffffu, 0x54a25ef4u, 0xe80c1562u, 0x053b0655u, 0x7fffffffu},
{0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000fcu, 0x0000005bu, 0x00005b34u, 0x9906fc11u, 0x1c2fe6d7u, 0x59a71dfcu, 0x5b3425fcu, 0x25fc2011u, 0x1c2fe6d7u, 0x59a71dfcu, 0x5b3425fcu, 0x1c2fe6d7u, 0x59a71dfcu, 0x5b3425fcu, 0x5b3425fcu, 0x990620fcu, 0x1c2fe6d7u, 0x59a71dfcu, 0x5b3425fcu, 0x99062011u, 0x1c2fe6d7u},
{0x0000006eu, 0xffffffdfu, 0x00000000u, 0x00000000u, 0x7b2ffe58u, 0x7fffffffu, 0xf08db1fcu, 0x04826f45u, 0x049fc746u, 0x000000dbu, 0xffffffe8u, 0xffffe840u, 0x57ef669fu, 0x00000002u, 0xe1ff47dbu, 0xdb40795eu, 0x795e669fu, 0x00000002u, 0xe1ff47dbu, 0xe840795eu, 0x57ef669fu, 0x00000002u, 0xe1ff47dbu, 0xe840795eu, 0x57ef665eu, 0x00000002u, 0xe1ff47dbu, 0xe840795eu, 0x57ef669fu, 0x00000002u},
{0xb278ccf4u, 0xb278ccf4u, 0xb278ccf4u, 0xb278ccf4u, 0xb278ccf4u, 0xb278ccf4u, 0xb278ccf4u, 0xb278ccf4u, 0xb278ccf4u, 0xb278ccf4u, 0xb278ccf4u, 0xb278ccf4u, 0x230a2bc5u, 0x230af4c4u, 0xb278ccf4u, 0x063f9962u, 0x230a2bc5u, 0x230a2bc4u, 0xb2789962u, 0x063f9962u, 0x230a2bc5u, 0x230a2bc4u, 0xb278ccf4u, 0x063f9962u, 0x230a2b62u, 0x230a2bc4u, 0xb278ccf4u, 0x063f9962u, 0x230a2bc5u, 0x230a2bc4u},
{0x00000043u, 0xffffffdfu, 0x0000e739u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000e9u, 0xffffffa3u, 0xffffa364u, 0xff00ffe9u, 0x000000ffu, 0xb83f90e9u, 0xa3640fdeu, 0xff000fdeu, 0x000000ffu, 0xb83f90e9u, 0xa3640fdeu, 0x000000ffu, 0xb83f90e9u, 0xa3640fdeu, 0xa3640fdeu, 0xff00ffdeu, 0x000000ffu, 0xb83f90e9u, 0xa3640fdeu, 0xff00ff00u, 0x000000ffu},
{0x00000043u, 0x00000000u, 0x00006c22u, 0x00000fdeu, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000b0u, 0x0000006cu, 0x00006ca5u, 0xee86c75eu, 0x00ff00ffu, 0xff5ae0b0u, 0x6cb0bfdcu, 0xee86c75eu, 0x00ff00ffu, 0xbfdce0b0u, 0x6ca5bfdcu, 0x00ff00ffu, 0xff5ae0b0u, 0x6ca5bfdcu, 0x6ca5bfdcu, 0xee86c7dcu, 0x00ff00ffu, 0xff5ae0b0u, 0x6ca5bfdcu, 0xee86c75eu, 0x00ff00ffu},
{0x000000f0u, 0x00000000u, 0x00006bb3u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000020u, 0x00000047u, 0x00004722u, 0x00002001u, 0x7c900a51u, 0x77bbc220u, 0x47229d30u, 0x00009d30u, 0x7c900a51u, 0x77bbc220u, 0x47229d30u, 0x7c900a51u, 0x77bbc220u, 0x47229d30u, 0x47229d30u, 0x00000030u, 0x7c900a51u, 0x77bbc220u, 0x47229d30u, 0x00000001u, 0x7c900a51u},
{0x00000000u, 0x00000000u, 0x00000000u, 0xffffffffu, 0xe22fe806u, 0xdaef49fdu, 0xd14e11a6u, 0x00007fffu, 0xa217908cu, 0x00000086u, 0xffffff95u, 0xffff9592u, 0x000000ffu, 0xffffffffu, 0x3b082f86u, 0x9592116bu, 0x000000ffu, 0xffffffffu, 0x3b082f86u, 0x9592116bu, 0x000000ffu, 0xffffffffu, 0x3b082f86u, 0x9592116bu, 0x0000006bu, 0xffffffffu, 0x3b082f86u, 0x9592116bu, 0x000000ffu, 0xffffffffu},
{0x00000000u, 0xffffff80u, 0x00003356u, 0xffffb22fu, 0x14321c1cu, 0x4636ff26u, 0x7ab0e583u, 0x1d432825u, 0x8b85be22u, 0x00000011u, 0xffffffb7u, 0xffffb75eu, 0xa9af3d85u, 0x938b1116u, 0xf3cf3a11u, 0xb75e01dau, 0xa9af01dau, 0x938bfc16u, 0xf3cf3a11u, 0xb75e01dau, 0xa9af3d85u, 0x938bfc16u, 0xf3cf3a11u, 0xb75e01dau, 0xa9af3ddau, 0x938bfc16u, 0xf3cf3a11u, 0xb75e01dau, 0xa9af3d85u, 0x938bfc16u},
{0x00000000u, 0x00000012u, 0x00000000u, 0x00007d79u, 0x82f94d41u, 0x2dafc382u, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000b6u, 0xfffffff2u, 0xfffff2b5u, 0x12345678u, 0x47021cf1u, 0x59c67fb6u, 0xf2b52a63u, 0x12345678u, 0x47021cf1u, 0x59c67fb6u, 0x2a632a63u, 0x47021cf1u, 0x59c67fb6u, 0xf2b52a63u, 0xf2b52a63u, 0x12345663u, 0x47021cf1u, 0x59c67fb6u, 0xf2b52a63u, 0x12345678u, 0x47021cf1u},
{0x000000efu, 0xffffff82u, 0x00000000u, 0xffff99e2u, 0x6c4ff23fu, 0xdcbc85feu, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000afu, 0x0000005du, 0x00005db8u, 0x89009332u, 0x89009332u, 0x3044bfafu, 0x5db890dau, 0x89009332u, 0x89009332u, 0x3044bfafu, 0x5db890dau, 0x89009332u, 0x3044bfafu, 0x5db890dau, 0x5db890dau, 0x890093dau, 0x89009332u, 0x3044bfafu, 0x5db890dau, 0x89009332u, 0x89009332u},
{0x00000053u, 0x0000005cu, 0x00000000u, 0x00000000u, 0xa78e89fdu, 0x80000000u, 0x049fc746u, 0x08fb4bf8u, 0x125fc41du, 0x00000022u, 0x0000007au, 0x00007ac0u, 0x22b0e583u, 0x1d432825u, 0x8b85be22u, 0x7ac0b14cu, 0x7ab0b14cu, 0x1d432825u, 0x8b85be22u, 0x7ac0b14cu, 0x7ab0e583u, 0x1d432825u, 0x8b85be22u, 0x7ac0b14cu, 0x7ab0e54cu, 0x1d432825u, 0x8b85be22u, 0x7ac0b14cu, 0x7ab0e583u, 0x1d432825u},
{0x5eafe75eu, 0x5eafe75eu, 0x5eafe75eu, 0x5eafe75eu, 0x5eafe75eu, 0x5eafe75eu, 0x5eafe75eu, 0x5eafe75eu, 0x5eafe75eu, 0x5eafe75eu, 0x5eafe75eu, 0x5eafe75eu, 0x8000005eu, 0x000001fcu, 0x5eafe75eu, 0x2b0fe583u, 0x8000e583u, 0x000001fcu, 0x5eafe75eu, 0x2b0fe583u, 0x000001fcu, 0x5eafe75eu, 0x2b0fe583u, 0x2b0fe583u, 0x80000083u, 0x000001fcu, 0x5eafe75eu, 0x2b0fe583u, 0x80000000u, 0x000001fcu},
{0x00000000u, 0xfffffff0u, 0x00000000u, 0x00000f7bu, 0xb4f88561u, 0xecc6592du, 0x00000000u, 0x00000000u, 0x00000000u, 0x000000fau, 0xffffffbdu, 0xffffbd31u, 0x00007fffu, 0x00007ffeu, 0x5d9057fau, 0xfa31e9d1u, 0x00007fffu, 0x00007ffeu, 0x5d9057fau, 0xe9d1e9d1u, 0x00007fffu, 0x00007ffeu, 0x5d9057fau, 0xbd31e9d1u, 0x00007fd1u, 0x00007ffeu, 0x5d9057fau, 0xbd31e9d1u, 0x00007fffu, 0x00007ffeu},
{0x00000000u, 0xffffff89u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000000u, 0x00000079u, 0xfffffff4u, 0xfffff438u, 0x07939cf9u, 0x07939cf9u, 0xf7bc7979u, 0xf438acb4u, 0x07939cf9u, 0x07939cf9u, 0xf7bc3c79u, 0xacb4acb4u, 0x07939cf9u, 0x07939cf9u, 0xf7bc3c79u, 0xf438acb4u, 0x07939cb4u, 0x07939cf9u, 0xf7bc3c79u, 0xf438acb4u, 0x07939cf9u, 0x07939cf9u}
};
constexpr const char* Names[Checked] = {
"load_ubyte", "load_sbyte", "load_ushort", "load_sshort",
"load_dwordx2[0]", "load_dwordx2[1]", "load_dwordx3[0]", "load_dwordx3[1]",
"load_dwordx3[2]", "buffer_load_ubyte (soffset 3, offset 5)", "buffer_load_sbyte (offset 15)", "buffer_load_sshort (soffset 3, offset 11)",
"scratch dword 0", "scratch dword 1", "scratch dword 2", "scratch dword 3",
"scratch dword 4", "scratch dword 5", "scratch dword 6", "scratch dword 7",
"scratch dword 8", "scratch dword 9", "scratch dword 10", "scratch dword 11",
"scratch dword 12", "scratch dword 13", "scratch dword 14", "scratch dword 15",
"scratch dword 62", "scratch dword 63",
};
std::array<std::uint32_t, 4> BufferDescriptor(const void* data, std::uint32_t bytes) {
const auto address = reinterpret_cast<std::uintptr_t>(data);
return {static_cast<std::uint32_t>(address), static_cast<std::uint32_t>((address >> 32u) & 0xffffu), bytes, 0x31016facu};
}
std::string Hex(std::uint32_t value) {
char text[16];
std::snprintf(text, sizeof(text), "0x%08x", value);
return text;
}
void Run(AgcDriver::VulkanDevice& device, std::span<const std::uint32_t> code, std::uint32_t waveSize, const ShaderRecompiler::SpirvTarget& target) {
Input.fill(0u);
for (std::uint32_t tid = 0; tid < waveSize; ++tid) std::copy(std::begin(Rows[tid]), std::end(Rows[tid]), &Input[tid * Inputs]);
std::copy(std::begin(SharedInit), std::end(SharedInit), &Input[waveSize * Inputs]);
Output.fill(0xdeadbeefu);
std::vector<std::uint32_t> userData(8, 0u);
const auto input = BufferDescriptor(Input.data(), (waveSize * Inputs + SharedWords) * 4u);
const auto output = BufferDescriptor(Output.data(), waveSize * Results * 4u);
std::copy(input.begin(), input.end(), userData.begin());
std::copy(output.begin(), output.end(), userData.begin() + 4);
const std::array<ShaderRecompiler::MemoryRegion, 1> memory{{{reinterpret_cast<std::uintptr_t>(code.data()), std::as_bytes(code)}}};
const ShaderRecompiler::ShaderComputeStageInfo compute{{waveSize, 1, 1}, 0u, {false, false, false}, false, 1};
ShaderRecompiler::RecompileRequest request{
{ShaderStage::Compute, reinterpret_cast<std::uintptr_t>(code.data()), code, 0, {}},
{waveSize, 0, userData, compute, std::nullopt, std::nullopt, memory},
target,
{0, 0, 0, 128}
};
request.useCache = false;
const auto result = ShaderRecompiler::Recompile(request);
device.Dispatch(result, 1, 1, 1, {}, reinterpret_cast<std::uintptr_t>(code.data()));
device.WaitIdle();
}
template <std::size_t Lanes>
void Check(const std::uint32_t (&expected)[Lanes][Checked], const char* const (&names)[Checked], const char* run) {
for (std::uint32_t tid = 0; tid < Lanes; ++tid) {
for (std::uint32_t index = 0; index < Checked; ++index) {
const auto actual = Output[tid * Results + index];
Require(actual == expected[tid][index], std::string("buffer load store ") + run + ": lane " + std::to_string(tid) + " " + names[index] + " is " + Hex(actual) + ", expected " + Hex(expected[tid][index]));
}
}
}
}
int main() {
try {
const auto device = OpenVulkanTestDevice();
if (!device) return VulkanTestSkipped;
Run(*device, Wave32Code, 32, device->Target());
Check(Expected32, Names, "wave32");
Run(*device, Wave64Code, 64, device->Target());
Check(Expected64, Names, "wave64");
Run(*device, Wave64Code, 64, device->ComputeTarget(32));
Check(Expected64, Names, "wave64 split");
std::puts("buffer load store tests passed");
return 0;
} catch (const std::exception& error) {
std::cerr << error.what() << '\n';
return 1;
}
}