[llvm] Do not replace dead constant references in metadata with undef
[llvm-project.git] / lld / test / ELF / arm-tag-vfp-args-errs.s
blob622cea07a0447737a09ec1e573ce24bad1d69922
1 // REQUIRES:arm
2 // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %S/Inputs/arm-vfp-arg-base.s -o %tbase.o
3 // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %S/Inputs/arm-vfp-arg-vfp.s -o %tvfp.o
4 // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %S/Inputs/arm-vfp-arg-toolchain.s -o %ttoolchain.o
5 // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o
6 // RUN: not ld.lld %t.o %tbase.o %tvfp.o -o%t 2>&1 | FileCheck %s
7 // RUN: not ld.lld %t.o %tbase.o %ttoolchain.o -o%t 2>&1 | FileCheck %s
8 // RUN: not ld.lld %t.o %tvfp.o %tbase.o -o%t 2>&1 | FileCheck %s
9 // RUN: not ld.lld %t.o %tvfp.o %ttoolchain.o -o%t 2>&1 | FileCheck %s
10 // RUN: not ld.lld %t.o %ttoolchain.o %tbase.o -o%t 2>&1 | FileCheck %s
11 // RUN: not ld.lld %t.o %ttoolchain.o %tvfp.o -o%t 2>&1 | FileCheck %s
13 // CHECK: incompatible Tag_ABI_VFP_args
14 .arch armv7-a
15 .eabi_attribute 20, 1
16 .eabi_attribute 21, 1
17 .eabi_attribute 23, 3
18 .eabi_attribute 24, 1
19 .eabi_attribute 25, 1
20 .eabi_attribute 26, 2
21 .eabi_attribute 30, 6
22 .eabi_attribute 34, 1
23 .eabi_attribute 18, 4
24 .eabi_attribute 28, 3 // Tag_ABI_VFP_args = 3 (Compatible with all)
26 .syntax unified
27 .globl _start
28 .type _start, %function
29 _start: bx lr