@@ -601,46 +601,6 @@ define i32 @test_no-signed-zeros-fp-math3(i32 %i) "no-signed-zeros-fp-math"="tru
601601; CHECK-NEXT: ret i32
602602}
603603
604- define i32 @unsafe-fp-math_callee0 (i32 %i ) "unsafe-fp-math" ="false" {
605- ret i32 %i
606- ; CHECK: @unsafe-fp-math_callee0(i32 %i) [[UNSAFE_FPMATH_FALSE:#[0-9]+]] {
607- ; CHECK-NEXT: ret i32
608- }
609-
610- define i32 @unsafe-fp-math_callee1 (i32 %i ) "unsafe-fp-math" ="true" {
611- ret i32 %i
612- ; CHECK: @unsafe-fp-math_callee1(i32 %i) [[UNSAFE_FPMATH_TRUE:#[0-9]+]] {
613- ; CHECK-NEXT: ret i32
614- }
615-
616- define i32 @test_unsafe-fp-math0 (i32 %i ) "unsafe-fp-math" ="false" {
617- %1 = call i32 @unsafe-fp-math_callee0 (i32 %i )
618- ret i32 %1
619- ; CHECK: @test_unsafe-fp-math0(i32 %i) [[UNSAFE_FPMATH_FALSE]] {
620- ; CHECK-NEXT: ret i32
621- }
622-
623- define i32 @test_unsafe-fp-math1 (i32 %i ) "unsafe-fp-math" ="false" {
624- %1 = call i32 @unsafe-fp-math_callee1 (i32 %i )
625- ret i32 %1
626- ; CHECK: @test_unsafe-fp-math1(i32 %i) [[UNSAFE_FPMATH_FALSE]] {
627- ; CHECK-NEXT: ret i32
628- }
629-
630- define i32 @test_unsafe-fp-math2 (i32 %i ) "unsafe-fp-math" ="true" {
631- %1 = call i32 @unsafe-fp-math_callee0 (i32 %i )
632- ret i32 %1
633- ; CHECK: @test_unsafe-fp-math2(i32 %i) [[UNSAFE_FPMATH_FALSE]] {
634- ; CHECK-NEXT: ret i32
635- }
636-
637- define i32 @test_unsafe-fp-math3 (i32 %i ) "unsafe-fp-math" ="true" {
638- %1 = call i32 @unsafe-fp-math_callee1 (i32 %i )
639- ret i32 %1
640- ; CHECK: @test_unsafe-fp-math3(i32 %i) [[UNSAFE_FPMATH_TRUE]] {
641- ; CHECK-NEXT: ret i32
642- }
643-
644604; Test that fn_ret_thunk_extern has no CompatRule; inlining is permitted.
645605; Test that fn_ret_thunk_extern has no MergeRule; fn_ret_thunk_extern is not
646606; propagated or dropped on the caller after inlining.
@@ -693,6 +653,4 @@ define i32 @loader_replaceable_caller() {
693653; CHECK: attributes [[NO_NANS_FPMATH_TRUE]] = { "no-nans-fp-math"="true" }
694654; CHECK: attributes [[NO_SIGNED_ZEROS_FPMATH_FALSE]] = { "no-signed-zeros-fp-math"="false" }
695655; CHECK: attributes [[NO_SIGNED_ZEROS_FPMATH_TRUE]] = { "no-signed-zeros-fp-math"="true" }
696- ; CHECK: attributes [[UNSAFE_FPMATH_FALSE]] = { "unsafe-fp-math"="false" }
697- ; CHECK: attributes [[UNSAFE_FPMATH_TRUE]] = { "unsafe-fp-math"="true" }
698656; CHECK: attributes [[FNRETTHUNK_EXTERN]] = { fn_ret_thunk_extern }
0 commit comments