Test updates were performed using: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 These are only the test updates where the test passed without further modification (which is almost all of them, as the backend is largely pointer-type agnostic).
15 lines
328 B
LLVM
15 lines
328 B
LLVM
; RUN: llc < %s -mtriple=i686-- | FileCheck %s
|
|
|
|
; Don't crash on an empty struct member.
|
|
|
|
; CHECK: movl $2, 4(%esp)
|
|
; CHECK: movl $1, (%esp)
|
|
|
|
%testType = type {i32, [0 x i32], i32}
|
|
|
|
define void @foo() nounwind {
|
|
%1 = alloca %testType
|
|
store volatile %testType {i32 1, [0 x i32] zeroinitializer, i32 2}, ptr %1
|
|
ret void
|
|
}
|