@@ -1276,6 +1276,13 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
1276
1276
setOperationAction(ISD::STRICT_FDIV, MVT::v2f64, Legal);
1277
1277
}
1278
1278
1279
+ if (Subtarget.hasGFNI()) {
1280
+ setOperationAction(ISD::BITREVERSE, MVT::i8, Custom);
1281
+ setOperationAction(ISD::BITREVERSE, MVT::i16, Custom);
1282
+ setOperationAction(ISD::BITREVERSE, MVT::i32, Custom);
1283
+ setOperationAction(ISD::BITREVERSE, MVT::i64, Custom);
1284
+ }
1285
+
1279
1286
if (!Subtarget.useSoftFloat() && Subtarget.hasSSSE3()) {
1280
1287
setOperationAction(ISD::ABS, MVT::v16i8, Legal);
1281
1288
setOperationAction(ISD::ABS, MVT::v8i16, Legal);
@@ -1286,13 +1293,6 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
1286
1293
setOperationAction(ISD::CTLZ, VT, Custom);
1287
1294
}
1288
1295
1289
- if (Subtarget.hasGFNI()) {
1290
- setOperationAction(ISD::BITREVERSE, MVT::i8, Custom);
1291
- setOperationAction(ISD::BITREVERSE, MVT::i16, Custom);
1292
- setOperationAction(ISD::BITREVERSE, MVT::i32, Custom);
1293
- setOperationAction(ISD::BITREVERSE, MVT::i64, Custom);
1294
- }
1295
-
1296
1296
// These might be better off as horizontal vector ops.
1297
1297
setOperationAction(ISD::ADD, MVT::i16, Custom);
1298
1298
setOperationAction(ISD::ADD, MVT::i32, Custom);
0 commit comments