@@ -309,6 +309,32 @@ Feature | Implicitly Enables | Feature Name
309
309
` tme ` | | FEAT_TME --- Transactional Memory Extension
310
310
` vh ` | | FEAT_VHE --- Virtualization Host Extensions
311
311
312
+ r[ attributes.codegen.target_feature.loongarch]
313
+ #### ` loongarch `
314
+
315
+ On this platform the usage of ` #[target_feature] ` functions follows the
316
+ [ above restrictions] [ attributes.codegen.target_feature.safety-restrictions ] .
317
+
318
+ Feature | Implicitly Enables | Description
319
+ ------------|---------------------|-------------------
320
+ ` f ` | | [ F] [ la-f ] --- Single-precision float-point instructions
321
+ ` d ` | ` f ` | [ D] [ la-d ] --- Double-precision float-point instructions
322
+ ` frecipe ` | | [ FRECIPE] [ la-frecipe ] --- Reciprocal approximation instructions
323
+ ` lasx ` | ` lsx ` | [ LASX] [ la-lasx ] --- 256-bit vector instructions
324
+ ` lbt ` | | [ LBT] [ la-lbt ] --- Binary translation instructions
325
+ ` lsx ` | ` d ` | [ LSX] [ la-lsx ] --- 128-bit vector instructions
326
+ ` lvz ` | | [ LVZ] [ la-lvz ] --- Virtualization instructions
327
+
328
+ <!-- Keep links near each table to make it easier to move and update. -->
329
+
330
+ [ la-f ] : https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#cpucfg-fp_sp
331
+ [ la-d ] : https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#cpucfg-fp_dp
332
+ [ la-frecipe ] : https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#cpucfg-frecipe
333
+ [ la-lasx ] : https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#cpucfg-lasx
334
+ [ la-lbt ] : https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#cpucfg-lbt_x86
335
+ [ la-lsx ] : https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#cpucfg-lsx
336
+ [ la-lvz ] : https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#cpucfg-lvz
337
+
312
338
r[ attributes.codegen.target_feature.riscv]
313
339
#### ` riscv32 ` or ` riscv64 `
314
340
0 commit comments