Skip to content

Commit

Permalink
[NFC] Add regression test for incorrect X86RegisterInfo assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleywiser committed Aug 11, 2024
1 parent dccbf33 commit 838e761
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions llvm/test/CodeGen/X86/avx512f-large-stack.ll
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --no_x86_scrub_sp --version 4
; RUN: llc -O0 -mtriple=x86_64 -mattr=+avx512f -verify-machineinstrs < %s | FileCheck %s --check-prefix=CHECK
define void @f(i16 %LGV2, i1 %LGV3) {
; CHECK-LABEL: f:
; CHECK: # %bb.0: # %BB
; CHECK-NEXT: subq $2147483528, %rsp # imm = 0x7FFFFF88
; CHECK-NEXT: .cfi_def_cfa_offset 2147483536
; CHECK-NEXT: movb %sil, %cl
; CHECK-NEXT: movw %di, %ax
; CHECK-NEXT: movswq %ax, %rax
; CHECK-NEXT: andb $1, %cl
; CHECK-NEXT: movabsq $-2147483768, %rdx # imm = 0xFFFFFFFF7FFFFF88
; CHECK-NEXT: movb %cl, (%rsp,%rdx)
; CHECK-NEXT: addq $2147483528, %rsp # imm = 0x7FFFFF88
; CHECK-NEXT: .cfi_def_cfa_offset 8
; CHECK-NEXT: retq
BB:
%A = alloca i1, i33 2147483648, align 1
%G = getelementptr i1, ptr %A, i16 %LGV2
%G4 = getelementptr i1, ptr %G, i32 -2147483648
store i1 %LGV3, ptr %G4, align 1
ret void
}

0 comments on commit 838e761

Please sign in to comment.