From fd4d29808efad739778caafa30765d83f82d99ba Mon Sep 17 00:00:00 2001 From: David Green Date: Sun, 19 Feb 2023 19:13:41 +0000 Subject: [PATCH] [ARM] Add targets for Arm DebugInfo tests. NFC This prevents the instructions being invalid for the subtarget. --- llvm/test/DebugInfo/ARM/cfi-eof-prologue.mir | 2 +- llvm/test/DebugInfo/MIR/ARM/call-site-info-vmovd.mir | 2 +- llvm/test/DebugInfo/MIR/ARM/call-site-info-vmovs.mir | 2 +- llvm/test/DebugInfo/MIR/ARM/dbgcall-site-interpretation.mir | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/test/DebugInfo/ARM/cfi-eof-prologue.mir b/llvm/test/DebugInfo/ARM/cfi-eof-prologue.mir index 3c962a5..e82a750 100644 --- a/llvm/test/DebugInfo/ARM/cfi-eof-prologue.mir +++ b/llvm/test/DebugInfo/ARM/cfi-eof-prologue.mir @@ -79,7 +79,7 @@ ; Function Attrs: nounwind declare void @llvm.stackprotector(i8*, i8**) #0 - attributes #0 = { nounwind } + attributes #0 = { nounwind "target-features"="+v8m" } attributes #1 = { nounwind readnone speculatable } attributes #2 = { nounwind readnone } diff --git a/llvm/test/DebugInfo/MIR/ARM/call-site-info-vmovd.mir b/llvm/test/DebugInfo/MIR/ARM/call-site-info-vmovd.mir index 8f7f789..e6a1e26 100644 --- a/llvm/test/DebugInfo/MIR/ARM/call-site-info-vmovd.mir +++ b/llvm/test/DebugInfo/MIR/ARM/call-site-info-vmovd.mir @@ -37,7 +37,7 @@ declare void @llvm.dbg.value(metadata, metadata, metadata) declare void @llvm.stackprotector(i8*, i8**) - attributes #0 = { "disable-tail-calls"="false" "frame-pointer"="all" } + attributes #0 = { "disable-tail-calls"="false" "frame-pointer"="all" "target-features"="+thumb-mode,+vfp2" } !llvm.dbg.cu = !{!0} !llvm.module.flags = !{!10, !11, !12, !13, !14} diff --git a/llvm/test/DebugInfo/MIR/ARM/call-site-info-vmovs.mir b/llvm/test/DebugInfo/MIR/ARM/call-site-info-vmovs.mir index e3f1031..8bfb0cd 100644 --- a/llvm/test/DebugInfo/MIR/ARM/call-site-info-vmovs.mir +++ b/llvm/test/DebugInfo/MIR/ARM/call-site-info-vmovs.mir @@ -31,7 +31,7 @@ declare void @llvm.dbg.value(metadata, metadata, metadata) declare void @llvm.stackprotector(i8*, i8**) - attributes #0 = { "disable-tail-calls"="false" "frame-pointer"="all" } + attributes #0 = { "disable-tail-calls"="false" "frame-pointer"="all" "target-features"="+thumb-mode,+vfp2" } !llvm.dbg.cu = !{!0} !llvm.module.flags = !{!10, !11, !12, !13, !14} diff --git a/llvm/test/DebugInfo/MIR/ARM/dbgcall-site-interpretation.mir b/llvm/test/DebugInfo/MIR/ARM/dbgcall-site-interpretation.mir index 2efb62d..0ba0b78 100644 --- a/llvm/test/DebugInfo/MIR/ARM/dbgcall-site-interpretation.mir +++ b/llvm/test/DebugInfo/MIR/ARM/dbgcall-site-interpretation.mir @@ -80,7 +80,7 @@ ; Function Attrs: nounwind declare void @llvm.stackprotector(i8*, i8**) - attributes #0 = { "frame-pointer"="all"} + attributes #0 = { "frame-pointer"="all" "target-features"="+armv7-a" } !llvm.dbg.cu = !{!0} !llvm.module.flags = !{!9, !10, !11, !12} -- 2.7.4