[PATCH v2 2/2] aarch64: update tests for SME

Wilco Dijkstra Wilco.Dijkstra@arm.com
Mon May 12 10:44:00 GMT 2025


Hi Yuri,

> Add test that checks that ZA state is disabled after setjmp and sigsetjmp
> Update existing SME test that uses setjmp


+static void
+run(void)
+{
+  jmp_buf buf;
+  int ret;
+  if ((ret = setjmp (buf)) == 0)
+    {
+      printf ("ready for long jump\n");
+      check_sme_za_state ();
+      longjmp (buf, 42);
+      TEST_VERIFY (false); // unreachable
+      __builtin_unreachable ();
+    }
+  TEST_COMPARE (ret, 42);
+  printf ("completed long jump\n");
+  check_sme_za_state ();
+}

I'm confused here, where does it enable ZA state before the longjmp?

Cheers,
Wilco


More information about the Libc-alpha mailing list