Skip to content

Instantly share code, notes, and snippets.

View c272's full-sized avatar

C272 c272

  • Tokyo, Japan
  • 14:49 (UTC +09:00)
View GitHub Profile
@c272
c272 / pactest.cpp
Last active July 31, 2023 09:47
Test for checking whether PAC is enabled, or is a NOP on the current system.
#include <cstdio>
#include <cstdint>
__attribute__((noinline))
int pac_test()
{
uint64_t original = 0;
uint64_t res = 0;
printf("I wonder if this has PAC enabled?\n");
__asm__ ("MOV %[original], X30\n"
@c272
c272 / diff_summary.md
Last active August 29, 2023 12:00
SuperPMI diffs for SELECT_INC/SELECT_INCCC patch.

Diffs are based on 1,007,693 contexts (446,494 MinOpts, 561,199 FullOpts).

Overall (-1,224 bytes)
Collection Base size (bytes) Diff size (bytes)
benchmarks.run.windows.arm64.checked.mch 10,996,000 -132
@c272
c272 / diff_summary.md
Created September 7, 2023 16:31
SPMI Diffs for Long Multiply

Diffs are based on 2,658,668 contexts (955,888 MinOpts, 1,702,780 FullOpts).

Overall (-8,572 bytes)
Collection Base size (bytes) Diff size (bytes)
benchmarks.run.windows.arm64.checked.mch 11,040,056 -308
@c272
c272 / diff_summary.md
Created September 13, 2023 14:27
Long Mul SPMI Diffs (13/09/2023)

Diffs are based on 2,658,668 contexts (955,888 MinOpts, 1,702,780 FullOpts).

Overall (-8,548 bytes)
Collection Base size (bytes) Diff size (bytes)
benchmarks.run.windows.arm64.checked.mch 11,040,056 -308