[llvm] 86705eb - [X86] huge-stack-offset.ll - add gnux32 test coverage

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 27 06:10:35 PST 2025


Author: Simon Pilgrim
Date: 2025-01-27T14:10:16Z
New Revision: 86705eb6242b5e2d6153708ddedffbfc95491756

URL: https://github.com/llvm/llvm-project/commit/86705eb6242b5e2d6153708ddedffbfc95491756
DIFF: https://github.com/llvm/llvm-project/commit/86705eb6242b5e2d6153708ddedffbfc95491756.diff

LOG: [X86] huge-stack-offset.ll - add gnux32 test coverage

This should match x86 for the basic implementation, but its useful to check it actually runs correctly.

Added: 
    

Modified: 
    llvm/test/CodeGen/X86/huge-stack-offset.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/X86/huge-stack-offset.ll b/llvm/test/CodeGen/X86/huge-stack-offset.ll
index 6629811a59b23d..d6080cfd3f7535 100644
--- a/llvm/test/CodeGen/X86/huge-stack-offset.ll
+++ b/llvm/test/CodeGen/X86/huge-stack-offset.ll
@@ -1,5 +1,6 @@
 ; RUN: llc < %s -mtriple=x86_64-linux-unknown -verify-machineinstrs | FileCheck %s --check-prefix=CHECK-64
 ; RUN: llc < %s -mtriple=i386-linux-unknown -verify-machineinstrs | FileCheck %s --check-prefix=CHECK-32
+; RUN: llc < %s -mtriple=x86_64-linux-gnux32 -verify-machineinstrs | FileCheck %s -check-prefix=CHECK-32
 
 ; Test that a large stack offset uses a single add/sub instruction to
 ; adjust the stack pointer.
@@ -11,7 +12,7 @@ define void @foo() nounwind {
 ; CHECK-64-NOT:  subq    $2147483647, %rsp
 ; CHECK-64:      movabsq $50000000{{..}}, [[RAX:%r..]]
 ; CHECK-64-NEXT: addq    [[RAX]], %rsp
-
+;
 ; CHECK-32-LABEL: foo:
 ; CHECK-32:      ud2
 ; CHECK-32-NOT:  subl    $2147483647, %esp
@@ -27,7 +28,7 @@ define i32 @foo2() nounwind {
 ; CHECK-64-LABEL: foo2:
 ; CHECK-64:     movl    $10, %eax
 ; CHECK-64-NOT: movabsq ${{.*}}, %rax
-
+;
 ; CHECK-32-LABEL: foo2:
 ; CHECK-32:     movl    $10, %eax
 ; CHECK-32-NOT: movl    ${{.*}}, %eax
@@ -42,7 +43,7 @@ define i32 @foo3(i32 inreg %x) nounwind {
 ; CHECK-64-LABEL: foo3:
 ; CHECK-64:      movabsq $50000000{{..}}, %rax
 ; CHECK-64-NEXT: subq    %rax, %rsp
-
+;
 ; CHECK-32-LABEL: foo3:
 ; CHECK-32:      ud2
 ; CHECK-32-NOT:  movl ${{.*}}, %eax


        


More information about the llvm-commits mailing list