[llvm] 8d550aa - [test] Replace -march=x86 -mcpu=i386 with -mtriple

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 15 12:57:41 PST 2024


Author: Fangrui Song
Date: 2024-12-15T12:57:35-08:00
New Revision: 8d550aa0f027eb2cf32850f3905dc1db22317587

URL: https://github.com/llvm/llvm-project/commit/8d550aa0f027eb2cf32850f3905dc1db22317587
DIFF: https://github.com/llvm/llvm-project/commit/8d550aa0f027eb2cf32850f3905dc1db22317587.diff

LOG: [test] Replace -march=x86 -mcpu=i386 with -mtriple

Added: 
    

Modified: 
    llvm/test/CodeGen/X86/stack-frame-layout-remarks.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/X86/stack-frame-layout-remarks.ll b/llvm/test/CodeGen/X86/stack-frame-layout-remarks.ll
index d8ce5b041042e1..cfc493af66709c 100644
--- a/llvm/test/CodeGen/X86/stack-frame-layout-remarks.ll
+++ b/llvm/test/CodeGen/X86/stack-frame-layout-remarks.ll
@@ -7,10 +7,10 @@
 ; RUN: llc -mcpu=corei7 -O0 -pass-remarks-analysis=stack-frame-layout < %s 2>&1 >/dev/null | FileCheck %s --check-prefix=NO_COLORING
 
 ; check more complex cases
-; RUN: llc %s -pass-remarks-analysis=stack-frame-layout -o /dev/null --march=x86 -mcpu=i386 2>&1 | FileCheck %s --check-prefix=BOTH --check-prefix=DEBUG
+; RUN: llc %s -pass-remarks-analysis=stack-frame-layout -o /dev/null -mtriple=i686-unknown-linux 2>&1 | FileCheck %s --check-prefix=BOTH --check-prefix=DEBUG
 
 ; check output without debug info
-; RUN: opt %s -passes=strip -S | llc  -pass-remarks-analysis=stack-frame-layout -o /dev/null --march=x86 -mcpu=i386 2>&1 | FileCheck %s --check-prefix=BOTH --check-prefix=STRIPPED
+; RUN: opt %s -passes=strip -S | llc  -pass-remarks-analysis=stack-frame-layout -o /dev/null -mtriple=i686-unknown-linux 2>&1 | FileCheck %s --check-prefix=BOTH --check-prefix=STRIPPED
 
 target triple = "x86_64-unknown-linux-gnu"
 


        


More information about the llvm-commits mailing list