diff options
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/CodeGen/X86/coff-no-dead-strip.ll | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/coff-no-dead-strip.ll b/llvm/test/CodeGen/X86/coff-no-dead-strip.ll new file mode 100644 index 00000000000..adac90da885 --- /dev/null +++ b/llvm/test/CodeGen/X86/coff-no-dead-strip.ll @@ -0,0 +1,20 @@ +; 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 +@k = internal global i32 0 +declare x86_vectorcallcc void @l() + +@llvm.used = appending global [4 x i8*] [i8* bitcast (i32* @i to i8*), i8* bitcast (i32* @j to i8*), i8* bitcast (i32* @k to i8*), i8* bitcast (void ()* @l to i8*)] + +; CHECK: .section .drectve +; CHECK-ULP: .ascii " /INCLUDE:_i" +; CHECK-ULP: .ascii " /INCLUDE:_j" +; CHECK-ULP-NOT: .ascii " /INCLUDE:_k" +; CHECK-NOULP: .ascii " /INCLUDE:i" +; CHECK-NOULP: .ascii " /INCLUDE:j" +; CHECK-NOULP-NOT: .ascii " /INCLUDE:k" +; CHECK: .ascii " /INCLUDE:l@@0" + |

