title: Can pretty variable names be used for registers in GCC inline assembly?
body: <p>I have some inline assembly. I want GCC to have total freedom in choosing GP registers to allocate. I also want to use pretty names for registers inside the assembly for ease of comprehension for future maintainers. I think I did this previously (10+ years ago) for ARM 5te but am now scratching my head while writing some AArch64 code.</p>
  
  <p>In a simpler example, this is what I want:</p>
  
  <pre><code>uint32_t arg1 = 1, arg2 = 2, result;
  
  asm volatile(
    "add  %result, %arg1, %arg2\n"
    // Outputs:
    : ???
    // Inputs:
    : ???
    // Clobbered:
    : ???
  );
  </code></pre>
  
  <p>I figure I need the right voodoo to go where I have written <strong>"???"</strong> above.</p>
  
  <p>Is it possible? </p>