We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b1fe7e commit 5a8aa30Copy full SHA for 5a8aa30
llvm/test/Transforms/InstCombine/fpcast.ll
@@ -62,6 +62,17 @@ define half @test3_fabs_ninf(float %a) {
62
ret half %c
63
}
64
65
+define half @test3_fptrunc_ninf(float %a) {
66
+; CHECK-LABEL: @test3_fptrunc_ninf(
67
+; CHECK-NEXT: [[TMP1:%.*]] = fptrunc float [[A:%.*]] to half
68
+; CHECK-NEXT: [[C:%.*]] = call ninf half @llvm.fabs.f16(half [[TMP1]])
69
+; CHECK-NEXT: ret half [[C]]
70
+;
71
+ %b = call float @llvm.fabs.f32(float %a)
72
+ %c = fptrunc ninf float %b to half
73
+ ret half %c
74
+}
75
+
76
define half @fneg_fptrunc(float %a) {
77
; CHECK-LABEL: @fneg_fptrunc(
78
; CHECK-NEXT: [[TMP1:%.*]] = fptrunc float [[A:%.*]] to half
0 commit comments