diff options
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/ARM/coff-no-dead-strip.ll | 14 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/coff-no-dead-strip.ll | 1 |
2 files changed, 14 insertions, 1 deletions
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 00000000000..a7a4d0b495b --- /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 adac90da885..4f57a0f9b16 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 |

