-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #38561 - nagisa:rdrandseed, r=alexcrichton
Add intrinsics & target features for rd{rand,seed} One question is whether or not we want to map feature name `rdrnd` to `rdrand` instead. EDIT: as for use case, I would like to port my rdrand crate from inline assembly to these intrinsics.
- Loading branch information
Showing
4 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"intrinsic_prefix": "_rdrand", | ||
"llvm_prefix": "llvm.x86.rdrand.", | ||
"intrinsics": [ | ||
{ | ||
"intrinsic": "16_step", | ||
"width": ["0"], | ||
"llvm": "16", | ||
"ret": "(U16,S32)", | ||
"args": [] | ||
}, | ||
{ | ||
"intrinsic": "32_step", | ||
"width": ["0"], | ||
"llvm": "32", | ||
"ret": "(U32,S32)", | ||
"args": [] | ||
}, | ||
{ | ||
"intrinsic": "64_step", | ||
"width": ["0"], | ||
"llvm": "64", | ||
"ret": "(U64,S32)", | ||
"args": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"intrinsic_prefix": "_rdseed", | ||
"llvm_prefix": "llvm.x86.rdseed.", | ||
"intrinsics": [ | ||
{ | ||
"intrinsic": "16_step", | ||
"width": ["0"], | ||
"llvm": "16", | ||
"ret": "(U16,S32)", | ||
"args": [] | ||
}, | ||
{ | ||
"intrinsic": "32_step", | ||
"width": ["0"], | ||
"llvm": "32", | ||
"ret": "(U32,S32)", | ||
"args": [] | ||
}, | ||
{ | ||
"intrinsic": "64_step", | ||
"width": ["0"], | ||
"llvm": "64", | ||
"ret": "(U64,S32)", | ||
"args": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters