Re: [GIT PULL] s390 updates for 6.18 merge window
From: Linus Torvalds
Date: Mon Sep 29 2025 - 22:24:48 EST
On Mon, 29 Sept 2025 at 02:38, Alexander Gordeev <agordeev@xxxxxxxxxxxxx> wrote:
>
> - Make the compiler statement attribute "assume" available with
> a new __assume macro
Ahh. Interesting. I hadn't realized this existed.
It does seem like a potentially dangerous feature - you get some very
confusing behavior if you misuse it, but looks quite useful for
describing the results of inline asm like you do.
I have definitely had cases where I would have liked to tell the
compiler that the result is already zero-extended or similar, and this
looks good for that.
Linus