[lld] [llvm] [XCOFF] Display branch-absolute targets in hex. (PR #72532)

Chen Zheng via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 4 22:43:56 PST 2023


================
@@ -0,0 +1,37 @@
+# RUN: llvm-objdump -d %p/Inputs/abs32.o | \
----------------
chenzheng1030 wrote:

We can use yaml2obj to generate the object? Raw object input should always be avoided.
```
obj2yaml  abs32.o -o m.yaml
yaml2obj m.yaml -o t.o
$llvm-objdump -d t.o

t.o:	file format aixcoff-rs6000

Disassembly of section .text:

00000000 <.main>:
       0: 48 00 00 03  	bla 0
       4: 41 80 00 03  	btla	0, 0
       8: 48 00 12 36  	ba 4660
       c: 4b ff ff e2  	ba 67108832
      10: 41 80 23 4a  	bta	0, 9032
      14: 41 80 ff 02  	bta	0, 65280
```

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


More information about the llvm-commits mailing list