[llvm] [AMDGPU][test]added unique and sort options for update_mc_test_check script (PR #111769)
Brox Chen via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 18 10:12:34 PDT 2024
================
@@ -0,0 +1,8 @@
+# NOTE: Assertions have been autogenerated by utils/update_mc_test_checks.py UTC_ARGS: --sort
+# RUN: llvm-mc -triple=amdgcn -mcpu=gfx1100 -disassemble -show-encoding %s 2>&1 | FileCheck -check-prefixes=CHECK %s
+
+0x00,0x00,0x00,0x7e
+# CHECK: v_nop ; encoding: [0x00,0x00,0x00,0x7e]
----------------
broxigarchen wrote:
Hey Joe I checked the dasm and it seems sorting with hex mostly cannot group same instruction to same place, since the first byte are gprs
If we want to sort on output, it probably a bit over complicated seems we may have multiple out asm mixed with errors.
What about passing a sorting mask? It seems most of the dasm file has same length of bytes. Assume we pass a sorting mask with "0xFF0000", then for each line, i.e. "0xa,0xb,0xc", the script can merge them to 0x0a0b0c then use the mask to get the key for sorting. Do you think this could be a ugly solution? also @kosarev
https://github.com/llvm/llvm-project/pull/111769
More information about the llvm-commits
mailing list