Files
clang-p2996/llvm/test/CodeGen/PowerPC/huge-frame-size.ll
Kai Luo 7165e6713f [PowerPC] Use int64_t to represent stack object offset and frame size
This is the first step to enable PPC64 support huge frame size(>2G). Also fix an assertion error for frame size, i.e.,`int x; !isInt<32>(x);` should be always evaluated false, so the guard code for frame size is impossible to hit.

Reviewed By: jsji

Differential Revision: https://reviews.llvm.org/D107435
2021-08-23 02:13:21 +00:00

18 lines
544 B
LLVM

; REQUIRES: asserts
; RUN: not --crash llc -verify-machineinstrs -mtriple=powerpc64le-linux-gnu < %s \
; RUN: 2>&1 | FileCheck --check-prefix=CHECK-LE %s
; RUN: not --crash llc -verify-machineinstrs -mtriple=powerpc64-ibm-aix-xcoff < %s \
; RUN: 2>&1 | FileCheck --check-prefix=CHECK-BE %s
declare void @bar(i8*)
define void @foo(i8 %x) {
; CHECK-LE: Unhandled stack size
; CHECK-BE: Unhandled stack size
entry:
%a = alloca i8, i64 4294967296, align 16
%b = getelementptr i8, i8* %a, i64 0
store volatile i8 %x, i8* %b
ret void
}