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

via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 12 19:16:42 PST 2023


Author: HaohaiWen
Date: 2023-11-13T11:16:39+08:00
New Revision: 6428bdd05d57276a9d1eda96963911695d4d7d9a

URL: https://github.com/llvm/llvm-project/commit/6428bdd05d57276a9d1eda96963911695d4d7d9a
DIFF: https://github.com/llvm/llvm-project/commit/6428bdd05d57276a9d1eda96963911695d4d7d9a.diff

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

This fixes test fails on non-x86 target.

Added: 
    

Modified: 
    llvm/test/DebugInfo/Generic/debug-info-jump-table.ll

Removed: 
    


################################################################################
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