[llvm] 6f8c434 - [llvm][MC] Disable cfi-version test for Windows on Arm

David Spickett via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 4 04:18:16 PDT 2021


Author: David Spickett
Date: 2021-08-04T11:18:05Z
New Revision: 6f8c4340c2bafd7440b3c264a7977ce3cc17c465

URL: https://github.com/llvm/llvm-project/commit/6f8c4340c2bafd7440b3c264a7977ce3cc17c465
DIFF: https://github.com/llvm/llvm-project/commit/6f8c4340c2bafd7440b3c264a7977ce3cc17c465.diff

LOG: [llvm][MC] Disable cfi-version test for Windows on Arm

Like Windows on x86-64, Windows on arm64 uses structured
exception handling, so we don't emit .debug_frame.

See:
https://docs.microsoft.com/en-us/cpp/build/arm64-exception-handling?view=msvc-160

Reviewed By: ostannard

Differential Revision: https://reviews.llvm.org/D107440

Added: 
    

Modified: 
    llvm/test/MC/ELF/cfi-version.ll
    llvm/test/lit.cfg.py

Removed: 
    


################################################################################
diff  --git a/llvm/test/MC/ELF/cfi-version.ll b/llvm/test/MC/ELF/cfi-version.ll
index 753ca80848a2d..ff4675a65e536 100644
--- a/llvm/test/MC/ELF/cfi-version.ll
+++ b/llvm/test/MC/ELF/cfi-version.ll
@@ -6,7 +6,7 @@
 ; PR46647
 ; XFAIL: arm64-apple
 
-; .debug_frame is not emitted for targeting Windows x64.
+; .debug_frame is not emitted for targeting Windows x64 or arm64.
 ; REQUIRES: debug_frame
 ; REQUIRES: default_triple
 

diff  --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py
index 5fb04c80eafd1..6378cfcd3c18b 100644
--- a/llvm/test/lit.cfg.py
+++ b/llvm/test/lit.cfg.py
@@ -370,8 +370,8 @@ def have_ld64_plugin_support():
         if 'hw.optional.fma: 1' in result:
             config.available_features.add('fma3')
 
-# .debug_frame is not emitted for targeting Windows x64.
-if not re.match(r'^x86_64.*-(windows-gnu|windows-msvc)', config.target_triple):
+# .debug_frame is not emitted for targeting Windows x64 or arm64.
+if not re.match(r'^(x86_64|arm64).*-(windows-gnu|windows-msvc)', config.target_triple):
     config.available_features.add('debug_frame')
 
 if config.have_libxar:


        


More information about the llvm-commits mailing list