DiggerLin created this revision. DiggerLin added reviewers: jhenderson, daltenty, hubert.reinterpretcast. Herald added subscribers: ormris, steven_wu, hiraditya. Herald added a project: All. DiggerLin requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
since default object mode of llvm-nm is change to -X32 (from default -Xany) in patch https://reviews.llvm.org/D132494. the test cases using the llvm-nm also need to change based on the new feature on AIX OS. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D134284 Files: clang/test/CodeGen/thinlto-inline-asm2.c clang/test/CodeGen/thinlto-multi-module.ll clang/test/CodeGen/thinlto_backend.ll clang/test/InterfaceStubs/driver-test.c clang/test/InterfaceStubs/driver-test3.c clang/test/InterfaceStubs/externstatic.c clang/test/InterfaceStubs/function-template-specialization.cpp clang/test/InterfaceStubs/inline.c clang/test/InterfaceStubs/template-namespace-function.cpp clang/test/InterfaceStubs/weak.cpp
Index: clang/test/InterfaceStubs/weak.cpp =================================================================== --- clang/test/InterfaceStubs/weak.cpp +++ clang/test/InterfaceStubs/weak.cpp @@ -3,7 +3,7 @@ // RUN: -interface-stub-version=ifs-v1 %s | \ // RUN: FileCheck %s -// RUN: %clang -target x86_64-unknown-linux-gnu -o - -c %s | llvm-nm - 2>&1 | \ +// RUN: %clang -target x86_64-unknown-linux-gnu -o - -c %s | llvm-nm -Xany - 2>&1 | \ // RUN: FileCheck -check-prefix=CHECK-SYMBOLS %s // CHECK: Symbols: Index: clang/test/InterfaceStubs/template-namespace-function.cpp =================================================================== --- clang/test/InterfaceStubs/template-namespace-function.cpp +++ clang/test/InterfaceStubs/template-namespace-function.cpp @@ -2,7 +2,7 @@ // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -o - -emit-interface-stubs %s | \ // RUN: FileCheck %s -// RUN: %clang -target x86_64-unknown-linux-gnu -o - -c %s | llvm-nm - 2>&1 | \ +// RUN: %clang -target x86_64-unknown-linux-gnu -o - -c %s | llvm-nm -Xany - 2>&1 | \ // RUN: FileCheck -check-prefix=CHECK-SYMBOLS %s // CHECK: Symbols: Index: clang/test/InterfaceStubs/inline.c =================================================================== --- clang/test/InterfaceStubs/inline.c +++ clang/test/InterfaceStubs/inline.c @@ -3,33 +3,33 @@ // RUN: -emit-interface-stubs -std=gnu89 -xc %s | \ // RUN: FileCheck -check-prefix=CHECK-GNU %s // RUN: %clang -DINLINE=inline -target x86_64-linux-gnu -O0 -o - -c \ -// RUN: -std=gnu89 -xc %s | llvm-nm - | FileCheck -check-prefix=CHECK-GNU %s +// RUN: -std=gnu89 -xc %s | llvm-nm -Xany - | FileCheck -check-prefix=CHECK-GNU %s // RUN: %clang_cc1 -DINLINE="__attribute__((always_inline))" \ // RUN: -triple x86_64-unknown-linux-gnu -o - -emit-interface-stubs -xc %s | \ // RUN: FileCheck -check-prefix=CHECK-GNU %s // RUN: %clang -DINLINE="__attribute__((always_inline))" \ // RUN: -target x86_64-linux-gnu -O0 -o - -c -xc %s | \ -// RUN: llvm-nm - | FileCheck -check-prefix=CHECK-GNU %s +// RUN: llvm-nm -Xany - | FileCheck -check-prefix=CHECK-GNU %s // RUN: %clang_cc1 -DINLINE=inline -triple x86_64-unknown-linux-gnu -o - \ // RUN: -emit-interface-stubs -std=c99 -xc %s | \ // RUN: FileCheck -check-prefix=CHECK-STD %s // RUN: %clang -DINLINE=inline -target x86_64-linux-gnu -O0 -o - -c -std=c99 \ -// RUN: -xc %s | llvm-nm - 2>&1 | count 0 +// RUN: -xc %s | llvm-nm -Xany - 2>&1 | count 0 // RUN: %clang_cc1 -DINLINE="__attribute__((noinline))" \ // RUN: -triple x86_64-unknown-linux-gnu -o - -emit-interface-stubs -std=c99 -xc %s | \ // RUN: FileCheck -check-prefix=CHECK-NOINLINE %s // RUN: %clang -DINLINE="__attribute__((noinline))" -target x86_64-linux-gnu \ -// RUN: -O0 -o - -c -std=c99 -xc %s | llvm-nm - 2>&1 | \ +// RUN: -O0 -o - -c -std=c99 -xc %s | llvm-nm -Xany - 2>&1 | \ // RUN: FileCheck -check-prefix=CHECK-NOINLINE %s // RUN: %clang_cc1 -DINLINE="static" -triple x86_64-unknown-linux-gnu -o - \ // RUN: -emit-interface-stubs -std=c99 -xc %s | \ // RUN: FileCheck -check-prefix=CHECK-STATIC %s // RUN: %clang -DINLINE="static" -target x86_64-linux-gnu -O0 -o - -c \ -// RUN: -std=c99 -xc %s | llvm-nm - 2>&1 | count 0 +// RUN: -std=c99 -xc %s | llvm-nm -Xany - 2>&1 | count 0 // CHECK-GNU-DAG: foo // CHECK-GNU-DAG: foo.var @@ -52,7 +52,7 @@ // RUN: -emit-interface-stubs \ // RUN: -std=gnu89 -xc %s | FileCheck -check-prefix=CHECK-SYMBOLS %s // RUN: %clang -DINLINE=inline -target x86_64-linux-gnu -o - \ -// RUN: -c -std=gnu89 -xc %s | llvm-nm - 2>&1 | \ +// RUN: -c -std=gnu89 -xc %s | llvm-nm -Xany - 2>&1 | \ // RUN: FileCheck -check-prefix=CHECK-SYMBOLS %s // CHECK-TAPI-DAG: foo", Type: Func } Index: clang/test/InterfaceStubs/function-template-specialization.cpp =================================================================== --- clang/test/InterfaceStubs/function-template-specialization.cpp +++ clang/test/InterfaceStubs/function-template-specialization.cpp @@ -10,14 +10,14 @@ // RUN: -DSPECIALIZE_TEMPLATE_FUNCTION=1 %s | \ // RUN: FileCheck -check-prefix=CHECK-SPECIALIZES-TEMPLATE-FUNCTION %s -// RUN: %clang -target x86_64-unknown-linux-gnu -o - -c %s | llvm-nm - 2>&1 | count 0 +// RUN: %clang -target x86_64-unknown-linux-gnu -o - -c %s | llvm-nm -Xany - 2>&1 | count 0 // RUN: %clang -target x86_64-unknown-linux-gnu -o - -c \ -// RUN: -DUSE_TEMPLATE_FUNCTION=1 %s | llvm-nm - 2>&1 | \ +// RUN: -DUSE_TEMPLATE_FUNCTION=1 %s | llvm-nm -Xany - 2>&1 | \ // RUN: FileCheck -check-prefix=CHECK-USES-TEMPLATE-FUNCTION %s // RUN: %clang -target x86_64-unknown-linux-gnu -o - -c \ -// RUN: -DSPECIALIZE_TEMPLATE_FUNCTION=1 %s | llvm-nm - 2>&1 | \ +// RUN: -DSPECIALIZE_TEMPLATE_FUNCTION=1 %s | llvm-nm -Xany - 2>&1 | \ // RUN: FileCheck -check-prefix=CHECK-SPECIALIZES-TEMPLATE-FUNCTION %s // CHECK-NOT: _Z16templateFunctionIiET_S0_ Index: clang/test/InterfaceStubs/externstatic.c =================================================================== --- clang/test/InterfaceStubs/externstatic.c +++ clang/test/InterfaceStubs/externstatic.c @@ -3,19 +3,19 @@ // RUN: FileCheck -check-prefix=CHECK-EXTERN %s // RUN: %clang -cc1 -triple x86_64 -fvisibility default -DSTORAGE=extern -O0 -o - -emit-obj -std=c99 \ -// RUN: %s | llvm-nm - 2>&1 | FileCheck -check-prefix=CHECK-EXTERN %s +// RUN: %s | llvm-nm -Xany - 2>&1 | FileCheck -check-prefix=CHECK-EXTERN %s // RUN: %clang -cc1 -fvisibility default -DSTORAGE="extern" -o - -emit-interface-stubs -std=c99 -xc %s | \ // RUN: FileCheck -check-prefix=CHECK-EXTERN2 %s // RUN: %clang -cc1 -triple x86_64 -fvisibility default -DSTORAGE=extern -O0 -o - -emit-obj -std=c99 \ -// RUN: %s | llvm-nm - 2>&1 | FileCheck -check-prefix=CHECK-EXTERN2 %s +// RUN: %s | llvm-nm -Xany - 2>&1 | FileCheck -check-prefix=CHECK-EXTERN2 %s // RUN: %clang -cc1 -fvisibility default -DSTORAGE="static" -o - -emit-interface-stubs -std=c99 -xc %s | \ // RUN: FileCheck -check-prefix=CHECK-STATIC %s // RUN: %clang -cc1 -triple x86_64 -fvisibility default -DSTORAGE=static -O0 -o - -emit-obj -std=c99 \ -// RUN: %s | llvm-nm - 2>&1 | count 0 +// RUN: %s | llvm-nm -Xany - 2>&1 | count 0 // CHECK-EXTERN-NOT: foo // CHECK-STATIC-NOT: foo Index: clang/test/InterfaceStubs/driver-test3.c =================================================================== --- clang/test/InterfaceStubs/driver-test3.c +++ clang/test/InterfaceStubs/driver-test3.c @@ -3,7 +3,7 @@ // RUN: mkdir -p %t; cd %t // RUN: %clang -target x86_64-unknown-linux-gnu -c -emit-interface-stubs %s -o %t/driver-test3.o -// RUN: llvm-nm %t/driver-test3.o | FileCheck --check-prefix=CHECK-OBJ %s +// RUN: llvm-nm -Xany %t/driver-test3.o | FileCheck --check-prefix=CHECK-OBJ %s // RUN: cat %t/driver-test3.ifs | FileCheck --check-prefix=CHECK-IFS %s // CHECK-OBJ: bar Index: clang/test/InterfaceStubs/driver-test.c =================================================================== --- clang/test/InterfaceStubs/driver-test.c +++ clang/test/InterfaceStubs/driver-test.c @@ -12,7 +12,7 @@ // RUN: %clang -target x86_64-unknown-linux-gnu -x c -S \ // RUN: -fno-integrated-cc1 \ // RUN: -emit-interface-stubs %s %S/object.c %S/weak.cpp && \ -// RUN: llvm-nm -D %t/a.out.ifso 2>&1 | FileCheck --check-prefix=CHECK-IFS %s +// RUN: llvm-nm -Xany -D %t/a.out.ifso 2>&1 | FileCheck --check-prefix=CHECK-IFS %s // CHECK-IFS-DAG: data // CHECK-IFS-DAG: foo Index: clang/test/CodeGen/thinlto_backend.ll =================================================================== --- clang/test/CodeGen/thinlto_backend.ll +++ clang/test/CodeGen/thinlto_backend.ll @@ -16,7 +16,7 @@ ; would not import f2 ; RUN: touch %t4.thinlto.bc ; RUN: %clang -target x86_64-unknown-linux-gnu -O2 -o %t4.o -x ir %t1.o -c -fthinlto-index=%t4.thinlto.bc -; RUN: llvm-nm %t4.o | FileCheck --check-prefix=CHECK-OBJ-IGNORE-EMPTY %s +; RUN: llvm-nm -Xany %t4.o | FileCheck --check-prefix=CHECK-OBJ-IGNORE-EMPTY %s ; CHECK-OBJ-IGNORE-EMPTY: T f1 ; CHECK-OBJ-IGNORE-EMPTY: U f2 @@ -24,7 +24,7 @@ ; be empty file. ; RUN: opt -o %t5.o %s ; RUN: %clang -target x86_64-unknown-linux-gnu -O2 -o %t4.o -x ir %t5.o -c -fthinlto-index=%t.thinlto.bc -; RUN: llvm-nm %t4.o 2>&1 | count 0 +; RUN: llvm-nm -Xany %t4.o 2>&1 | count 0 ; Ensure f2 was imported. Check for all 3 flavors of -save-temps[=cwd|obj]. ; RUN: %clang -target x86_64-unknown-linux-gnu -O2 -o %t3.o -x ir %t1.o -c -fthinlto-index=%t.thinlto.bc -save-temps=obj @@ -40,7 +40,7 @@ ; RUN: cd ../.. ; RUN: llvm-dis %T/dir2/*1.s.3.import.bc -o - | FileCheck --check-prefix=CHECK-IMPORT %s ; CHECK-IMPORT: define available_externally void @f2() -; RUN: llvm-nm %t3.o | FileCheck --check-prefix=CHECK-OBJ %s +; RUN: llvm-nm -Xany %t3.o | FileCheck --check-prefix=CHECK-OBJ %s ; CHECK-OBJ: T f1 ; CHECK-OBJ-NOT: U f2 Index: clang/test/CodeGen/thinlto-multi-module.ll =================================================================== --- clang/test/CodeGen/thinlto-multi-module.ll +++ clang/test/CodeGen/thinlto-multi-module.ll @@ -7,7 +7,7 @@ ; RUN: llvm-cat -b -o %t1cat.o %t2.o %t1.o ; RUN: cp %t1cat.o %t1.o ; RUN: %clang -target x86_64-unknown-linux-gnu -O2 -o %t3.o -x ir %t1.o -c -fthinlto-index=%t.thinlto.bc -; RUN: llvm-nm %t3.o | FileCheck --check-prefix=CHECK-OBJ %s +; RUN: llvm-nm -Xany %t3.o | FileCheck --check-prefix=CHECK-OBJ %s ; CHECK-OBJ: T f1 ; CHECK-OBJ: U f2 Index: clang/test/CodeGen/thinlto-inline-asm2.c =================================================================== --- clang/test/CodeGen/thinlto-inline-asm2.c +++ clang/test/CodeGen/thinlto-inline-asm2.c @@ -3,7 +3,7 @@ // RUN: split-file %s %t // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -flto=thin -emit-llvm-bc %t/a.c -o %t/a.bc // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -flto=thin -emit-llvm-bc %t/b.c -o %t/b.bc -// RUN: llvm-nm %t/a.bc | FileCheck %s --check-prefix=NM +// RUN: llvm-nm -Xany %t/a.bc | FileCheck %s --check-prefix=NM // RUN: llvm-lto2 run -lto-opaque-pointers %t/a.bc %t/b.bc -o %t/out -save-temps -r=%t/a.bc,ref,plx -r=%t/b.bc,ff_h264_cabac_tables,pl // RUN: llvm-dis < %t/out.2.2.internalize.bc | FileCheck %s
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits