[clang] 2fbcf8b - [Hexagon] Convert tests to check 'target=hexagon-.*'

Paul Robinson via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 30 13:36:19 PST 2022


Author: Paul Robinson
Date: 2022-11-30T13:36:10-08:00
New Revision: 2fbcf8b9b38c84fd1c3a250b4ef76f7e7adad0d3

URL: https://github.com/llvm/llvm-project/commit/2fbcf8b9b38c84fd1c3a250b4ef76f7e7adad0d3
DIFF: https://github.com/llvm/llvm-project/commit/2fbcf8b9b38c84fd1c3a250b4ef76f7e7adad0d3.diff

LOG: [Hexagon] Convert tests to check 'target=hexagon-.*'

Part of the project to eliminate special handling for triples in lit
expressions.

Added: 
    

Modified: 
    clang/test/CodeGen/c-strings.c
    clang/test/CodeGen/string-literal-short-wstring.c
    llvm/test/CodeGen/Generic/MachineBranchProb.ll
    llvm/test/DebugInfo/Generic/incorrect-variable-debugloc1.ll
    llvm/test/DebugInfo/Generic/sugared-constants.ll

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGen/c-strings.c b/clang/test/CodeGen/c-strings.c
index ebb3217ca48a7..687394168534d 100644
--- a/clang/test/CodeGen/c-strings.c
+++ b/clang/test/CodeGen/c-strings.c
@@ -16,7 +16,7 @@
 // MSABI: @f4.x = internal global %struct.s { ptr @"??_C at _05CJBACGMB@hello?$AA@" }
 // CHECK: @x = {{(dso_local )?}}global [3 x i8] c"ola", align [[ALIGN]]
 
-// XFAIL: hexagon
+// XFAIL: target=hexagon-{{.*}}
 // Hexagon aligns arrays of size 8+ bytes to a 64-bit boundary, which
 // fails the check for "@f3.x = ... align [ALIGN]", since ALIGN is derived
 // from the alignment of a single i8, which is still 1.

diff  --git a/clang/test/CodeGen/string-literal-short-wstring.c b/clang/test/CodeGen/string-literal-short-wstring.c
index c9e7a2afee092..7daa64b0af374 100644
--- a/clang/test/CodeGen/string-literal-short-wstring.c
+++ b/clang/test/CodeGen/string-literal-short-wstring.c
@@ -3,7 +3,7 @@
 
 // Run in C mode as wide multichar literals are not valid in C++
 
-// XFAIL: hexagon
+// XFAIL: target=hexagon-{{.*}}
 // Hexagon aligns arrays of size 8+ bytes to a 64-bit boundary, which fails
 // the first check line with "align 1".
 

diff  --git a/llvm/test/CodeGen/Generic/MachineBranchProb.ll b/llvm/test/CodeGen/Generic/MachineBranchProb.ll
index afe454a62e30d..9a5ea0c5e13cc 100644
--- a/llvm/test/CodeGen/Generic/MachineBranchProb.ll
+++ b/llvm/test/CodeGen/Generic/MachineBranchProb.ll
@@ -2,7 +2,7 @@
 
 ; Hexagon runs passes that renumber the basic blocks, causing this test
 ; to fail.
-; XFAIL: hexagon
+; XFAIL: target=hexagon-{{.*}}
 
 declare void @foo()
 

diff  --git a/llvm/test/DebugInfo/Generic/incorrect-variable-debugloc1.ll b/llvm/test/DebugInfo/Generic/incorrect-variable-debugloc1.ll
index d741fb3fe6e20..7edc971334c8e 100644
--- a/llvm/test/DebugInfo/Generic/incorrect-variable-debugloc1.ll
+++ b/llvm/test/DebugInfo/Generic/incorrect-variable-debugloc1.ll
@@ -1,6 +1,6 @@
 ; xfail this test on hexagon because at O2, instructions are bundled in packets
 ; and DW_OP_lit13 is correctly omitted.
-; XFAIL: hexagon
+; XFAIL: target=hexagon-{{.*}}
 
 ; RUN: %llc_dwarf -O2  -dwarf-version 2 -filetype=obj < %s | llvm-dwarfdump - | FileCheck %s  --check-prefix=DWARF23
 ; RUN: %llc_dwarf -O2  -dwarf-version 3 -filetype=obj < %s | llvm-dwarfdump - | FileCheck %s  --check-prefix=DWARF23

diff  --git a/llvm/test/DebugInfo/Generic/sugared-constants.ll b/llvm/test/DebugInfo/Generic/sugared-constants.ll
index 9bb66423e97aa..c8ee035dbca1d 100644
--- a/llvm/test/DebugInfo/Generic/sugared-constants.ll
+++ b/llvm/test/DebugInfo/Generic/sugared-constants.ll
@@ -1,6 +1,6 @@
 ; xfail this test on hexagon because upstream llc is not emitting the
 ; correct DWARF info. Downstream llc is.
-; XFAIL: hexagon
+; XFAIL: target=hexagon-{{.*}}
 
 ; RUN: %llc_dwarf -O0 -filetype=obj %s -o - | llvm-dwarfdump -v -debug-info - | FileCheck %s
 ; Use correct signedness when emitting constants of derived (sugared) types.


        


More information about the cfe-commits mailing list