[llvm] r304888 - [Linker] Remove llc usage from link-arm-and-thumb.ll test case.

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 7 02:59:22 PDT 2017


Author: fhahn
Date: Wed Jun  7 04:59:22 2017
New Revision: 304888

URL: http://llvm.org/viewvc/llvm-project?rev=304888&view=rev
Log:
[Linker] Remove llc usage from link-arm-and-thumb.ll test case.

This fixes a buildbot failure when the ARM target is not built.


Modified:
    llvm/trunk/test/Linker/link-arm-and-thumb.ll

Modified: llvm/trunk/test/Linker/link-arm-and-thumb.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/link-arm-and-thumb.ll?rev=304888&r1=304887&r2=304888&view=diff
==============================================================================
--- llvm/trunk/test/Linker/link-arm-and-thumb.ll (original)
+++ llvm/trunk/test/Linker/link-arm-and-thumb.ll Wed Jun  7 04:59:22 2017
@@ -1,6 +1,6 @@
 ; RUN: llvm-as %s -o %t1.bc
 ; RUN: llvm-as %p/Inputs/thumb.ll -o %t2.bc
-; RUN: llvm-link %t1.bc %t2.bc -S 2> %t3.out | llc | FileCheck %s
+; RUN: llvm-link %t1.bc %t2.bc -S 2> %t3.out | FileCheck %s
 ; RUN: FileCheck --allow-empty --input-file %t3.out --check-prefix STDERR %s
 
 target triple = "armv7-linux-gnueabihf"
@@ -13,14 +13,11 @@ entry:
   ret i32 %add
 }
 
-; CHECK: .code  32 @ @main
-; CHECK-NEXT: main
+; CHECK: define i32 @main() {
+; CHECK: define i32 @foo(i32 %a, i32 %b) [[ARM_ATTRS:#[0-9]+]]
+; CHECK: define i32 @bar(i32 %a, i32 %b) [[THUMB_ATTRS:#[0-9]+]]
 
-; CHECK: .code  32 @ @foo
-; CHECK-NEXT: foo
-
-; CHECK: .code  16 @ @bar
-; CHECK-NEXT: .thumb_func
-; CHECK-NEXT: bar
+; CHECK: attributes [[ARM_ATTRS]] = { "target-features"="-thumb-mode" }
+; CHECK: attributes [[THUMB_ATTRS]] = { "target-features"="+thumb-mode" }
 
 ; STDERR-NOT: warning: Linking two modules of different target triples:




More information about the llvm-commits mailing list