summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-10-05 02:58:36 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-10-05 02:58:36 +0000
commite8bcb9dd999d366cb6fed9f35b2d2b367289e1ec (patch)
treebebce7042dfdf3f014e5e3b4faac07e243f3ddf2 /test
parenta8147756d681f100e58e88aae842aebf4f51693d (diff)
downloadllvm-e8bcb9dd999d366cb6fed9f35b2d2b367289e1ec.tar.gz
llvm-e8bcb9dd999d366cb6fed9f35b2d2b367289e1ec.tar.bz2
llvm-e8bcb9dd999d366cb6fed9f35b2d2b367289e1ec.tar.xz
Convert test to FileCheck.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192025 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/aliases.ll17
1 files changed, 12 insertions, 5 deletions
diff --git a/test/CodeGen/X86/aliases.ll b/test/CodeGen/X86/aliases.ll
index f92027998a..4658cb42cd 100644
--- a/test/CodeGen/X86/aliases.ll
+++ b/test/CodeGen/X86/aliases.ll
@@ -1,26 +1,33 @@
-; RUN: llc < %s -mtriple=i686-pc-linux-gnu -asm-verbose=false -o %t
-; RUN: grep globl %t | count 6
-; RUN: grep weak %t | count 1
-; RUN: grep hidden %t | count 1
-; RUN: grep protected %t | count 1
+; RUN: llc < %s -mtriple=i686-pc-linux-gnu -asm-verbose=false | FileCheck %s
@bar = external global i32
+
+; CHECK-DAG: .globl foo1
@foo1 = alias i32* @bar
+
+; CHECK-DAG: .globl foo2
@foo2 = alias i32* @bar
%FunTy = type i32()
declare i32 @foo_f()
+; CHECK-DAG: .weak bar_f
@bar_f = alias weak %FunTy* @foo_f
@bar_i = alias internal i32* @bar
+; CHECK-DAG: .globl A
@A = alias bitcast (i32* @bar to i64*)
+; CHECK-DAG: .globl bar_h
+; CHECK-DAG: .hidden bar_h
@bar_h = hidden alias i32* @bar
+; CHECK-DAG: .globl bar_p
+; CHECK-DAG: .protected bar_p
@bar_p = protected alias i32* @bar
+; CHECK-DAG: .globl test
define i32 @test() {
entry:
%tmp = load i32* @foo1