@@ -280,6 +280,33 @@ Feature | Implicitly Enables | Feature Name
280280` tme ` | | FEAT_TME --- Transactional Memory Extension
281281` vh ` | | FEAT_VHE --- Virtualization Host Extensions
282282
283+ r[ attributes.codegen.target_feature.loongarch]
284+ #### ` loongarch `
285+
286+
287+ On this platform the usage of ` #[target_feature] ` functions follows the
288+ [ above restrictions] [ attributes.codegen.target_feature.safety-restrictions ] .
289+
290+ Feature | Implicitly Enables | Description
291+ ------------|---------------------|-------------------
292+ ` f ` | | [ F] [ la-f ] --- Single-precision float-point instructions
293+ ` d ` | ` f ` | [ D] [ la-d ] --- Double-precision float-point instructions
294+ ` frecipe ` | | [ FRECIPE] [ la-frecipe ] --- Reciprocal approximation instructions
295+ ` lasx ` | ` lsx ` | [ LASX] [ la-lasx ] --- 256-bit vector instructions
296+ ` lbt ` | | [ LBT] [ la-lbt ] --- Binary translation instructions
297+ ` lsx ` | ` d ` | [ LSX] [ la-lsx ] --- 128-bit vector instructions
298+ ` lvz ` | | [ LVZ] [ la-lvz ] --- Virtualization instructions
299+
300+ <!-- Keep links near each table to make it easier to move and update. -->
301+
302+ [ la-f ] : https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#cpucfg-fp_sp
303+ [ la-d ] : https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#cpucfg-fp_dp
304+ [ la-frecipe ] : https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#cpucfg-frecipe
305+ [ la-lasx ] : https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#cpucfg-lasx
306+ [ la-lbt ] : https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#cpucfg-lbt_x86
307+ [ la-lsx ] : https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#cpucfg-lsx
308+ [ la-lvz ] : https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#cpucfg-lvz
309+
283310r[ attributes.codegen.target_feature.riscv]
284311#### ` riscv32 ` or ` riscv64 `
285312
0 commit comments