[X86][test] Use Min behavior for "cf-protection-{branch,return}" tests

The behavior does not match that much. Min is the new Clang codegen behavior
since D130065.
This commit is contained in:
Fangrui Song 2022-07-19 21:25:55 -07:00
parent 23ba688f02
commit ad94b5c54f
11 changed files with 15 additions and 15 deletions

View File

@ -14,4 +14,4 @@ entry:
!llvm.module.flags = !{!0}
attributes #0 = { "fentry-call"="true" }
!0 = !{i32 4, !"cf-protection-branch", i32 1}
!0 = !{i32 8, !"cf-protection-branch", i32 1}

View File

@ -31,6 +31,6 @@ entry:
!llvm.module.flags = !{!0, !1, !2, !3}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 4, !"cf-protection-return", i32 1}
!2 = !{i32 4, !"cf-protection-branch", i32 1}
!1 = !{i32 8, !"cf-protection-return", i32 1}
!2 = !{i32 8, !"cf-protection-branch", i32 1}
!3 = !{i32 1, !"Code Model", i32 4}

View File

@ -91,4 +91,4 @@ try.cont:
!llvm.module.flags = !{!0}
!0 = !{i32 4, !"cf-protection-branch", i32 1}
!0 = !{i32 8, !"cf-protection-branch", i32 1}

View File

@ -143,5 +143,5 @@ declare dso_local void @__cxa_end_catch()
!llvm.module.flags = !{!0, !1, !2}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 4, !"cf-protection-return", i32 1}
!2 = !{i32 4, !"cf-protection-branch", i32 1}
!1 = !{i32 8, !"cf-protection-return", i32 1}
!2 = !{i32 8, !"cf-protection-branch", i32 1}

View File

@ -72,5 +72,5 @@ attributes #1 = { returns_twice }
!llvm.module.flags = !{!0, !1, !2}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 4, !"cf-protection-return", i32 1}
!2 = !{i32 4, !"cf-protection-branch", i32 1}
!1 = !{i32 8, !"cf-protection-return", i32 1}
!2 = !{i32 8, !"cf-protection-branch", i32 1}

View File

@ -220,4 +220,4 @@ try.cont:
!llvm.module.flags = !{!0}
!0 = !{i32 4, !"cf-protection-branch", i32 1}
!0 = !{i32 8, !"cf-protection-branch", i32 1}

View File

@ -49,4 +49,4 @@ attributes #2 = { nocf_check }
!llvm.module.flags = !{!0}
!0 = !{i32 4, !"cf-protection-branch", i32 1}
!0 = !{i32 8, !"cf-protection-branch", i32 1}

View File

@ -29,5 +29,5 @@
!llvm.module.flags = !{!0, !1}
!0 = !{i32 4, !"cf-protection-return", i32 1}
!1 = !{i32 4, !"cf-protection-branch", i32 1}
!0 = !{i32 8, !"cf-protection-return", i32 1}
!1 = !{i32 8, !"cf-protection-branch", i32 1}

View File

@ -85,4 +85,4 @@ entry:
!llvm.module.flags = !{!0}
!0 = !{i32 4, !"cf-protection-branch", i32 1}
!0 = !{i32 8, !"cf-protection-branch", i32 1}

View File

@ -235,4 +235,4 @@ declare i32 @llvm.eh.sjlj.setjmp(ptr)
!llvm.module.flags = !{!0}
!0 = !{i32 4, !"cf-protection-return", i32 1}
!0 = !{i32 8, !"cf-protection-return", i32 1}

View File

@ -6,7 +6,7 @@
!llvm.module.flags = !{!0}
!0 = !{i32 4, !"cf-protection-return", i32 1}
!0 = !{i32 8, !"cf-protection-return", i32 1}
...
---
name: bar