[PATCH] D18859: [IFUNC] Fix ifunc-asm.ll test

Dmitry Polukhin via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 7 07:09:39 PDT 2016


DmitryPolukhin created this revision.
DmitryPolukhin added reviewers: echristo, dexonsmith.
DmitryPolukhin added a subscriber: llvm-commits.

It seems that llc cannot be called used in assembler tests so test that
checks asm for particular target needs to be moved to codegen.

http://reviews.llvm.org/D18859

Files:
  test/Assembler/ifunc-asm.ll
  test/CodeGen/X86/ifunc-asm.ll

Index: test/CodeGen/X86/ifunc-asm.ll
===================================================================
--- /dev/null
+++ test/CodeGen/X86/ifunc-asm.ll
@@ -0,0 +1,15 @@
+; RUN: llvm-as < %s -o - | llc -filetype=asm | FileCheck %s
+
+target triple = "x86_64-unknown-linux-gnu"
+
+define internal i64 @foo_ifunc() {
+entry:
+  ret i64 0
+}
+; CHECK: .type foo_ifunc, at function
+; CHECK-NEXT: foo_ifunc:
+
+ at foo = ifunc i32 (i32), i64 ()* @foo_ifunc
+; CHECK: .type foo, at function
+; CHECK-NEXT: .type foo, at gnu_indirect_function
+; CHECK-NEXT: foo = foo_ifunc
Index: test/Assembler/ifunc-asm.ll
===================================================================
--- test/Assembler/ifunc-asm.ll
+++ test/Assembler/ifunc-asm.ll
@@ -1,12 +1,12 @@
-; RUN: llvm-as < %s | llvm-dis | FileCheck %s --check-prefix=CHECK-LLVM
+; RUN: llvm-as < %s | llvm-dis | FileCheck %s
 
 target triple = "x86_64-unknown-linux-gnu"
 
 @foo = ifunc i32 (i32), i64 ()* @foo_ifunc
-; CHECK-LLVM: @foo = ifunc i32 (i32), i64 ()* @foo_ifunc
+; CHECK: @foo = ifunc i32 (i32), i64 ()* @foo_ifunc
 
 define internal i64 @foo_ifunc() {
 entry:
   ret i64 0
 }
-; CHECK-LLVM: define internal i64 @foo_ifunc()
+; CHECK: define internal i64 @foo_ifunc()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18859.52914.patch
Type: text/x-patch
Size: 1217 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160407/87efa43f/attachment.bin>


More information about the llvm-commits mailing list