From cca3ef3f5bbb9011db780f21bfa7bc4b6c372b2c Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 29 Jan 2015 20:21:24 +0000 Subject: [PATCH] Refactor test to be reused across architectures git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227487 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/DebugInfo/{X86 => Inputs}/line.ll | 4 +--- test/DebugInfo/X86/line.test | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) rename test/DebugInfo/{X86 => Inputs}/line.ll (96%) create mode 100644 test/DebugInfo/X86/line.test diff --git a/test/DebugInfo/X86/line.ll b/test/DebugInfo/Inputs/line.ll similarity index 96% rename from test/DebugInfo/X86/line.ll rename to test/DebugInfo/Inputs/line.ll index 05c25d2772b..1a4a9080056 100644 --- a/test/DebugInfo/X86/line.ll +++ b/test/DebugInfo/Inputs/line.ll @@ -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/test/DebugInfo/X86/line.test b/test/DebugInfo/X86/line.test new file mode 100644 index 00000000000..24d9c5cbce0 --- /dev/null +++ b/test/DebugInfo/X86/line.test @@ -0,0 +1 @@ +; RUN: llc -mtriple=x86_64-linux -O0 -filetype=asm < %S/../Inputs/line.ll | FileCheck %S/../Inputs/line.ll -- 2.34.1