[PATCH] D70719: created a test case to verify the raw text section of xcoffobject file
Digger via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 5 10:24:24 PST 2019
DiggerLin marked 4 inline comments as done.
DiggerLin added inline comments.
================
Comment at: llvm/test/CodeGen/PowerPC/aix-xcoff-textdata.ll:1
+; RUN: llc -verify-machineinstrs -mcpu=pwr9 -mtriple powerpc-ibm-aix-xcoff -filetype=obj -o %t.o < %s
+; RUN: llvm-objdump -D %t.o | FileCheck --check-prefix=CHECK %s
----------------
daltenty wrote:
> If find the name of this file a little confusing. I'd prefer aix-xcoff-textdisasembly.ll or the like.
changed the test case name as your suggestion
================
Comment at: llvm/test/CodeGen/PowerPC/aix-xcoff-textdata.ll:15
+; CHECK: Disassembly of section .text:{{[[:space:]] *}}
+; CHECK-NEXT: 00000000 .text:
+; CHECK-NEXT: 0: 38 60 00 00 li 3, 0
----------------
daltenty wrote:
> Out of curiosity why don't we see the .foo label? Binutils objdump appears to show it.
this is disassembly, for the symbol .text and .foo has the same address, the llvm-objdump use the .text(first met symbol entry in the symbol table) as label of memory address 0.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70719/new/
https://reviews.llvm.org/D70719
More information about the llvm-commits
mailing list