[X86] Don't pass a scale value of 0 to scatter/gather intrinsics. This causes the...
[oota-llvm.git] / test / CodeGen / X86 / bitcast.ll
1 ; RUN: llc < %s -march=x86
2 ; RUN: llc < %s -march=x86-64
3 ; PR1033
4
5 define i64 @test1(double %t) {
6         %u = bitcast double %t to i64           ; <i64> [#uses=1]
7         ret i64 %u
8 }
9
10 define double @test2(i64 %t) {
11         %u = bitcast i64 %t to double           ; <double> [#uses=1]
12         ret double %u
13 }
14
15 define i32 @test3(float %t) {
16         %u = bitcast float %t to i32            ; <i32> [#uses=1]
17         ret i32 %u
18 }
19
20 define float @test4(i32 %t) {
21         %u = bitcast i32 %t to float            ; <float> [#uses=1]
22         ret float %u
23 }
24