Convert test to use FileCheck.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 23 May 2014 16:51:13 +0000 (16:51 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 23 May 2014 16:51:13 +0000 (16:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209528 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/2008-03-12-ThreadLocalAlias.ll

index e673d315a435628a7ba16a3428c8f2cf9d2fabd4..6052c102af61edb7f5c3e70eeae01a515f2a59b7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -relocation-model=pic | grep TLSGD | count 2
+; RUN: llc < %s -relocation-model=pic | FileCheck %s
 ; PR2137
 
 ; ModuleID = '1.c'
@@ -11,6 +11,8 @@ target triple = "i386-pc-linux-gnu"
 @__libc_resp = hidden alias %struct.__res_state** @__resp              ; <%struct.__res_state**> [#uses=2]
 
 define i32 @foo() {
+; CHECK-LABEL: foo:
+; CHECK: leal    __libc_resp@TLSGD
 entry:
        %retval = alloca i32            ; <i32*> [#uses=1]
        %"alloca point" = bitcast i32 0 to i32          ; <i32> [#uses=0]
@@ -24,6 +26,8 @@ return:               ; preds = %entry
 }
 
 define i32 @bar() {
+; CHECK-LABEL: bar:
+; CHECK: leal    __libc_resp@TLSGD
 entry:
        %retval = alloca i32            ; <i32*> [#uses=1]
        %"alloca point" = bitcast i32 0 to i32          ; <i32> [#uses=0]