diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-14 17:12:32 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-14 17:12:32 +0000 |
commit | f04bb72b611f24b79f6eb4a401f78046f47bde6a (patch) | |
tree | f04e1ce385a26fe7c6170bb1418f3ad3c7488ca4 | |
parent | dc23e8b81947a78a18b6d600939f8cba2c1a2ddc (diff) | |
download | bcm5719-llvm-f04bb72b611f24b79f6eb4a401f78046f47bde6a.tar.gz bcm5719-llvm-f04bb72b611f24b79f6eb4a401f78046f47bde6a.zip |
Add a triple and switch test to FileCheck.
On windows we don't print .weak for function definitions, so count was only
finding 1 'weak'.
llvm-svn: 194713
-rw-r--r-- | llvm/test/CodeGen/X86/2007-09-06-ExtWeakAliasee.ll | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/2007-09-06-ExtWeakAliasee.ll b/llvm/test/CodeGen/X86/2007-09-06-ExtWeakAliasee.ll index 7e37ef5c40d..638d399056a 100644 --- a/llvm/test/CodeGen/X86/2007-09-06-ExtWeakAliasee.ll +++ b/llvm/test/CodeGen/X86/2007-09-06-ExtWeakAliasee.ll @@ -1,6 +1,13 @@ -; RUN: llc < %s -march=x86 | grep weak | count 2 +; RUN: llc < %s -mtriple=i686-pc-linux-gnu | FileCheck %s + @__gthrw_pthread_once = alias weak i32 (i32*, void ()*)* @pthread_once ; <i32 (i32*, void ()*)*> [#uses=0] define weak i32 @pthread_once(i32*, void ()*) { ret i32 0 } + +; CHECK: .weak pthread_once +; CHECK: pthread_once: + +; CHECK: .weak __gthrw_pthread_once +; CHECK: __gthrw_pthread_once = pthread_once |