File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
tools/testing/selftests/arm64/abi Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,13 @@ static void svebf16_sigill(void)
208
208
asm volatile (".inst 0x658aa000" : : : "z0" );
209
209
}
210
210
211
+ static void hbc_sigill (void )
212
+ {
213
+ /* BC.EQ +4 */
214
+ asm volatile ("cmp xzr, xzr\n"
215
+ ".inst 0x54000030" : : : "cc" );
216
+ }
217
+
211
218
static const struct hwcap_data {
212
219
const char * name ;
213
220
unsigned long at_hwcap ;
@@ -386,6 +393,14 @@ static const struct hwcap_data {
386
393
.hwcap_bit = HWCAP2_SVE_EBF16 ,
387
394
.cpuinfo = "sveebf16" ,
388
395
},
396
+ {
397
+ .name = "HBC" ,
398
+ .at_hwcap = AT_HWCAP2 ,
399
+ .hwcap_bit = HWCAP2_HBC ,
400
+ .cpuinfo = "hbc" ,
401
+ .sigill_fn = hbc_sigill ,
402
+ .sigill_reliable = true,
403
+ },
389
404
};
390
405
391
406
static bool seen_sigill ;
You can’t perform that action at this time.
0 commit comments