2021-04-28 01:36:45 +02:00
|
|
|
; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -bugpoint-crashfuncattr -silence-passes
|
2019-05-17 22:42:52 +02:00
|
|
|
; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck -check-prefixes=ALL,ENABLED %s
|
2021-04-28 01:36:45 +02:00
|
|
|
; RUN: bugpoint -disable-attribute-remove -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t -bugpoint-crashfuncattr -silence-passes
|
2019-05-17 22:42:52 +02:00
|
|
|
; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck -check-prefixes=ALL,DISABLED %s
|
|
|
|
|
2019-05-17 08:41:04 +02:00
|
|
|
; REQUIRES: plugins
|
2018-12-19 04:42:19 +01:00
|
|
|
|
2019-05-17 22:42:52 +02:00
|
|
|
; ALL: f() #[[ATTRS:[0-9]+]]
|
2018-12-19 04:42:19 +01:00
|
|
|
define void @f() #0 {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2019-05-17 22:42:52 +02:00
|
|
|
; ENABLED: attributes #[[ATTRS]] = { "bugpoint-crash" }
|
2019-12-25 01:02:47 +01:00
|
|
|
; DISABLED: attributes #[[ATTRS]] = { noinline "bugpoint-crash" "frame-pointer"="non-leaf" }
|
|
|
|
attributes #0 = { noinline "bugpoint-crash" "frame-pointer"="non-leaf" }
|