[ARM] Add targets for Arm DebugInfo tests. NFC
authorDavid Green <david.green@arm.com>
Sun, 19 Feb 2023 19:13:41 +0000 (19:13 +0000)
committerDavid Green <david.green@arm.com>
Sun, 19 Feb 2023 19:13:41 +0000 (19:13 +0000)
This prevents the instructions being invalid for the subtarget.

llvm/test/DebugInfo/ARM/cfi-eof-prologue.mir
llvm/test/DebugInfo/MIR/ARM/call-site-info-vmovd.mir
llvm/test/DebugInfo/MIR/ARM/call-site-info-vmovs.mir
llvm/test/DebugInfo/MIR/ARM/dbgcall-site-interpretation.mir

index 3c962a5..e82a750 100644 (file)
@@ -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 }
 
index 8f7f789..e6a1e26 100644 (file)
@@ -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}
index e3f1031..8bfb0cd 100644 (file)
@@ -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}
index 2efb62d..0ba0b78 100644 (file)
@@ -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}