Files

177 lines
10 KiB
TOML

[[fixture]]
id = "gfx1030-wave32-add"
path = "fixtures/rdna2/add.bin"
source = "fixtures/rdna2/add.s"
sha256 = "3ff942fb79a189b4d3d917fc6e6f0af3b5d81787b4b60f7b78eaca9999881dca"
source_sha256 = "7b66334a054bc8fd63d2d4f30db43bd7e1db09536e2872b53cdb22e674a7f7d5"
origin = "Original Xenora synthetic compute fixture"
license = "GPL-3.0-or-later"
architecture = "gfx1030 Wave32"
generator = "LLVM 23.1.6 llvm-mc and llvm-objcopy"
regenerate = "scripts/assemble-fixture.sh"
verify = "scripts/assemble-fixture.sh --check"
input = [0, 1, 4294967295, 3989547400]
expected = [305419896, 305419897, 305419895, 0]
derivation = "Each lane loads its input, adds 0x12345678 modulo 2^32 and stores to the same index in the output. The last input is 2^32 minus the literal."
limitation = "Synthetic input/output binding contract. No AMDHSA or Xbox ABI."
[[fixture]]
id = "gfx1030-wave32-float-exact"
path = "fixtures/rdna2/float-exact.bin"
source = "fixtures/rdna2/float-exact.s"
sha256 = "57f8417a9fb8e03f84de2118e547e06c352ec2a7b6071805b43f09bb9977dd82"
source_sha256 = "49c9057026784902e3b321a2c4bea0b716d7cf964253b76422fb22a8a4fc4530"
origin = "Original Xenora synthetic compute fixture"
license = "GPL-3.0-or-later"
architecture = "gfx1030 Wave32"
generator = "LLVM 23.1.6 llvm-mc and llvm-objcopy"
regenerate = "scripts/assemble-fixture.sh"
verify = "scripts/assemble-fixture.sh --check"
input = [0, 1, 4294967295, 3989547400]
expected = [1091305472, 1091305472, 1092616192, 1092616192]
derivation = "Input bit 22 selects FP32 1.0 or 1.5. Adding 2.5 yields exactly 3.5 or 4.0. Multiplying by 2.5 gives exactly 8.75 (0x410c0000) or 10.0 (0x41200000)."
limitation = "Synthetic binding ABI and restricted finite exact binary32 domain."
[[fixture]]
id = "gfx1030-wave32-bitwise-branch"
path = "fixtures/rdna2/bitwise-branch.bin"
source = "fixtures/rdna2/bitwise-branch.s"
sha256 = "3af5aa917dbb0c9fb2643fb7836f6765a57f90f94a68fe8168245946f7b4491a"
source_sha256 = "eafca780a9ccf891f229141e451a68feb4c5d7ba2c1467fead61dbb9293de081"
origin = "Original Xenora synthetic compute fixture"
license = "GPL-3.0-or-later"
architecture = "gfx1030 Wave32"
generator = "LLVM 23.1.6 llvm-mc and llvm-objcopy"
regenerate = "scripts/assemble-fixture.sh"
verify = "scripts/assemble-fixture.sh --check"
input = [0, 1, 4294967295, 3989547400]
expected = [305419896, 305419897, 315315847, 318723824]
derivation = "Comparing 7 with 6 clears SCC. The taken edge computes (input AND 0x00ff00ff) XOR 0x12345678."
limitation = "Synthetic binding ABI and uniform forward branches."
[[fixture]]
id = "gfx1030-wave32-or"
path = "fixtures/rdna2/or.bin"
source = "fixtures/rdna2/or.s"
sha256 = "9923aa9baea20813da59c55a2de2544fdfe0f80fc1ced821a1a8c5c1ea4ddf0b"
source_sha256 = "f6ac00e35173168987fe5413563d33bd21496a47e0cf00b520f978d50c809c6b"
origin = "Original Xenora synthetic compute fixture"
license = "GPL-3.0-or-later"
architecture = "gfx1030 Wave32"
generator = "LLVM 23.1.6 llvm-mc and llvm-objcopy"
regenerate = 'llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx1030 -mattr=+wavefrontsize32 -filetype=obj fixtures/rdna2/or.s -o "$scratch/or.o" && llvm-objcopy -O binary --only-section=.text "$scratch/or.o" fixtures/rdna2/or.bin'
verify = "Reassemble to a temporary binary and compare with cmp."
input = [0, 1, 4294967295, 2153054378, 2141912917, 2147483648, 5570730]
expected = [2153054378, 2153054379, 4294967295, 2153054378, 4294967295, 2153054378, 2153054378]
derivation = "Each lane sets the bits selected by 0x805500aa in its input word and preserves the other bits."
limitation = "Synthetic input/output binding contract. No AMDHSA or Xbox ABI."
[[fixture]]
id = "gfx1030-wave32-shifts"
path = "fixtures/rdna2/shifts.bin"
source = "fixtures/rdna2/shifts.s"
sha256 = "5e72181d95f4bfdb52d1779be9097c9fb05c6326fad46db7dfb43b4d149a98c6"
source_sha256 = "08f0b6b06e73e70ee7a7845818e4970a2c041ace876a0c304ca861a441e83534"
origin = "Original Xenora synthetic compute fixture"
license = "GPL-3.0-or-later"
architecture = "gfx1030 Wave32"
generator = "LLVM 23.1.6 llvm-mc and llvm-objcopy"
regenerate = 'llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx1030 -mattr=+wavefrontsize32 -filetype=obj fixtures/rdna2/shifts.s -o "$scratch/shifts.o" && llvm-objcopy -O binary --only-section=.text "$scratch/shifts.o" fixtures/rdna2/shifts.bin'
verify = "Reassemble to a temporary binary and compare with cmp."
input = [0, 1, 2, 30, 31, 32, 33, 63, 64, 2147483648, 2147483681, 4294967295]
expected = [2, 1073741830, 536870924, 3221225474, 2147483649, 2, 1073741830, 2147483649, 2, 2, 1073741830, 2147483649]
derivation = "Each lane uses its input modulo 32 as the common count. XOR the low 32 bits of 0x80000003 multiplied by two to that power with the unsigned quotient of 0x80000001 divided by the same power. The left shift overwrites its count register and the right shift overwrites its value register."
limitation = "Synthetic input/output binding contract. No AMDHSA or Xbox ABI."
[[fixture]]
id = "gfx1030-wave32-ashr"
path = "fixtures/rdna2/ashr.bin"
source = "fixtures/rdna2/ashr.s"
sha256 = "8194ea7b3a2233823968f78472532df9d3809a5770c1be3ee8b68a9cfeedaf56"
source_sha256 = "b44535bc7c38e17fa8ba1f73cf1b510efc00a21cb914f5ecaef633564346f10b"
origin = "Original Xenora synthetic compute fixture"
license = "GPL-3.0-or-later"
architecture = "gfx1030 Wave32"
generator = "LLVM 23.1.6 llvm-mc and llvm-objcopy"
regenerate = "scripts/assemble-fixture.sh"
verify = "scripts/assemble-fixture.sh --check"
input = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 2147483648, 4294967295]
expected = [2147483649, 3221225472, 3758096384, 4026531840, 4160749568, 4227858432, 4261412864, 4278190080, 4286578688, 4290772992, 4292870144, 4293918720, 4294443008, 4294705152, 4294836224, 4294901760, 4294934528, 4294950912, 4294959104, 4294963200, 4294965248, 4294966272, 4294966784, 4294967040, 4294967168, 4294967232, 4294967264, 4294967280, 4294967288, 4294967292, 4294967294, 4294967295, 2147483649, 3221225472, 3758096384, 4026531840, 4160749568, 4227858432, 4261412864, 4278190080, 4286578688, 4290772992, 4292870144, 4293918720, 4294443008, 4294705152, 4294836224, 4294901760, 4294934528, 4294950912, 4294959104, 4294963200, 4294965248, 4294966272, 4294966784, 4294967040, 4294967168, 4294967232, 4294967264, 4294967280, 4294967288, 4294967292, 4294967294, 4294967295, 2147483649, 4294967295]
derivation = "Each lane uses its input modulo 32 as the count. The fixture moves 0x80000001 into v255, then computes v255 = v255 arithmetic-shift-right by the count, so the destination aliases the signed value source. The expected word is floor(-2147483647 / 2^(count mod 32)) modulo 2^32."
limitation = "Synthetic input/output binding contract. No AMDHSA or Xbox ABI. The literal is fixed at 0x80000001; a separate test substitutes 0x7fffffff as a positive control."
[[fixture]]
id = "gfx1030-x9-constant-vs"
path = "fixtures/rdna2/x9-constant-vs.bin"
source = "fixtures/rdna2/x9-constant-vs.s"
sha256 = "e7b55e390fc2dc155993b4b264926da37a285478a835706b5bc0ac8d81f10e7c"
source_sha256 = "ec579b9ec08e833c1d70ab8e8e8eceea59d2c7ef43421867ba7795e92d31b943"
origin = "Original Xenora synthetic graphics fixture"
license = "GPL-3.0-or-later"
architecture = "gfx1030 Wave32"
generator = "LLVM 23.1.6 llvm-mc and llvm-objcopy"
regenerate = "scripts/assemble-fixture.sh"
verify = "scripts/assemble-fixture.sh --check"
derivation = "Exports four synthetic input coordinates as position zero."
limitation = "Synthetic graphics entry registers and stage links. No console container or Xbox ABI."
[[fixture]]
id = "gfx1030-x9-constant-ps"
path = "fixtures/rdna2/x9-constant-ps.bin"
source = "fixtures/rdna2/x9-constant-ps.s"
sha256 = "b7d876bcf58b7846984a4bafdd1f697738b69f46192d2430f6afe792aebc9efc"
source_sha256 = "0d2e7b08cf937e18d62d329af53064a9987075a1595d6ca5b79b82686a142b3f"
origin = "Original Xenora synthetic graphics fixture"
license = "GPL-3.0-or-later"
architecture = "gfx1030 Wave32"
generator = "LLVM 23.1.6 llvm-mc and llvm-objcopy"
regenerate = "scripts/assemble-fixture.sh"
verify = "scripts/assemble-fixture.sh --check"
derivation = "Sets two VGPRs to binary32 one and zero and exports opaque red."
limitation = "Synthetic graphics entry registers and stage links. No console container or Xbox ABI."
[[fixture]]
id = "gfx1030-x9-varying-vs"
path = "fixtures/rdna2/x9-varying-vs.bin"
source = "fixtures/rdna2/x9-varying-vs.s"
sha256 = "c2be65b15a87bd2ce79cda154bb7a54b744284a4b15cd65472e8821736aa1d73"
source_sha256 = "9da26865b075373e81676bfdaa69df4cf5bc31f36842ba491073b570da5fb562"
origin = "Original Xenora synthetic graphics fixture"
license = "GPL-3.0-or-later"
architecture = "gfx1030 Wave32"
generator = "LLVM 23.1.6 llvm-mc and llvm-objcopy"
regenerate = "scripts/assemble-fixture.sh"
verify = "scripts/assemble-fixture.sh --check"
derivation = "Exports synthetic input position and four color components as parameter zero."
limitation = "Synthetic graphics entry registers and stage links. No console container or Xbox ABI."
[[fixture]]
id = "gfx1030-x9-varying-ps"
path = "fixtures/rdna2/x9-varying-ps.bin"
source = "fixtures/rdna2/x9-varying-ps.s"
sha256 = "7636e1e0a55a59d8cc2cf63c9e1394c8195fdbe648fbbb706862cb8db7ee2eb2"
source_sha256 = "097059c9dd16a13b1b4ac77870fa998ef1ca091f0c538ee818bd2b624be327ef"
origin = "Original Xenora synthetic graphics fixture"
license = "GPL-3.0-or-later"
architecture = "gfx1030 Wave32"
generator = "LLVM 23.1.6 llvm-mc and llvm-objcopy"
regenerate = "scripts/assemble-fixture.sh"
verify = "scripts/assemble-fixture.sh --check"
derivation = "Interpolates each component of parameter zero and exports all four as render target zero."
limitation = "Synthetic graphics entry registers and stage links. No console container or Xbox ABI."
[[fixture]]
id = "gfx1030-x9-transform-vs"
path = "fixtures/rdna2/x9-transform-vs.bin"
source = "fixtures/rdna2/x9-transform-vs.s"
sha256 = "c15058ca41ec9e5466202777d8fb6619978db3bb023568b4438094390b6c51e7"
source_sha256 = "7bd2c9421846e6616e29266c15d6e272a0c2067fad56bb0dd1a7884d04dcc8c3"
origin = "Original Xenora synthetic graphics fixture"
license = "GPL-3.0-or-later"
architecture = "gfx1030 Wave32"
generator = "LLVM 23.1.6 llvm-mc and llvm-objcopy"
regenerate = "scripts/assemble-fixture.sh"
verify = "scripts/assemble-fixture.sh --check"
derivation = "Scales clip-space x and y by one half, adds one quarter to x, and exports transformed position with unchanged z and w."
limitation = "Synthetic graphics register ABI and exact finite FP32 fixture inputs."