[llvm-branch-commits] [llvm] 8c85aae - [MC][test] Reorganize .cfi_* tests
Fangrui Song via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Dec 21 17:22:34 PST 2020
Author: Fangrui Song
Date: 2020-12-21T17:18:28-08:00
New Revision: 8c85aae6c5b282eee1f58e67334e809016f04776
URL: https://github.com/llvm/llvm-project/commit/8c85aae6c5b282eee1f58e67334e809016f04776
DIFF: https://github.com/llvm/llvm-project/commit/8c85aae6c5b282eee1f58e67334e809016f04776.diff
LOG: [MC][test] Reorganize .cfi_* tests
Delete tests which are covered by others.
Added:
llvm/test/MC/ELF/cfi-fde-encoding.s
llvm/test/MC/ELF/cfi-return-column.s
llvm/test/MC/ELF/cfi-scope-errors.s
llvm/test/MC/ELF/cfi-scope-errors2.s
llvm/test/MC/ELF/expand-var.s
llvm/test/MC/X86/cfi_offset-eip.s
llvm/test/MC/X86/compact-unwind-cfi_def_cfa.s
Modified:
Removed:
llvm/test/MC/ELF/fde.s
llvm/test/MC/X86/cfi-open-within-another-crash.s
llvm/test/MC/X86/cfi-scope-errors.s
llvm/test/MC/X86/cfi_def_cfa-crash.s
llvm/test/MC/X86/expand-var.s
llvm/test/MC/X86/fde-reloc.s
llvm/test/MC/X86/pr38826.s
llvm/test/MC/X86/return-column.s
################################################################################
diff --git a/llvm/test/MC/ELF/fde.s b/llvm/test/MC/ELF/cfi-fde-encoding.s
similarity index 100%
rename from llvm/test/MC/ELF/fde.s
rename to llvm/test/MC/ELF/cfi-fde-encoding.s
diff --git a/llvm/test/MC/X86/return-column.s b/llvm/test/MC/ELF/cfi-return-column.s
similarity index 100%
rename from llvm/test/MC/X86/return-column.s
rename to llvm/test/MC/ELF/cfi-return-column.s
diff --git a/llvm/test/MC/X86/cfi-scope-errors.s b/llvm/test/MC/ELF/cfi-scope-errors.s
similarity index 100%
rename from llvm/test/MC/X86/cfi-scope-errors.s
rename to llvm/test/MC/ELF/cfi-scope-errors.s
diff --git a/llvm/test/MC/X86/cfi-open-within-another-crash.s b/llvm/test/MC/ELF/cfi-scope-errors2.s
similarity index 87%
rename from llvm/test/MC/X86/cfi-open-within-another-crash.s
rename to llvm/test/MC/ELF/cfi-scope-errors2.s
index 6ec5338f54b4..d29c05636d0d 100644
--- a/llvm/test/MC/X86/cfi-open-within-another-crash.s
+++ b/llvm/test/MC/ELF/cfi-scope-errors2.s
@@ -4,15 +4,10 @@
# RUN: not llvm-mc %s -filetype=obj -triple=x86_64-unknown-linux -o /dev/null 2>&1 | FileCheck %s
.text
-.globl proc_one
-proc_one:
.cfi_startproc
-
+
.text
-.globl proc_two
-proc_two:
.cfi_startproc
# CHECK: [[#@LINE]]:1: error: starting new .cfi frame before finishing the previous one
.cfi_endproc
-
diff --git a/llvm/test/MC/X86/expand-var.s b/llvm/test/MC/ELF/expand-var.s
similarity index 100%
rename from llvm/test/MC/X86/expand-var.s
rename to llvm/test/MC/ELF/expand-var.s
diff --git a/llvm/test/MC/X86/pr38826.s b/llvm/test/MC/X86/cfi_offset-eip.s
similarity index 100%
rename from llvm/test/MC/X86/pr38826.s
rename to llvm/test/MC/X86/cfi_offset-eip.s
diff --git a/llvm/test/MC/X86/cfi_def_cfa-crash.s b/llvm/test/MC/X86/compact-unwind-cfi_def_cfa.s
similarity index 100%
rename from llvm/test/MC/X86/cfi_def_cfa-crash.s
rename to llvm/test/MC/X86/compact-unwind-cfi_def_cfa.s
diff --git a/llvm/test/MC/X86/fde-reloc.s b/llvm/test/MC/X86/fde-reloc.s
deleted file mode 100644
index 63ac97662188..000000000000
--- a/llvm/test/MC/X86/fde-reloc.s
+++ /dev/null
@@ -1,11 +0,0 @@
-// RUN: llvm-mc -filetype=obj %s -o - -triple x86_64-pc-linux | llvm-objdump -r - | FileCheck --check-prefix=X86-64 %s
-// RUN: llvm-mc -filetype=obj %s -o - -triple i686-pc-linux | llvm-objdump -r - | FileCheck --check-prefix=I686 %s
-
-// PR15448
-
-func:
- .cfi_startproc
- .cfi_endproc
-
-// X86-64: R_X86_64_PC32
-// I686: R_386_PC32
More information about the llvm-branch-commits
mailing list