mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
1a6d5eb0da
As a follow on to D96282, since bug point passes is built as a module the proper file extension to use is LLVM_PLUGIN_EXT, rather than SHLIBEXT. Using SHLIBEXT causes the tests to load a non-existent file on AIX. We also adjust the PluginsTest unittest to use LLVM_PLUGIN_EXT for similar reasons. This change should hopefully make little difference to other platforms, since generally `SHLIBEXT=LTDL_SHLIB_EXT=CMAKE_SHARED_LIBRARY_SUFFIX` and `LLVM_PLUGIN_EXT=CMAKE_SHARED_LIBRARY_SUFFIX` on every platform except AIX. Reviewed By: hubert.reinterpretcast Differential Revision: https://reviews.llvm.org/D101412
23 lines
785 B
LLVM
23 lines
785 B
LLVM
; REQUIRES: plugins
|
|
; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%pluginext %s -output-prefix %t-notype -bugpoint-crashmetadata -silence-passes > /dev/null
|
|
; RUN: llvm-dis %t-notype-reduced-simplified.bc -o - | FileCheck %s
|
|
;
|
|
; Make sure BugPoint retains metadata contributing to a crash.
|
|
|
|
; CHECK-LABEL: define void @test2(float %f) {
|
|
; CHECK-NEXT: %arg = fadd float %f, 1.000000e+01
|
|
; CHECK-NOT: !fpmath
|
|
; CHECK-NEXT: %x = call float @llvm.fabs.f32(float %arg), !fpmath [[FPMATH:![0-9]+]]
|
|
; CHECK-NEXT: ret void
|
|
|
|
; CHECK: [[FPMATH]] = !{float 2.500000e+00}
|
|
define void @test2(float %f) {
|
|
%arg = fadd float %f, 1.000000e+01, !fpmath !0
|
|
%x = call float @llvm.fabs.f32(float %arg), !fpmath !0
|
|
ret void
|
|
}
|
|
|
|
declare float @llvm.fabs.f32(float)
|
|
|
|
!0 = !{float 2.500000e+00}
|