[PATCH 1/3] selftests/powerpc: Standardise TM calls

Michael Ellerman mpe at ellerman.id.au
Wed Dec 2 14:40:54 AEDT 2015


On Tue, 2015-12-01 at 13:38 +0530, Anshuman Khandual wrote:
> On 12/01/2015 10:38 AM, Rashmica Gupta wrote:
> > Currently tbegin, tend etc are written as opcodes or asm instructions. So
> > standardise these to asm instructions.
> 
> I think the asm instructions can be used with only newer versions of GCC.
> But not sure, does it work with the older gcc as well ?

No they don't work with all versions of GCC.

The HTM instructions were added in 4.9 AFAICS, but also backported to 4.8. That
seems old enough to me.

Also we have another test (tm-syscall) which is already using the tbegin
instruction, and no one has complained, so I don't think anyone is trying to
build the selftests with really old compilers.

cheers



More information about the Linuxppc-dev mailing list