[llvm] 845d83d - [test] Add --show-all-symbols to some llvm-objdump -d commands
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 27 19:33:56 PDT 2023
Author: Fangrui Song
Date: 2023-07-27T19:33:51-07:00
New Revision: 845d83d85fbcbcac09563c5c34b12a70a5cac465
URL: https://github.com/llvm/llvm-project/commit/845d83d85fbcbcac09563c5c34b12a70a5cac465
DIFF: https://github.com/llvm/llvm-project/commit/845d83d85fbcbcac09563c5c34b12a70a5cac465.diff
LOG: [test] Add --show-all-symbols to some llvm-objdump -d commands
llvm-objdump -d will be changed to not display mapping symbols by
default (D156190).
Add --show-all-symbols to make the intent clearer and prevent test
adjustment with the new behavior.
Added:
Modified:
llvm/test/CodeGen/AArch64/callbr-asm-obj-file.ll
llvm/test/CodeGen/AArch64/inlineasm-ldr-pseudo.ll
llvm/test/CodeGen/ARM/inlineasm-switch-mode-oneway-from-arm.ll
llvm/test/CodeGen/ARM/inlineasm-switch-mode-oneway-from-thumb.ll
llvm/test/CodeGen/ARM/inlineasm-switch-mode.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/AArch64/callbr-asm-obj-file.ll b/llvm/test/CodeGen/AArch64/callbr-asm-obj-file.ll
index 073429ea789027..94041bf00218ca 100644
--- a/llvm/test/CodeGen/AArch64/callbr-asm-obj-file.ll
+++ b/llvm/test/CodeGen/AArch64/callbr-asm-obj-file.ll
@@ -1,5 +1,5 @@
; RUN: llc < %s -mtriple=aarch64-unknown-linux-gnu -filetype=obj -o - \
-; RUN: | llvm-objdump --no-print-imm-hex --triple=aarch64-unknown-linux-gnu -d - \
+; RUN: | llvm-objdump --no-print-imm-hex --triple=aarch64-unknown-linux-gnu --show-all-symbols -d - \
; RUN: | FileCheck %s
%struct.c = type { ptr }
diff --git a/llvm/test/CodeGen/AArch64/inlineasm-ldr-pseudo.ll b/llvm/test/CodeGen/AArch64/inlineasm-ldr-pseudo.ll
index d0e2a772b060ce..f2b5e5f0064b7d 100644
--- a/llvm/test/CodeGen/AArch64/inlineasm-ldr-pseudo.ll
+++ b/llvm/test/CodeGen/AArch64/inlineasm-ldr-pseudo.ll
@@ -2,7 +2,7 @@
; assembly, the current code path will bypass the parser and just write the
; raw text out to the Streamer. We need to actually parse the inlineasm to
; demonstrate the bug. Going the asm->obj route does not show the issue.
-; RUN: llc -mtriple=aarch64 < %s -filetype=obj | llvm-objdump --no-print-imm-hex --arch=aarch64 -d - | FileCheck %s
+; RUN: llc -mtriple=aarch64 < %s -filetype=obj | llvm-objdump --no-print-imm-hex --show-all-symbols -d - | FileCheck %s
; CHECK-LABEL: <foo>:
; CHECK: d29579a0 mov x0, #43981
diff --git a/llvm/test/CodeGen/ARM/inlineasm-switch-mode-oneway-from-arm.ll b/llvm/test/CodeGen/ARM/inlineasm-switch-mode-oneway-from-arm.ll
index a98132cc5f0833..81931892db86cd 100644
--- a/llvm/test/CodeGen/ARM/inlineasm-switch-mode-oneway-from-arm.ll
+++ b/llvm/test/CodeGen/ARM/inlineasm-switch-mode-oneway-from-arm.ll
@@ -1,4 +1,4 @@
-;RUN: llc -mtriple=armv7-linux-gnueabi < %s | llvm-mc -triple=armv7-linux-gnueabi -filetype=obj | llvm-objdump --triple=armv7 -d - | FileCheck %s
+; RUN: llc -mtriple=armv7-linux-gnueabi < %s | llvm-mc -triple=armv7-linux-gnueabi -filetype=obj | llvm-objdump --show-all-symbols -d - | FileCheck %s
;RUN: llc -mtriple=armv7-linux-gnueabi < %s | FileCheck %s -check-prefix=ASM
;RUN: llc -mtriple=armv7-apple-darwin < %s | FileCheck %s -check-prefix=ASM
diff --git a/llvm/test/CodeGen/ARM/inlineasm-switch-mode-oneway-from-thumb.ll b/llvm/test/CodeGen/ARM/inlineasm-switch-mode-oneway-from-thumb.ll
index 3308d5f46478ec..f3a410c52d0764 100644
--- a/llvm/test/CodeGen/ARM/inlineasm-switch-mode-oneway-from-thumb.ll
+++ b/llvm/test/CodeGen/ARM/inlineasm-switch-mode-oneway-from-thumb.ll
@@ -1,4 +1,4 @@
-;RUN: llc -mtriple=thumbv7-linux-gnueabi < %s | llvm-mc -triple=thumbv7-linux-gnueabi -filetype=obj | llvm-objdump --no-print-imm-hex --triple=thumbv7 -d - | FileCheck %s
+; RUN: llc -mtriple=thumbv7-linux-gnueabi < %s | llvm-mc -triple=thumbv7-linux-gnueabi -filetype=obj | llvm-objdump --no-print-imm-hex --show-all-symbols -d - | FileCheck %s
;RUN: llc -mtriple=thumbv7-linux-gnueabi < %s | FileCheck %s -check-prefix=ASM
;RUN: llc -mtriple=thumbv7-apple-darwin < %s | FileCheck %s -check-prefix=ASM
diff --git a/llvm/test/CodeGen/ARM/inlineasm-switch-mode.ll b/llvm/test/CodeGen/ARM/inlineasm-switch-mode.ll
index c0148d7b353891..a4860f3553c0f4 100644
--- a/llvm/test/CodeGen/ARM/inlineasm-switch-mode.ll
+++ b/llvm/test/CodeGen/ARM/inlineasm-switch-mode.ll
@@ -1,4 +1,4 @@
-;RUN: llc -mtriple=thumbv7-linux-gnueabi < %s | llvm-mc -triple=thumbv7-linux-gnueabi -filetype=obj | llvm-objdump --no-print-imm-hex -d - | FileCheck %s
+; RUN: llc -mtriple=thumbv7-linux-gnueabi < %s | llvm-mc -triple=thumbv7-linux-gnueabi -filetype=obj | llvm-objdump --no-print-imm-hex --show-all-symbols -d - | FileCheck %s
define hidden i32 @bah(ptr %start) #0 align 2 {
%1 = ptrtoint ptr %start to i32
More information about the llvm-commits
mailing list