diff options
author | Weiming Zhao <weimingz@codeaurora.org> | 2016-12-05 23:55:13 +0000 |
---|---|---|
committer | Weiming Zhao <weimingz@codeaurora.org> | 2016-12-05 23:55:13 +0000 |
commit | b38cfced8d6737b5652f9c6240b05cf8c3c6e677 (patch) | |
tree | d2b28bcc4b28b35626fd265d043db2343349ff86 /llvm/test/CodeGen/ARM/deprecated-asm.s | |
parent | ca648c9787c7c82ddb9b1c13353df46d085fa366 (diff) | |
download | bcm5719-llvm-b38cfced8d6737b5652f9c6240b05cf8c3c6e677.tar.gz bcm5719-llvm-b38cfced8d6737b5652f9c6240b05cf8c3c6e677.zip |
Summary: Currently there is no way to disable deprecated warning from asm like this
clang -target arm deprecated-asm.s -c
deprecated-asm.s:30:9: warning: use of SP or PC in the list is deprecated
stmia r4!, {r12-r14}
We have to have an option what can disable it.
Patched by Yin Ma!
Reviewers: joey, echristo, weimingz
Subscribers: llvm-commits, aemerson
Differential Revision: https://reviews.llvm.org/D27219
llvm-svn: 288734
Diffstat (limited to 'llvm/test/CodeGen/ARM/deprecated-asm.s')
-rw-r--r-- | llvm/test/CodeGen/ARM/deprecated-asm.s | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/deprecated-asm.s b/llvm/test/CodeGen/ARM/deprecated-asm.s new file mode 100644 index 00000000000..7318e6a68c5 --- /dev/null +++ b/llvm/test/CodeGen/ARM/deprecated-asm.s @@ -0,0 +1,43 @@ +// REQUIRES: asserts +// RUN: llvm-mc < %s -triple=armv4t-linux-gnueabi -filetype=obj -o %t.o -no-deprecated-warn -stats 2>&1 | FileCheck %s +// RUN: llvm-mc < %s -triple=armv4t-linux-gnueabi -filetype=obj -o %t.o 2>&1 | FileCheck %s -check-prefix=WARN + + .text + .syntax unified + .eabi_attribute 67, "2.09" @ Tag_conformance + .cpu arm7tdmi + .eabi_attribute 6, 2 @ Tag_CPU_arch + .eabi_attribute 8, 1 @ Tag_ARM_ISA_use + .eabi_attribute 17, 1 @ Tag_ABI_PCS_GOT_use + .eabi_attribute 20, 1 @ Tag_ABI_FP_denormal + .eabi_attribute 21, 1 @ Tag_ABI_FP_exceptions + .eabi_attribute 23, 3 @ Tag_ABI_FP_number_model + .eabi_attribute 34, 0 @ Tag_CPU_unaligned_access + .eabi_attribute 24, 1 @ Tag_ABI_align_needed + .eabi_attribute 25, 1 @ Tag_ABI_align_preserved + .eabi_attribute 38, 1 @ Tag_ABI_FP_16bit_format + .eabi_attribute 18, 4 @ Tag_ABI_PCS_wchar_t + .eabi_attribute 26, 2 @ Tag_ABI_enum_size + .eabi_attribute 14, 0 @ Tag_ABI_PCS_R9_use + .file "t.c" + .globl foo + .p2align 2 + .type foo,%function +foo: @ @foo + .fnstart +@ BB#0: @ %entry + mov r0, #0 + bx lr + stmia r4!, {r12-r14} +.Lfunc_end0: +.Ltmp0: + .size foo, .Ltmp0-foo + .cantunwind + .fnend + + + +// CHECK: Statistic +// CHECK-NOT: warning + +// WARN: warning |