Dan Gohman | 0a06310 | 2009-09-08 23:54:48 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -march=x86 | FileCheck %s |
Dan Gohman | 1b9f83a | 2009-09-08 01:44:02 +0000 | [diff] [blame] | 2 | |
3 | ; Don't crash on an empty struct member. | ||||
4 | |||||
5 | ; CHECK: movl $2, 4(%esp) | ||||
6 | ; CHECK: movl $1, (%esp) | ||||
7 | |||||
8 | %testType = type {i32, [0 x i32], i32} | ||||
9 | |||||
10 | define void @foo() nounwind { | ||||
11 | %1 = alloca %testType | ||||
12 | volatile store %testType {i32 1, [0 x i32] zeroinitializer, i32 2}, %testType* %1 | ||||
13 | ret void | ||||
14 | } |