[llvm] r265770 - [IFUNC] Fix ifunc-asm.ll test
Dmitry Polukhin via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 7 23:45:19 PDT 2016
Author: dpolukhin
Date: Fri Apr 8 01:45:19 2016
New Revision: 265770
URL: http://llvm.org/viewvc/llvm-project?rev=265770&view=rev
Log:
[IFUNC] Fix ifunc-asm.ll test
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.
Added:
llvm/trunk/test/CodeGen/X86/ifunc-asm.ll
Modified:
llvm/trunk/test/Assembler/ifunc-asm.ll
Modified: llvm/trunk/test/Assembler/ifunc-asm.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/ifunc-asm.ll?rev=265770&r1=265769&r2=265770&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/ifunc-asm.ll (original)
+++ llvm/trunk/test/Assembler/ifunc-asm.ll Fri Apr 8 01:45:19 2016
@@ -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()
Added: llvm/trunk/test/CodeGen/X86/ifunc-asm.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/ifunc-asm.ll?rev=265770&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/ifunc-asm.ll (added)
+++ llvm/trunk/test/CodeGen/X86/ifunc-asm.ll Fri Apr 8 01:45:19 2016
@@ -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
More information about the llvm-commits
mailing list