Files
clang-p2996/llvm/test/MC/PowerPC/gnu-attribute.s
Qiu Chaofan 00d68c3824 [PowerPC] Support parsing GNU attributes in MC
This patch is the first step to enable support of GNU attribute in LLVM
PowerPC, enabling it for PowerPC targets, otherwise llvm-mc raises error
when seeing the attribute section.

Reviewed By: jsji

Differential Revision: https://reviews.llvm.org/D115854
2022-01-22 23:29:34 +08:00

12 lines
248 B
ArmAsm

# RUN: llvm-mc -triple powerpc64-unknown-linux-gnu < %s | FileCheck %s
# RUN: llvm-mc -triple powerpc64le-unknown-linux-gnu < %s | FileCheck %s
.text
add:
add 3, 4, 3
blr
.gnu_attribute 4, 13
# CHECK-LABEL: add:
# CHECK: .gnu_attribute 4, 13