[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / lib / Target / RISCV / RISCVInstrInfoD.td
blob2cd011a02345de7767d8ef82e6d33f706058d6ae
1 //===-- RISCVInstrInfoD.td - RISC-V 'D' instructions -------*- tablegen -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file describes the RISC-V instructions from the standard 'D',
10 // Double-Precision Floating-Point instruction set extension.
12 //===----------------------------------------------------------------------===//
14 //===----------------------------------------------------------------------===//
15 // RISC-V specific DAG Nodes.
16 //===----------------------------------------------------------------------===//
18 def SDT_RISCVBuildPairF64 : SDTypeProfile<1, 2, [SDTCisVT<0, f64>,
19                                                  SDTCisVT<1, i32>,
20                                                  SDTCisSameAs<1, 2>]>;
21 def SDT_RISCVSplitF64     : SDTypeProfile<2, 1, [SDTCisVT<0, i32>,
22                                                  SDTCisVT<1, i32>,
23                                                  SDTCisVT<2, f64>]>;
25 def RISCVBuildPairF64 : SDNode<"RISCVISD::BuildPairF64", SDT_RISCVBuildPairF64>;
26 def RISCVSplitF64     : SDNode<"RISCVISD::SplitF64", SDT_RISCVSplitF64>;
28 //===----------------------------------------------------------------------===//
29 // Instruction Class Templates
30 //===----------------------------------------------------------------------===//
32 let hasSideEffects = 0, mayLoad = 0, mayStore = 0 in
33 class FPFMAD_rrr_frm<RISCVOpcode opcode, string opcodestr>
34     : RVInstR4Frm<0b01, opcode, (outs FPR64:$rd),
35                   (ins FPR64:$rs1, FPR64:$rs2, FPR64:$rs3, frmarg:$funct3),
36                   opcodestr, "$rd, $rs1, $rs2, $rs3, $funct3">;
38 class FPFMADDynFrmAlias<FPFMAD_rrr_frm Inst, string OpcodeStr>
39     : InstAlias<OpcodeStr#" $rd, $rs1, $rs2, $rs3",
40                 (Inst FPR64:$rd, FPR64:$rs1, FPR64:$rs2, FPR64:$rs3, 0b111)>;
42 let hasSideEffects = 0, mayLoad = 0, mayStore = 0 in
43 class FPALUD_rr<bits<7> funct7, bits<3> funct3, string opcodestr>
44     : RVInstR<funct7, funct3, OPC_OP_FP, (outs FPR64:$rd),
45               (ins FPR64:$rs1, FPR64:$rs2), opcodestr, "$rd, $rs1, $rs2">;
47 let hasSideEffects = 0, mayLoad = 0, mayStore = 0 in
48 class FPALUD_rr_frm<bits<7> funct7, string opcodestr>
49     : RVInstRFrm<funct7, OPC_OP_FP, (outs FPR64:$rd),
50                 (ins FPR64:$rs1, FPR64:$rs2, frmarg:$funct3), opcodestr,
51                  "$rd, $rs1, $rs2, $funct3">;
53 class FPALUDDynFrmAlias<FPALUD_rr_frm Inst, string OpcodeStr>
54     : InstAlias<OpcodeStr#" $rd, $rs1, $rs2",
55                 (Inst FPR64:$rd, FPR64:$rs1, FPR64:$rs2, 0b111)>;
57 let hasSideEffects = 0, mayLoad = 0, mayStore = 0 in
58 class FPCmpD_rr<bits<3> funct3, string opcodestr>
59     : RVInstR<0b1010001, funct3, OPC_OP_FP, (outs GPR:$rd),
60               (ins FPR64:$rs1, FPR64:$rs2), opcodestr, "$rd, $rs1, $rs2">,
61       Sched<[WriteFCmp64, ReadFCmp64, ReadFCmp64]>;
63 //===----------------------------------------------------------------------===//
64 // Instructions
65 //===----------------------------------------------------------------------===//
67 let Predicates = [HasStdExtD] in {
69 let hasSideEffects = 0, mayLoad = 1, mayStore = 0 in
70 def FLD : RVInstI<0b011, OPC_LOAD_FP, (outs FPR64:$rd),
71                   (ins GPR:$rs1, simm12:$imm12),
72                   "fld", "$rd, ${imm12}(${rs1})">,
73           Sched<[WriteFLD64, ReadFMemBase]>;
75 // Operands for stores are in the order srcreg, base, offset rather than
76 // reflecting the order these fields are specified in the instruction
77 // encoding.
78 let hasSideEffects = 0, mayLoad = 0, mayStore = 1 in
79 def FSD : RVInstS<0b011, OPC_STORE_FP, (outs),
80                   (ins FPR64:$rs2, GPR:$rs1, simm12:$imm12),
81                    "fsd", "$rs2, ${imm12}(${rs1})">,
82           Sched<[WriteFST64, ReadStoreData, ReadFMemBase]>;
84 def FMADD_D  : FPFMAD_rrr_frm<OPC_MADD, "fmadd.d">,
85                Sched<[WriteFMA64, ReadFMA64, ReadFMA64, ReadFMA64]>;
86 def          : FPFMADDynFrmAlias<FMADD_D, "fmadd.d">;
87 def FMSUB_D  : FPFMAD_rrr_frm<OPC_MSUB, "fmsub.d">,
88                Sched<[WriteFMA64, ReadFMA64, ReadFMA64, ReadFMA64]>;
89 def          : FPFMADDynFrmAlias<FMSUB_D, "fmsub.d">;
90 def FNMSUB_D : FPFMAD_rrr_frm<OPC_NMSUB, "fnmsub.d">,
91                Sched<[WriteFMA64, ReadFMA64, ReadFMA64, ReadFMA64]>;
92 def          : FPFMADDynFrmAlias<FNMSUB_D, "fnmsub.d">;
93 def FNMADD_D : FPFMAD_rrr_frm<OPC_NMADD, "fnmadd.d">,
94                Sched<[WriteFMA64, ReadFMA64, ReadFMA64, ReadFMA64]>;
95 def          : FPFMADDynFrmAlias<FNMADD_D, "fnmadd.d">;
97 def FADD_D : FPALUD_rr_frm<0b0000001, "fadd.d">,
98              Sched<[WriteFALU64, ReadFALU64, ReadFALU64]>;
99 def        : FPALUDDynFrmAlias<FADD_D, "fadd.d">;
100 def FSUB_D : FPALUD_rr_frm<0b0000101, "fsub.d">,
101              Sched<[WriteFALU64, ReadFALU64, ReadFALU64]>;
102 def        : FPALUDDynFrmAlias<FSUB_D, "fsub.d">;
103 def FMUL_D : FPALUD_rr_frm<0b0001001, "fmul.d">,
104              Sched<[WriteFMul64, ReadFMul64, ReadFMul64]>;
105 def        : FPALUDDynFrmAlias<FMUL_D, "fmul.d">;
106 def FDIV_D : FPALUD_rr_frm<0b0001101, "fdiv.d">,
107              Sched<[WriteFDiv64, ReadFDiv64, ReadFDiv64]>;
108 def        : FPALUDDynFrmAlias<FDIV_D, "fdiv.d">;
110 def FSQRT_D : FPUnaryOp_r_frm<0b0101101, FPR64, FPR64, "fsqrt.d">,
111               Sched<[WriteFSqrt64, ReadFSqrt64]> {
112   let rs2 = 0b00000;
114 def         : FPUnaryOpDynFrmAlias<FSQRT_D, "fsqrt.d", FPR64, FPR64>;
116 def FSGNJ_D  : FPALUD_rr<0b0010001, 0b000, "fsgnj.d">,
117                Sched<[WriteFSGNJ64, ReadFSGNJ64, ReadFSGNJ64]>;
118 def FSGNJN_D : FPALUD_rr<0b0010001, 0b001, "fsgnjn.d">,
119                Sched<[WriteFSGNJ64, ReadFSGNJ64, ReadFSGNJ64]>;
120 def FSGNJX_D : FPALUD_rr<0b0010001, 0b010, "fsgnjx.d">,
121                Sched<[WriteFSGNJ64, ReadFSGNJ64, ReadFSGNJ64]>;
122 def FMIN_D   : FPALUD_rr<0b0010101, 0b000, "fmin.d">,
123                Sched<[WriteFMinMax64, ReadFMinMax64, ReadFMinMax64]>;
124 def FMAX_D   : FPALUD_rr<0b0010101, 0b001, "fmax.d">,
125                Sched<[WriteFMinMax64, ReadFMinMax64, ReadFMinMax64]>;
127 def FCVT_S_D : FPUnaryOp_r_frm<0b0100000, FPR32, FPR64, "fcvt.s.d">,
128                Sched<[WriteFCvtF64ToF32, ReadFCvtF64ToF32]> {
129   let rs2 = 0b00001;
131 def          : FPUnaryOpDynFrmAlias<FCVT_S_D, "fcvt.s.d", FPR32, FPR64>;
133 def FCVT_D_S : FPUnaryOp_r<0b0100001, 0b000, FPR64, FPR32, "fcvt.d.s">,
134                Sched<[WriteFCvtF32ToF64, ReadFCvtF32ToF64]> {
135   let rs2 = 0b00000;
138 def FEQ_D : FPCmpD_rr<0b010, "feq.d">;
139 def FLT_D : FPCmpD_rr<0b001, "flt.d">;
140 def FLE_D : FPCmpD_rr<0b000, "fle.d">;
142 def FCLASS_D : FPUnaryOp_r<0b1110001, 0b001, GPR, FPR64, "fclass.d">,
143                Sched<[WriteFClass64, ReadFClass64]> {
144   let rs2 = 0b00000;
147 def FCVT_W_D : FPUnaryOp_r_frm<0b1100001, GPR, FPR64, "fcvt.w.d">,
148                Sched<[WriteFCvtF64ToI32, ReadFCvtF64ToI32]> {
149   let rs2 = 0b00000;
151 def          : FPUnaryOpDynFrmAlias<FCVT_W_D, "fcvt.w.d", GPR, FPR64>;
153 def FCVT_WU_D : FPUnaryOp_r_frm<0b1100001, GPR, FPR64, "fcvt.wu.d">,
154                 Sched<[WriteFCvtF64ToI32, ReadFCvtF64ToI32]> {
155   let rs2 = 0b00001;
157 def           : FPUnaryOpDynFrmAlias<FCVT_WU_D, "fcvt.wu.d", GPR, FPR64>;
159 def FCVT_D_W : FPUnaryOp_r<0b1101001, 0b000, FPR64, GPR, "fcvt.d.w">,
160                Sched<[WriteFCvtI32ToF64, ReadFCvtI32ToF64]> {
161   let rs2 = 0b00000;
164 def FCVT_D_WU : FPUnaryOp_r<0b1101001, 0b000, FPR64, GPR, "fcvt.d.wu">,
165                 Sched<[WriteFCvtI32ToF64, ReadFCvtI32ToF64]> {
166   let rs2 = 0b00001;
168 } // Predicates = [HasStdExtD]
170 let Predicates = [HasStdExtD, IsRV64] in {
171 def FCVT_L_D : FPUnaryOp_r_frm<0b1100001, GPR, FPR64, "fcvt.l.d">,
172                Sched<[WriteFCvtF64ToI64, ReadFCvtF64ToI64]> {
173   let rs2 = 0b00010;
175 def          : FPUnaryOpDynFrmAlias<FCVT_L_D, "fcvt.l.d", GPR, FPR64>;
177 def FCVT_LU_D : FPUnaryOp_r_frm<0b1100001, GPR, FPR64, "fcvt.lu.d">,
178                 Sched<[WriteFCvtF64ToI64, ReadFCvtF64ToI64]> {
179   let rs2 = 0b00011;
181 def           : FPUnaryOpDynFrmAlias<FCVT_LU_D, "fcvt.lu.d", GPR, FPR64>;
183 def FMV_X_D : FPUnaryOp_r<0b1110001, 0b000, GPR, FPR64, "fmv.x.d">,
184               Sched<[WriteFMovF64ToI64, ReadFMovF64ToI64]> {
185   let rs2 = 0b00000;
188 def FCVT_D_L : FPUnaryOp_r_frm<0b1101001, FPR64, GPR, "fcvt.d.l">,
189                Sched<[WriteFCvtI64ToF64, ReadFCvtI64ToF64]> {
190   let rs2 = 0b00010;
192 def          : FPUnaryOpDynFrmAlias<FCVT_D_L, "fcvt.d.l", FPR64, GPR>;
194 def FCVT_D_LU : FPUnaryOp_r_frm<0b1101001, FPR64, GPR, "fcvt.d.lu">,
195                 Sched<[WriteFCvtI64ToF64, ReadFCvtI64ToF64]> {
196   let rs2 = 0b00011;
198 def           : FPUnaryOpDynFrmAlias<FCVT_D_LU, "fcvt.d.lu", FPR64, GPR>;
200 def FMV_D_X : FPUnaryOp_r<0b1111001, 0b000, FPR64, GPR, "fmv.d.x">,
201               Sched<[WriteFMovI64ToF64, ReadFMovI64ToF64]> {
202   let rs2 = 0b00000;
204 } // Predicates = [HasStdExtD, IsRV64]
206 //===----------------------------------------------------------------------===//
207 // Assembler Pseudo Instructions (User-Level ISA, Version 2.2, Chapter 20)
208 //===----------------------------------------------------------------------===//
210 let Predicates = [HasStdExtD] in {
211 def : InstAlias<"fld $rd, (${rs1})",  (FLD FPR64:$rd,  GPR:$rs1, 0), 0>;
212 def : InstAlias<"fsd $rs2, (${rs1})", (FSD FPR64:$rs2, GPR:$rs1, 0), 0>;
214 def : InstAlias<"fmv.d $rd, $rs",  (FSGNJ_D  FPR64:$rd, FPR64:$rs, FPR64:$rs)>;
215 def : InstAlias<"fabs.d $rd, $rs", (FSGNJX_D FPR64:$rd, FPR64:$rs, FPR64:$rs)>;
216 def : InstAlias<"fneg.d $rd, $rs", (FSGNJN_D FPR64:$rd, FPR64:$rs, FPR64:$rs)>;
218 // fgt.d/fge.d are recognised by the GNU assembler but the canonical
219 // flt.d/fle.d forms will always be printed. Therefore, set a zero weight.
220 def : InstAlias<"fgt.d $rd, $rs, $rt",
221                 (FLT_D GPR:$rd, FPR64:$rt, FPR64:$rs), 0>;
222 def : InstAlias<"fge.d $rd, $rs, $rt",
223                 (FLE_D GPR:$rd, FPR64:$rt, FPR64:$rs), 0>;
225 def PseudoFLD  : PseudoFloatLoad<"fld", FPR64>;
226 def PseudoFSD  : PseudoStore<"fsd", FPR64>;
227 } // Predicates = [HasStdExtD]
229 //===----------------------------------------------------------------------===//
230 // Pseudo-instructions and codegen patterns
231 //===----------------------------------------------------------------------===//
233 class PatFpr64Fpr64<SDPatternOperator OpNode, RVInstR Inst>
234     : Pat<(OpNode FPR64:$rs1, FPR64:$rs2), (Inst $rs1, $rs2)>;
236 class PatFpr64Fpr64DynFrm<SDPatternOperator OpNode, RVInstRFrm Inst>
237     : Pat<(OpNode FPR64:$rs1, FPR64:$rs2), (Inst $rs1, $rs2, 0b111)>;
239 let Predicates = [HasStdExtD] in {
241 /// Float conversion operations
243 // f64 -> f32, f32 -> f64
244 def : Pat<(fpround FPR64:$rs1), (FCVT_S_D FPR64:$rs1, 0b111)>;
245 def : Pat<(fpextend FPR32:$rs1), (FCVT_D_S FPR32:$rs1)>;
247 // [u]int<->double conversion patterns must be gated on IsRV32 or IsRV64, so
248 // are defined later.
250 /// Float arithmetic operations
252 def : PatFpr64Fpr64DynFrm<fadd, FADD_D>;
253 def : PatFpr64Fpr64DynFrm<fsub, FSUB_D>;
254 def : PatFpr64Fpr64DynFrm<fmul, FMUL_D>;
255 def : PatFpr64Fpr64DynFrm<fdiv, FDIV_D>;
257 def : Pat<(fsqrt FPR64:$rs1), (FSQRT_D FPR64:$rs1, 0b111)>;
259 def : Pat<(fneg FPR64:$rs1), (FSGNJN_D $rs1, $rs1)>;
260 def : Pat<(fabs FPR64:$rs1), (FSGNJX_D $rs1, $rs1)>;
262 def : PatFpr64Fpr64<fcopysign, FSGNJ_D>;
263 def : Pat<(fcopysign FPR64:$rs1, (fneg FPR64:$rs2)), (FSGNJN_D $rs1, $rs2)>;
264 def : Pat<(fcopysign FPR64:$rs1, FPR32:$rs2), (FSGNJ_D $rs1, (FCVT_D_S $rs2))>;
265 def : Pat<(fcopysign FPR32:$rs1, FPR64:$rs2), (FSGNJ_S $rs1, (FCVT_S_D $rs2,
266                                                               0b111))>;
268 // fmadd: rs1 * rs2 + rs3
269 def : Pat<(fma FPR64:$rs1, FPR64:$rs2, FPR64:$rs3),
270           (FMADD_D $rs1, $rs2, $rs3, 0b111)>;
272 // fmsub: rs1 * rs2 - rs3
273 def : Pat<(fma FPR64:$rs1, FPR64:$rs2, (fneg FPR64:$rs3)),
274           (FMSUB_D FPR64:$rs1, FPR64:$rs2, FPR64:$rs3, 0b111)>;
276 // fnmsub: -rs1 * rs2 + rs3
277 def : Pat<(fma (fneg FPR64:$rs1), FPR64:$rs2, FPR64:$rs3),
278           (FNMSUB_D FPR64:$rs1, FPR64:$rs2, FPR64:$rs3, 0b111)>;
280 // fnmadd: -rs1 * rs2 - rs3
281 def : Pat<(fma (fneg FPR64:$rs1), FPR64:$rs2, (fneg FPR64:$rs3)),
282           (FNMADD_D FPR64:$rs1, FPR64:$rs2, FPR64:$rs3, 0b111)>;
284 // The ratified 20191213 ISA spec defines fmin and fmax in a way that matches
285 // LLVM's fminnum and fmaxnum.
286 // <https://github.com/riscv/riscv-isa-manual/commit/cd20cee7efd9bac7c5aa127ec3b451749d2b3cce>.
287 def : PatFpr64Fpr64<fminnum, FMIN_D>;
288 def : PatFpr64Fpr64<fmaxnum, FMAX_D>;
290 /// Setcc
292 def : PatFpr64Fpr64<seteq, FEQ_D>;
293 def : PatFpr64Fpr64<setoeq, FEQ_D>;
294 def : PatFpr64Fpr64<setlt, FLT_D>;
295 def : PatFpr64Fpr64<setolt, FLT_D>;
296 def : PatFpr64Fpr64<setle, FLE_D>;
297 def : PatFpr64Fpr64<setole, FLE_D>;
299 def Select_FPR64_Using_CC_GPR : SelectCC_rrirr<FPR64, GPR>;
301 /// Loads
303 defm : LdPat<load, FLD, f64>;
305 /// Stores
307 defm : StPat<store, FSD, FPR64, f64>;
309 /// Pseudo-instructions needed for the soft-float ABI with RV32D
311 // Moves two GPRs to an FPR.
312 let usesCustomInserter = 1 in
313 def BuildPairF64Pseudo
314     : Pseudo<(outs FPR64:$dst), (ins GPR:$src1, GPR:$src2),
315              [(set FPR64:$dst, (RISCVBuildPairF64 GPR:$src1, GPR:$src2))]>;
317 // Moves an FPR to two GPRs.
318 let usesCustomInserter = 1 in
319 def SplitF64Pseudo
320     : Pseudo<(outs GPR:$dst1, GPR:$dst2), (ins FPR64:$src),
321              [(set GPR:$dst1, GPR:$dst2, (RISCVSplitF64 FPR64:$src))]>;
323 } // Predicates = [HasStdExtD]
325 let Predicates = [HasStdExtD, IsRV32] in {
327 /// Float constants
328 def : Pat<(f64 (fpimm0)), (FCVT_D_W (i32 X0))>;
330 // double->[u]int. Round-to-zero must be used.
331 def : Pat<(i32 (fp_to_sint FPR64:$rs1)), (FCVT_W_D FPR64:$rs1, 0b001)>;
332 def : Pat<(i32 (fp_to_uint FPR64:$rs1)), (FCVT_WU_D FPR64:$rs1, 0b001)>;
334 // Saturating double->[u]int32.
335 def : Pat<(i32 (riscv_fcvt_x_rtz FPR64:$rs1)), (FCVT_W_D $rs1, 0b001)>;
336 def : Pat<(i32 (riscv_fcvt_xu_rtz FPR64:$rs1)), (FCVT_WU_D $rs1, 0b001)>;
338 // float->int32 with current rounding mode.
339 def : Pat<(i32 (lrint FPR64:$rs1)), (FCVT_W_D $rs1, 0b111)>;
341 // float->int32 rounded to nearest with ties rounded away from zero.
342 def : Pat<(i32 (lround FPR64:$rs1)), (FCVT_W_D $rs1, 0b100)>;
344 // [u]int->double.
345 def : Pat<(sint_to_fp (i32 GPR:$rs1)), (FCVT_D_W GPR:$rs1)>;
346 def : Pat<(uint_to_fp (i32 GPR:$rs1)), (FCVT_D_WU GPR:$rs1)>;
347 } // Predicates = [HasStdExtD, IsRV32]
349 let Predicates = [HasStdExtD, IsRV64] in {
351 /// Float constants
352 def : Pat<(f64 (fpimm0)), (FMV_D_X (i64 X0))>;
354 // Moves (no conversion)
355 def : Pat<(bitconvert (i64 GPR:$rs1)), (FMV_D_X GPR:$rs1)>;
356 def : Pat<(i64 (bitconvert FPR64:$rs1)), (FMV_X_D FPR64:$rs1)>;
358 // Use target specific isd nodes to help us remember the result is sign
359 // extended. Matching sext_inreg+fptoui/fptosi may cause the conversion to be
360 // duplicated if it has another user that didn't need the sign_extend.
361 def : Pat<(riscv_fcvt_w_rtz_rv64 FPR64:$rs1),  (FCVT_W_D $rs1, 0b001)>;
362 def : Pat<(riscv_fcvt_wu_rtz_rv64 FPR64:$rs1), (FCVT_WU_D $rs1, 0b001)>;
364 // [u]int32->fp
365 def : Pat<(sint_to_fp (i64 (sexti32 (i64 GPR:$rs1)))), (FCVT_D_W $rs1)>;
366 def : Pat<(uint_to_fp (i64 (zexti32 (i64 GPR:$rs1)))), (FCVT_D_WU $rs1)>;
368 // Saturating double->[u]int64.
369 def : Pat<(i64 (riscv_fcvt_x_rtz FPR64:$rs1)), (FCVT_L_D $rs1, 0b001)>;
370 def : Pat<(i64 (riscv_fcvt_xu_rtz FPR64:$rs1)), (FCVT_LU_D $rs1, 0b001)>;
372 // double->[u]int64. Round-to-zero must be used.
373 def : Pat<(i64 (fp_to_sint FPR64:$rs1)), (FCVT_L_D FPR64:$rs1, 0b001)>;
374 def : Pat<(i64 (fp_to_uint FPR64:$rs1)), (FCVT_LU_D FPR64:$rs1, 0b001)>;
376 // double->int64 with current rounding mode.
377 def : Pat<(i64 (lrint FPR64:$rs1)), (FCVT_L_D $rs1, 0b111)>;
378 def : Pat<(i64 (llrint FPR64:$rs1)), (FCVT_L_D $rs1, 0b111)>;
380 // double->int64 rounded to nearest with ties rounded away from zero.
381 def : Pat<(i64 (lround FPR64:$rs1)), (FCVT_L_D $rs1, 0b100)>;
382 def : Pat<(i64 (llround FPR64:$rs1)), (FCVT_L_D $rs1, 0b100)>;
384 // [u]int64->fp. Match GCC and default to using dynamic rounding mode.
385 def : Pat<(sint_to_fp (i64 GPR:$rs1)), (FCVT_D_L GPR:$rs1, 0b111)>;
386 def : Pat<(uint_to_fp (i64 GPR:$rs1)), (FCVT_D_LU GPR:$rs1, 0b111)>;
387 } // Predicates = [HasStdExtD, IsRV64]