From 6f831d54f8766e2fff932fde75f5df2ed4b9eece Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sat, 20 Jan 2018 01:03:11 +0000 Subject: [PATCH] test: move ARM test from x86 The ARM backend is not guaranteed to be present on x86, move the test to the ARM tests. llvm-svn: 323021 --- llvm/test/CodeGen/ARM/coff-no-dead-strip.ll | 14 ++++++++++++++ llvm/test/CodeGen/X86/coff-no-dead-strip.ll | 1 - 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 llvm/test/CodeGen/ARM/coff-no-dead-strip.ll diff --git a/llvm/test/CodeGen/ARM/coff-no-dead-strip.ll b/llvm/test/CodeGen/ARM/coff-no-dead-strip.ll new file mode 100644 index 000000000000..a7a4d0b495bb --- /dev/null +++ b/llvm/test/CodeGen/ARM/coff-no-dead-strip.ll @@ -0,0 +1,14 @@ +; RUN: llc -mtriple thumbv7-windows-msvc -filetype asm -o - %s | FileCheck %s + +@i = global i32 0 +@j = weak global i32 0 +@k = internal global i32 0 + +@llvm.used = appending global [3 x i8*] [i8* bitcast (i32* @i to i8*), i8* bitcast (i32* @j to i8*), i8* bitcast (i32* @k to i8*)] + +; CHECK: .section .drectve +; CHECK: .ascii " /INCLUDE:i" +; CHECK: .ascii " /INCLUDE:j" +; CHECK-NOT: .ascii " /INCLUDE:k" +; CHECK: .ascii " /INCLUDE:l@@0" + diff --git a/llvm/test/CodeGen/X86/coff-no-dead-strip.ll b/llvm/test/CodeGen/X86/coff-no-dead-strip.ll index adac90da885a..4f57a0f9b163 100644 --- a/llvm/test/CodeGen/X86/coff-no-dead-strip.ll +++ b/llvm/test/CodeGen/X86/coff-no-dead-strip.ll @@ -1,6 +1,5 @@ ; RUN: llc -mtriple i686-windows-msvc -filetype asm -o - %s | FileCheck %s -check-prefix CHECK -check-prefix CHECK-ULP ; RUN: llc -mtriple x86_64-windows-msvc -filetype asm -o - %s | FileCheck %s -check-prefix CHECK -check-prefix CHECK-NOULP -; RUN: llc -mtriple thumbv7-windows-msvc -filetype asm -o - %s | FileCheck %s -check-prefix CHECK -check-prefix CHECK-NOULP @i = global i32 0 @j = weak global i32 0