From 4e36e683c7b7c5fce1bbcd52eaed04c7a1f56d5c Mon Sep 17 00:00:00 2001 From: Dehao Chen Date: Thu, 2 Feb 2017 01:21:13 +0000 Subject: [PATCH] Refactor the gmlt tests. (NFC) llvm-svn: 293852 --- test/DebugInfo/Generic/gmlt.test | 5 +++++ test/DebugInfo/{Generic => Inputs}/gmlt.ll | 4 ---- test/DebugInfo/X86/gmlt.test | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 test/DebugInfo/Generic/gmlt.test rename test/DebugInfo/{Generic => Inputs}/gmlt.ll (97%) diff --git a/test/DebugInfo/Generic/gmlt.test b/test/DebugInfo/Generic/gmlt.test new file mode 100644 index 00000000000..e36a3bdea35 --- /dev/null +++ b/test/DebugInfo/Generic/gmlt.test @@ -0,0 +1,5 @@ +; REQUIRES: object-emission +; RUN: %llc_dwarf -O0 -filetype=obj < %S/../Inputs/gmlt.ll | llvm-dwarfdump - | FileCheck %S/../Inputs/gmlt.ll + +; There's a darwin specific test in X86/gmlt, so it's okay to XFAIL this here. +; XFAIL: darwin diff --git a/test/DebugInfo/Generic/gmlt.ll b/test/DebugInfo/Inputs/gmlt.ll similarity index 97% rename from test/DebugInfo/Generic/gmlt.ll rename to test/DebugInfo/Inputs/gmlt.ll index d75086dd50a..116cd75b811 100644 --- a/test/DebugInfo/Generic/gmlt.ll +++ b/test/DebugInfo/Inputs/gmlt.ll @@ -1,8 +1,4 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -O0 -filetype=obj < %S/gmlt.ll | llvm-dwarfdump - | FileCheck %S/gmlt.ll - -; There's a darwin specific test in X86/gmlt, so it's okay to XFAIL this here. -; XFAIL: darwin ; Generated from the following source compiled with clang++ -gmlt: ; void f1() {} diff --git a/test/DebugInfo/X86/gmlt.test b/test/DebugInfo/X86/gmlt.test index 15b829210d8..6cdd71d68bd 100644 --- a/test/DebugInfo/X86/gmlt.test +++ b/test/DebugInfo/X86/gmlt.test @@ -1,2 +1,2 @@ -; RUN: llc -O0 -filetype=obj < %S/../Generic/gmlt.ll -mtriple x86_64-apple-darwin | llvm-dwarfdump - \ -; RUN: | FileCheck --check-prefix=CHECK --check-prefix=DARWIN %S/../Generic/gmlt.ll +; RUN: llc -O0 -filetype=obj < %S/../Inputs/gmlt.ll -mtriple x86_64-apple-darwin | llvm-dwarfdump - \ +; RUN: | FileCheck --check-prefix=CHECK --check-prefix=DARWIN %S/../Inputs/gmlt.ll