Skip to content

Commit b233d79

Browse files
authored
R600: Expand is_fpclass (llvm#135234)
1 parent c6a892e commit b233d79

File tree

2 files changed

+405
-0
lines changed

2 files changed

+405
-0
lines changed

llvm/lib/Target/AMDGPU/R600ISelLowering.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ R600TargetLowering::R600TargetLowering(const TargetMachine &TM,
100100

101101
setOperationAction(ISD::FSUB, MVT::f32, Expand);
102102

103+
setOperationAction(ISD::IS_FPCLASS,
104+
{MVT::f32, MVT::v2f32, MVT::v3f32, MVT::v4f32, MVT::v5f32,
105+
MVT::v6f32, MVT::v7f32, MVT::v8f32, MVT::v16f32},
106+
Expand);
107+
103108
setOperationAction({ISD::FCEIL, ISD::FTRUNC, ISD::FROUNDEVEN, ISD::FFLOOR},
104109
MVT::f64, Custom);
105110

0 commit comments

Comments
 (0)