[llvm] [DebugInfo] Remove target related attributes for jump-table test (PR #72075)

via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 12 18:15:42 PST 2023


https://github.com/HaohaiWen created https://github.com/llvm/llvm-project/pull/72075

This fix test fails on non-x86 target.

>From ca4e482e05055b8b9a5d87c23083464fc127b61e Mon Sep 17 00:00:00 2001
From: Haohai Wen <haohai.wen at intel.com>
Date: Mon, 13 Nov 2023 10:12:42 +0800
Subject: [PATCH] [DebugInfo] Remove target related attributes for
 debug-info-jump-table.ll

---
 llvm/test/DebugInfo/Generic/debug-info-jump-table.ll | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/llvm/test/DebugInfo/Generic/debug-info-jump-table.ll b/llvm/test/DebugInfo/Generic/debug-info-jump-table.ll
index b73d05441f654bb..202b688276287e2 100644
--- a/llvm/test/DebugInfo/Generic/debug-info-jump-table.ll
+++ b/llvm/test/DebugInfo/Generic/debug-info-jump-table.ll
@@ -1,9 +1,5 @@
 ; RUN: llc -debug-only=isel %s -o /dev/null 2>&1 | FileCheck --match-full-lines %s
 
-source_filename = "jump_table.c"
-target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
-target triple = "x86_64-unknown-linux-gnu"
-
 @str = private unnamed_addr constant [2 x i8] c"1\00", align 1
 @str.12 = private unnamed_addr constant [2 x i8] c"2\00", align 1
 @str.13 = private unnamed_addr constant [2 x i8] c"3\00", align 1
@@ -102,7 +98,7 @@ declare void @llvm.dbg.value(metadata, metadata, metadata) #1
 ; Function Attrs: nofree nounwind
 declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #2
 
-attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
+attributes #0 = { nofree nounwind uwtable }
 attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
 attributes #2 = { nofree nounwind }
 



More information about the llvm-commits mailing list