llvm.org GIT mirror llvm / 18f07f4
upgrade this test git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45406 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 11 years ago
1 changed file(s) with 9 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep movsd | count 1
0 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movsd | count 1
11
2 <2 x long> %test(<2 x long>* %p) {
3 %tmp = cast <2 x long>* %p to double*
4 %tmp = load double* %tmp
5 %tmp = insertelement <2 x double> undef, double %tmp, uint 0
6 %tmp5 = insertelement <2 x double> %tmp, double 0.000000e+00, uint 1
7 %tmp = cast <2 x double> %tmp5 to <2 x long>
8 ret <2 x long> %tmp
2 define <2 x i64> @test(<2 x i64>* %p) {
3 %tmp = bitcast <2 x i64>* %p to double*
4 %tmp.upgrd.1 = load double* %tmp
5 %tmp.upgrd.2 = insertelement <2 x double> undef, double %tmp.upgrd.1, i32 0
6 %tmp5 = insertelement <2 x double> %tmp.upgrd.2, double 0.0, i32 1
7 %tmp.upgrd.3 = bitcast <2 x double> %tmp5 to <2 x i64>
8 ret <2 x i64> %tmp.upgrd.3
99 }
10