diff --git a/llvm/test/MC/ELF/cfi-version.ll b/llvm/test/MC/ELF/cfi-version.ll --- 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 --- a/llvm/test/lit.cfg.py +++ b/llvm/test/lit.cfg.py @@ -370,8 +370,8 @@ 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: