Refactor test to be reused across architectures
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 29 Jan 2015 20:21:24 +0000 (20:21 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 29 Jan 2015 20:21:24 +0000 (20:21 +0000)
llvm-svn: 227487

llvm/test/DebugInfo/Inputs/line.ll [moved from llvm/test/DebugInfo/X86/line.ll with 96% similarity]
llvm/test/DebugInfo/X86/line.test [new file with mode: 0644]

similarity index 96%
rename from llvm/test/DebugInfo/X86/line.ll
rename to llvm/test/DebugInfo/Inputs/line.ll
index 05c25d2..1a4a908 100644 (file)
@@ -1,5 +1,3 @@
-; RUN: llc -mtriple=x86_64-linux -O0 -filetype=asm < %s | FileCheck %s
-
 ; From source:
 ; int f(int a, int b) {
 ;   return a   //
@@ -11,7 +9,7 @@
 
 ; CHECK: .loc{{ +}}1{{ +}}2
 ; CHECK-NOT: .loc{{ }}
-; CHECK: cmpl
+; CHECK: cmp
 
 ; Function Attrs: nounwind uwtable
 define i32 @_Z1fii(i32 %a, i32 %b) #0 {
diff --git a/llvm/test/DebugInfo/X86/line.test b/llvm/test/DebugInfo/X86/line.test
new file mode 100644 (file)
index 0000000..24d9c5c
--- /dev/null
@@ -0,0 +1 @@
+; RUN: llc -mtriple=x86_64-linux -O0 -filetype=asm < %S/../Inputs/line.ll | FileCheck %S/../Inputs/line.ll