Mesa (main): freedreno/ir3/tests: Add additional disasm test vectors
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Oct 15 16:29:51 UTC 2021
Module: Mesa
Branch: main
Commit: bfd8b7c9307e400ae76b02b39f83756cf1c66c1a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bfd8b7c9307e400ae76b02b39f83756cf1c66c1a
Author: Rob Clark <robdclark at chromium.org>
Date: Tue Oct 12 11:32:39 2021 -0700
freedreno/ir3/tests: Add additional disasm test vectors
Add branch with negative offset, and a couple others to trigger issues I
found while adding pack_field() overflow asserts.
Signed-off-by: Rob Clark <robdclark at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13353>
---
src/freedreno/ir3/tests/disasm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/freedreno/ir3/tests/disasm.c b/src/freedreno/ir3/tests/disasm.c
index 1ebcaf662cf..861a0c2e60d 100644
--- a/src/freedreno/ir3/tests/disasm.c
+++ b/src/freedreno/ir3/tests/disasm.c
@@ -63,6 +63,7 @@ static const struct test {
INSTR_6XX(00000200_00000000, "(rpt2)nop"),
INSTR_6XX(03000000_00000000, "end"),
INSTR_6XX(00800000_00000004, "br p0.x, #4"),
+ INSTR_6XX(00800000_fffffffc, "br p0.x, #-4"),
INSTR_6XX(00900000_00000003, "br !p0.x, #3"),
INSTR_6XX(03820000_00000015, "shps #21"), /* emit */
INSTR_6XX(04021000_00000000, "(ss)shpe"), /* cut */
@@ -149,6 +150,8 @@ static const struct test {
/* dEQP-GLES31.functional.texture.texture_buffer.render.as_fragment_texture.buffer_size_65536 */
INSTR_5XX(a2c03102_00000000, "getbuf (u32)(x)r0.z, t#0"),
INSTR_6XX(a0c81f00_e0200005, "sam.base0 (f32)(xyzw)r0.x, r0.z, s#1, a1.x"),
+ INSTR_6XX(a0c81108_e2000001, "sam.base0 (f32)(x)r2.x, r0.x, s#16, a1.x"),
+ INSTR_6XX(a048d107_cc080a07, "isaml.base3 (s32)(x)r1.w, r0.w, r1.y, s#0, t#6"),
/* cat6 */
More information about the mesa-commit
mailing list