1; REQUIRES: plugins 2; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t-notype -bugpoint-crashmetadata -silence-passes > /dev/null 3; RUN: llvm-dis %t-notype-reduced-simplified.bc -o - | FileCheck %s 4; 5; Make sure BugPoint retains metadata contributing to a crash. 6 7; CHECK-LABEL: define void @test2(float %f) { 8; CHECK-NEXT: %arg = fadd float %f, 1.000000e+01 9; CHECK-NOT: !fpmath 10; CHECK-NEXT: %x = call float @llvm.fabs.f32(float %arg), !fpmath [[FPMATH:![0-9]+]] 11; CHECK-NEXT: ret void 12 13; CHECK: [[FPMATH]] = !{float 2.500000e+00} 14define void @test2(float %f) { 15 %arg = fadd float %f, 1.000000e+01, !fpmath !0 16 %x = call float @llvm.fabs.f32(float %arg), !fpmath !0 17 ret void 18} 19 20declare float @llvm.fabs.f32(float) 21 22!0 = !{float 2.500000e+00} 23