Elektrine lite

← Feed

@pervognsen@mastodon.social

Post #739621

2026-03-14 06:21 UTC

TIL about LLVM's ExpandInlineAsm via https://discourse.llvm.org/t/rfc-constant-time-coding-support/87781/37 (@lenary) and I'm more than a little horrified. Is nothing sacred?

Replies (3)

  • @pervognsen@mastodon.social 2026-03-14 06:24

    The ultimate reductio ad absurdum would be if we start putting machine code bytes in inline asm blocks only for compilers to eventually start "helpfully" disassembling them to perform intrinsic substitutions.

    Open ##1966312

  • @lenary@types.pl 2026-03-14 07:27

    @pervognsen Nothing was sacred. It's now more sacred than it was. Though I think AMDGPU? wants to read (but not modify) the string for scheduling hints/annotations.

    Open ##1966320

  • @zwarich@hachyderm.io 2026-03-14 17:14

    @pervognsen @lenary There must be some cursed linker out there that inspects machine code bytes to make decisions rather than purely using relocations.

    Open ##1966323