[OpenMP][AArch64] Fix compile with LLVM trunk.
authorEli Friedman <efriedma@quicinc.com>
Tue, 14 May 2019 21:44:54 +0000 (21:44 +0000)
committerEli Friedman <efriedma@quicinc.com>
Tue, 14 May 2019 21:44:54 +0000 (21:44 +0000)
commit025df3b8270083666c5e091810216d1bc9e7fe6e
treeebe3d646a43cc1728a1980789421f9dc2449397f
parentc9dd299736add73d576b5f005116cc470bf02977
[OpenMP][AArch64] Fix compile with LLVM trunk.

The code is currently using the ambiguous instruction
"sub sp, sp, w9, lsl #4". The ARM reference manual says this isn't
valid, and it's not clear whether it's supposed to mean uxtw or uxtx.

It doesn't matter which instruction we use here, since the high
bits of the operand are zero anyway, so I arbitrarily choose uxtw, to
preserve the register name.

See https://reviews.llvm.org/D60840 for the LLVM patch.

Differential Revision: https://reviews.llvm.org/D61770

llvm-svn: 360711
openmp/runtime/src/z_Linux_asm.S