2012-04-08 11:00:38 +00:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
|
2014-08-19 21:08:27 +00:00
|
|
|
; RUN: verify-uselistorder %s
|
2008-06-09 21:26:13 +00:00
|
|
|
|
2012-04-08 11:00:38 +00:00
|
|
|
; CHECK: @foo
|
|
|
|
; CHECK: store { i32, i32 } { i32 7, i32 9 }, { i32, i32 }* %x
|
|
|
|
; CHECK: ret
|
2008-06-09 21:26:13 +00:00
|
|
|
define void @foo({i32, i32}* %x) nounwind {
|
|
|
|
store {i32, i32}{i32 7, i32 9}, {i32, i32}* %x
|
|
|
|
ret void
|
|
|
|
}
|
2012-04-08 11:00:38 +00:00
|
|
|
|
|
|
|
; CHECK: @foo_empty
|
|
|
|
; CHECK: store {} zeroinitializer, {}* %x
|
|
|
|
; CHECK: ret
|
2008-06-09 21:26:13 +00:00
|
|
|
define void @foo_empty({}* %x) nounwind {
|
|
|
|
store {}{}, {}* %x
|
|
|
|
ret void
|
|
|
|
}
|
2012-04-08 11:00:38 +00:00
|
|
|
|
|
|
|
; CHECK: @bar
|
|
|
|
; CHECK: store [2 x i32] [i32 7, i32 9], [2 x i32]* %x
|
|
|
|
; CHECK: ret
|
2008-06-09 21:26:13 +00:00
|
|
|
define void @bar([2 x i32]* %x) nounwind {
|
|
|
|
store [2 x i32][i32 7, i32 9], [2 x i32]* %x
|
|
|
|
ret void
|
|
|
|
}
|
2012-04-08 11:00:38 +00:00
|
|
|
|
|
|
|
; CHECK: @bar_empty
|
|
|
|
; CHECK: store [0 x i32] undef, [0 x i32]* %x
|
|
|
|
; CHECK: ret
|
2008-06-09 21:26:13 +00:00
|
|
|
define void @bar_empty([0 x i32]* %x) nounwind {
|
|
|
|
store [0 x i32][], [0 x i32]* %x
|
|
|
|
ret void
|
|
|
|
}
|
2012-04-08 11:00:38 +00:00
|
|
|
|
|
|
|
; CHECK: @qux
|
|
|
|
; CHECK: store <{ i32, i32 }> <{ i32 7, i32 9 }>, <{ i32, i32 }>* %x
|
|
|
|
; CHECK: ret
|
2008-06-09 21:26:13 +00:00
|
|
|
define void @qux(<{i32, i32}>* %x) nounwind {
|
|
|
|
store <{i32, i32}><{i32 7, i32 9}>, <{i32, i32}>* %x
|
|
|
|
ret void
|
|
|
|
}
|
2012-04-08 11:00:38 +00:00
|
|
|
|
|
|
|
; CHECK: @qux_empty
|
|
|
|
; CHECK: store <{}> zeroinitializer, <{}>* %x
|
|
|
|
; CHECK: ret
|
2008-06-09 21:26:13 +00:00
|
|
|
define void @qux_empty(<{}>* %x) nounwind {
|
|
|
|
store <{}><{}>, <{}>* %x
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|