Add a small missed optimization: turn X == C ? X : Y into X == C ? C : Y. This
[llvm/stm8.git] / test / Assembler / aggregate-constant-values.ll
bloba37d03ebb3875038aff5bf9841144778184523e5
1 ; RUN: llvm-as < %s | llvm-dis | grep 7 | count 3
3 define void @foo({i32, i32}* %x) nounwind {
4   store {i32, i32}{i32 7, i32 9}, {i32, i32}* %x
5   ret void
7 define void @foo_empty({}* %x) nounwind {
8   store {}{}, {}* %x
9   ret void
11 define void @bar([2 x i32]* %x) nounwind {
12   store [2 x i32][i32 7, i32 9], [2 x i32]* %x
13   ret void
15 define void @bar_empty([0 x i32]* %x) nounwind {
16   store [0 x i32][], [0 x i32]* %x
17   ret void
19 define void @qux(<{i32, i32}>* %x) nounwind {
20   store <{i32, i32}><{i32 7, i32 9}>, <{i32, i32}>* %x
21   ret void
23 define void @qux_empty(<{}>* %x) nounwind {
24   store <{}><{}>, <{}>* %x
25   ret void