[llvm] [X86][MC] Support encoding optimization & assembler relaxation about immediate operands for APX instructions (PR #78545)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 7 20:22:37 PDT 2025
================
@@ -0,0 +1,38 @@
+// RUN: llvm-mc -triple x86_64-linux-gnu -filetype=obj %s | llvm-readobj -r - | FileCheck %s
+
+// CHECK: Relocations [
+// CHECK-NEXT: Section ({{[0-9]+}}) .rela.text {
+{evex} andb $foo, %al // CHECK-NEXT: R_X86_64_8
----------------
MaskRay wrote:
There are many forms for each opcode, duplicated across many files. Is there a way to deduplicate the tests?
I'd suggest llvm-objdump -dr (inline relocations) to test both the encoding and the relocations, possibly making `encopt.s` unneeded.
https://github.com/llvm/llvm-project/pull/78545
More information about the llvm-commits
mailing list