mirror of
https://github.com/rdolbeau/VexRiscvBPluginGenerator.git
synced 2025-04-18 18:44:42 -04:00
more SIGILL handling
This commit is contained in:
parent
7e012dfc14
commit
b83d145e82
1 changed files with 12 additions and 0 deletions
12
test_b.c
12
test_b.c
|
@ -217,6 +217,11 @@ int main(int argc, char **argv) {
|
|||
T2(_rv32_clmulr);
|
||||
T2(_rv32_clmulh);
|
||||
|
||||
#if defined(CHECK_SIGILL)
|
||||
if (setjmp(jb)) {
|
||||
printf("clmul[hr]: **SIGILL**\n");
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
int64_t x = 0xc4f5a63e4ac4567bULL ^ (uint64_t)a << 32 ^ (uint64_t)c << 17 ^ (uint64_t)b;
|
||||
int64_t y = 0x9ff123456aabbcc9ULL ^ (uint64_t)c << 32 ^ (uint64_t)b << 23 ^ (uint64_t)a;
|
||||
|
@ -244,6 +249,12 @@ int main(int argc, char **argv) {
|
|||
|
||||
b = index;
|
||||
}
|
||||
#if defined(CHECK_SIGILL)
|
||||
if (setjmp(jb)) {
|
||||
printf("bfp: **SIGILL**\n");
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
for (index2 = 0 ; index2 < 16 ; index2++) {
|
||||
for (index = 0 ; index < 32 ; index++){
|
||||
{
|
||||
|
@ -264,6 +275,7 @@ int main(int argc, char **argv) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue