[llvm] [X86][MC] Add R_X86_64_CODE_4_GOTTPOFF (PR #116633)

Feng Zou via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 20 17:32:11 PST 2024


================
@@ -0,0 +1,37 @@
+// RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t
+// RUN: llvm-objdump -dr --no-print-imm-hex %t | FileCheck %s
+
+// CHECK:      <_start>:
----------------
fzou1 wrote:

It's not to check encoding/decoding. It showed the map of instruction and relocation information (type, symbol and offset), and that's the output what users got from llvm-mc/llvm. Some tests in llvm/test/MC folder did same thing.

I'm okay with adding the check of relocation information in relocation.s and not adding this test file, if you insist.

https://github.com/llvm/llvm-project/pull/116633


More information about the llvm-commits mailing list