-# RUN: llvm-readobj --file-header %p/Inputs/xcoff-basic.o | \
+# RUN: llvm-readobj --file-header %p/Inputs/basic.o | \
# RUN: FileCheck --check-prefix=FILEHEADER %s
#
-# RUN: llvm-readobj --file-header %p/Inputs/xcoff-basic-64.o | \
+# RUN: llvm-readobj --file-header %p/Inputs/basic64.o | \
# RUN: FileCheck --check-prefix=FILEHEADER64 %s
-# RUN: llvm-readobj --file-header %p/Inputs/xcoff-basic-neg-time.o | \
+# RUN: llvm-readobj --file-header %p/Inputs/basic-neg-time.o | \
# RUN: FileCheck --check-prefix=NEGTIME %s
-# RUN: llvm-readobj --file-header %p/Inputs/xcoff-basic-neg-sym-count.o | \
+# RUN: llvm-readobj --file-header %p/Inputs/basic-neg-sym-count.o | \
# RUN: FileCheck --check-prefix=NEGSYMCOUNT %s
-# RUN: llvm-readobj --relocs --expand-relocs %p/Inputs/xcoff-basic.o | \
+# RUN: llvm-readobj --relocs --expand-relocs %p/Inputs/basic.o | \
# RUN: FileCheck --check-prefix=RELOCSEXP %s
-# FILEHEADER: File: {{.*}}xcoff-basic.o
+# FILEHEADER: File: {{.*}}basic.o
# FILEHEADER-NEXT: Format: aixcoff-rs6000
# FILEHEADER-NEXT: Arch: powerpc
# FILEHEADER-NEXT: AddressSize: 32bit
# FILEHEADER-NEXT: Flags: 0x0
# FILEHEADER-NEXT: }
-# FILEHEADER64: File: {{.*}}xcoff-basic-64.o
+# FILEHEADER64: File: {{.*}}basic64.o
# FILEHEADER64-NEXT: Format: aix5coff64-rs6000
# FILEHEADER64-NEXT: Arch: powerpc64
# FILEHEADER64-NEXT: AddressSize: 64bit
# FILEHEADER64-NEXT: Flags: 0x0
# FILEHEADER64-NEXT: }
-# NEGTIME: File: {{.*}}xcoff-basic-neg-time.o
+# NEGTIME: File: {{.*}}basic-neg-time.o
# NEGTIME-NEXT: Format: aixcoff-rs6000
# NEGTIME-NEXT: Arch: powerpc
# NEGTIME-NEXT: AddressSize: 32bit
# NEGTIME-NEXT: Flags: 0x0
# NEGTIME-NEXT: }
-# NEGSYMCOUNT: File: {{.*}}xcoff-basic-neg-sym-count.o
+# NEGSYMCOUNT: File: {{.*}}basic-neg-sym-count.o
# NEGSYMCOUNT-NEXT: Format: aixcoff-rs6000
# NEGSYMCOUNT-NEXT: Arch: powerpc
# NEGSYMCOUNT-NEXT: AddressSize: 32bit
# xcoff-basic-neg-sym-count.o was stripped using the 'strip' utility, and
# manually edited to have a negative symbol table entry count.
-# RELOCSEXP: File: {{.*}}xcoff-basic.o
+# RELOCSEXP: File: {{.*}}basic.o
# RELOCSEXP-NEXT: Format: aixcoff-rs6000
# RELOCSEXP-NEXT: Arch: powerpc
# RELOCSEXP-NEXT: AddressSize: 32bit
-# RUN: llvm-readobj --sections %p/Inputs/xcoff-reloc-overflow.o | \
+# RUN: llvm-readobj --sections %p/Inputs/reloc-overflow.o | \
# RUN: FileCheck --check-prefix=SECOVERFLOW %s
-# SECOVERFLOW: File: {{.*}}xcoff-reloc-overflow.o
+# SECOVERFLOW: File: {{.*}}reloc-overflow.o
# SECOVERFLOW-NEXT: Format: aixcoff-rs6000
# SECOVERFLOW-NEXT: Arch: powerpc
# SECOVERFLOW-NEXT: AddressSize: 32bit
-# RUN: llvm-readobj --sections %p/Inputs/xcoff-reloc-overflow.o | \
+# RUN: llvm-readobj --sections %p/Inputs/reloc-overflow.o | \
# RUN: FileCheck --check-prefix=SECOVERFLOW %s
-# RUN: llvm-readobj --relocs --expand-relocs %p/Inputs/xcoff-reloc-overflow.o | \
+# RUN: llvm-readobj --relocs --expand-relocs %p/Inputs/reloc-overflow.o | \
# RUN: FileCheck --check-prefix=RELOCOVERFLOW %s
-# SECOVERFLOW: File: {{.*}}xcoff-reloc-overflow.o
+# SECOVERFLOW: File: {{.*}}reloc-overflow.o
# SECOVERFLOW-NEXT: Format: aixcoff-rs6000
# SECOVERFLOW-NEXT: Arch: powerpc
# SECOVERFLOW-NEXT: AddressSize: 32bit
-# RUN: llvm-readobj --section-headers %p/Inputs/xcoff-basic.o | \
+# RUN: llvm-readobj --section-headers %p/Inputs/basic.o | \
# RUN: FileCheck --check-prefix=SEC32 %s
-# RUN: llvm-readobj --section-headers %p/Inputs/xcoff-basic-64.o | \
+# RUN: llvm-readobj --section-headers %p/Inputs/basic64.o | \
# RUN: FileCheck --check-prefix=SEC64 %s
-# SEC32: File: {{.*}}xcoff-basic.o
+# SEC32: File: {{.*}}basic.o
# SEC32-NEXT: Format: aixcoff-rs6000
# SEC32-NEXT: Arch: powerpc
# SEC32-NEXT: AddressSize: 32bit
# SEC32-NEXT: ]
-# SEC64: File: {{.*}}xcoff-basic-64.o
+# SEC64: File: {{.*}}basic64.o
# SEC64-NEXT: Format: aix5coff64-rs6000
# SEC64-NEXT: Arch: powerpc64
# SEC64-NEXT: AddressSize: 64bit
# This file tests the ability of llvm-readobj to display the symbol table for a
# 32-bit XCOFF object file.
-RUN: llvm-readobj --symbols %p/Inputs/aix_xcoff_xlc_test8.o | \
+# The object file used is generated by the following source file
+# and command on AIX:
+#
+# > cat test8.c
+#
+# extern int i;
+# extern int TestforXcoff;
+# extern int fun(int i);
+# static int static_i;
+# char* p="abcd";
+# int fun1(int j) {
+# static_i++;
+# j++;
+# j=j+*p;
+# return j;
+# }
+#
+# int main() {
+# i++;
+# fun(i);
+# return fun1(i);
+# }
+#
+# > xlc -c test8.c -o symbol.o
+
+RUN: llvm-readobj --symbols %p/Inputs/symbol.o | \
RUN: FileCheck --check-prefix=SYMBOL32 %s
-SYMBOL32: File: {{.*}}aix_xcoff_xlc_test8.o
+SYMBOL32: File: {{.*}}symbol.o
SYMBOL32-NEXT: Format: aixcoff-rs6000
SYMBOL32-NEXT: Arch: powerpc
SYMBOL32-NEXT: AddressSize: 32bit
SYMBOL32-NEXT: }
SYMBOL32-NEXT: }
SYMBOL32-NEXT: ]
-
-# The object file used is generated by the following source file
-# and command on AIX:
-#
-# > cat test8.c
-#
-# extern int i;
-# extern int TestforXcoff;
-# extern int fun(int i);
-# static int static_i;
-# char* p="abcd";
-# int fun1(int j) {
-# static_i++;
-# j++;
-# j=j+*p;
-# return j;
-# }
-#
-# int main() {
-# i++;
-# fun(i);
-# return fun1(i);
-# }
-#
-# > xlc -c test8.c -o aix_xcoff_xlc_test8.o