blob: d27765e89424f3a63f6941f833a48127032e9fab [file] [log] [blame]
Dan Gohman18800922009-09-11 18:01:28 +00001; RUN: opt < %s -instcombine -S | grep element | count 4
Eli Friedman048e78f2009-07-18 23:06:53 +00002
3define double @a(<1 x i64> %y) {
4 %c = bitcast <1 x i64> %y to double
5 ret double %c
6}
7
8define i64 @b(<1 x i64> %y) {
9 %c = bitcast <1 x i64> %y to i64
10 ret i64 %c
11}
12
13define <1 x i64> @c(double %y) {
14 %c = bitcast double %y to <1 x i64>
15 ret <1 x i64> %c
16}
17
18define <1 x i64> @d(i64 %y) {
19 %c = bitcast i64 %y to <1 x i64>
20 ret <1 x i64> %c
21}
22