[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:26 PST 2019


DiggerLin updated this revision to Diff 232384.
DiggerLin marked 2 inline comments as done.
DiggerLin added a comment.

changed test case filename


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70719/new/

https://reviews.llvm.org/D70719

Files:
  llvm/test/CodeGen/PowerPC/aix-xcoff-textdisasembly.ll


Index: llvm/test/CodeGen/PowerPC/aix-xcoff-textdisasembly.ll
===================================================================
--- /dev/null
+++ llvm/test/CodeGen/PowerPC/aix-xcoff-textdisasembly.ll
@@ -0,0 +1,22 @@
+; 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
+
+define i32 @foo() #0 {
+entry:
+  ret i32 0
+}
+
+define i32 @foo1() #0 {
+entry:
+  ret i32 1
+}
+
+; CHECK:     Disassembly of section .text:{{[[:space:]] *}}
+; CHECK-NEXT:     00000000 .text:
+; CHECK-NEXT:        0: 38 60 00 00                   li 3, 0
+; CHECK-NEXT:        4: 4e 80 00 20                   blr
+; CHECK-NEXT:        8: 60 00 00 00                   nop
+; CHECK-NEXT:        c: 60 00 00 00                   nop
+; CHECK:     00000010 .foo1:
+; CHECK-NEXT:       10: 38 60 00 01                   li 3, 1
+; CHECK-NEXT:       14: 4e 80 00 20                   blr


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70719.232384.patch
Type: text/x-patch
Size: 979 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191205/615dabc0/attachment.bin>


More information about the llvm-commits mailing list