Files
clang-p2996/llvm/test/MC/SystemZ/gnu-attributes.s
Jonas Paulsson 481bb44baa [SystemZ] Emit a .gnu_attribute for an externally visible vector abi.
On SystemZ, the vector ABI changes depending on the presence of hardware
vector support. Therefore, each binary compiled with a visible vector ABI
(e.g. one that calls an external function with a vector argument) should be
marked with a .gnu_attribute describing this.

Reviewed By: uweigand

Differential Revision: https://reviews.llvm.org/D105067
2022-12-06 12:53:40 -06:00

18 lines
483 B
ArmAsm

# RUN: llvm-mc -triple s390x-linux-gnu -filetype=asm %s | \
# RUN: FileCheck %s --check-prefix=ASM
# RUN: llvm-mc -triple s390x-linux-gnu -filetype=obj %s | \
# RUN: llvm-objdump --mcpu=z14 -D - | FileCheck %s --check-prefix=OBJ
#ASM: .text
#ASM: .gnu_attribute 8, 2
#OBJ: 0000000000000000 <.gnu.attributes>:
#OBJ: 0: 41 00 00 00
#OBJ: 4: 0f 67
#OBJ: 6: 6e 75 00 01
#OBJ: a: 00 00
#OBJ: c: 00 07
#OBJ: e: 08 02
.gnu_attribute 8, 2