From 2fbcf8b9b38c84fd1c3a250b4ef76f7e7adad0d3 Mon Sep 17 00:00:00 2001 From: Paul Robinson Date: Wed, 30 Nov 2022 13:32:42 -0800 Subject: [PATCH] [Hexagon] Convert tests to check 'target=hexagon-.*' Part of the project to eliminate special handling for triples in lit expressions. --- clang/test/CodeGen/c-strings.c | 2 +- clang/test/CodeGen/string-literal-short-wstring.c | 2 +- llvm/test/CodeGen/Generic/MachineBranchProb.ll | 2 +- llvm/test/DebugInfo/Generic/incorrect-variable-debugloc1.ll | 2 +- llvm/test/DebugInfo/Generic/sugared-constants.ll | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/clang/test/CodeGen/c-strings.c b/clang/test/CodeGen/c-strings.c index ebb3217..6873941 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@_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 c9e7a2af..7daa64b 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 afe454a..9a5ea0c 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 d741fb3..7edc971 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 9bb6642..c8ee035 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. -- 2.7.4