From c717c28d8754058383fb2066865d735f292d8e39 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 23 Jun 2022 18:33:37 -0400 Subject: [PATCH] pan/va: Fix v4s8 form of R2 opcodes The XML had a typo which was copypasted (incorrectly) into various instructions. Fixes a pile of integer_ops subtests. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/valhall/ISA.xml | 10 +++++----- src/panfrost/bifrost/valhall/test/assembler-cases.txt | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/panfrost/bifrost/valhall/ISA.xml b/src/panfrost/bifrost/valhall/ISA.xml index be9f25ef50f..9677ab40b8b 100644 --- a/src/panfrost/bifrost/valhall/ISA.xml +++ b/src/panfrost/bifrost/valhall/ISA.xml @@ -1822,7 +1822,7 @@ - + @@ -1843,7 +1843,7 @@ - + $A - B$ with optional saturation @@ -1886,7 +1886,7 @@ - + @@ -1907,7 +1907,7 @@ - + A B @@ -1924,7 +1924,7 @@ - + diff --git a/src/panfrost/bifrost/valhall/test/assembler-cases.txt b/src/panfrost/bifrost/valhall/test/assembler-cases.txt index 972e3e57de6..1d276a6bb1a 100644 --- a/src/panfrost/bifrost/valhall/test/assembler-cases.txt +++ b/src/panfrost/bifrost/valhall/test/assembler-cases.txt @@ -237,3 +237,5 @@ c0 f1 00 00 10 c1 2f 08 BRANCHZI.eq.absolute.wait0 0x0, blend_descriptor_0.w1 41 41 40 ad 01 c0 f5 00 FCMP_AND.v2f16.gt.m1 r0, ^r1, ^r1.h11, ^r0 c4 c0 40 10 71 c0 b6 00 LSHIFT_AND.v4i8 r0, 0x1000000.b3333, 0x0.b00, ^r0 40 00 13 00 80 c0 90 00 V2U8_TO_V2F16 r0, ^r0.b02 +41 40 00 40 00 c0 aa 00 IADD.v4s8.saturate r0, ^r1, ^r0 +41 40 01 40 00 c0 aa 00 ISUB.v4s8.saturate r0, ^r1, ^r0