blob: edf85238a39d1a7b0433b6b15599253e28b711e2 [file] [log] [blame]
Chris Lattner910b4b82007-06-17 23:29:57 +00001; RUN: llvm-as < %s | llc -march=x86-64 | grep movd | wc -l | grep 2
2; RUN: llvm-as < %s | llc -march=x86-64 | not grep rsp
3
4define i64 @test1(double %A) {
5 %B = bitcast double %A to i64
6 ret i64 %B
7}
8
9define double @test2(i64 %A) {
10 %B = bitcast i64 %A to double
11 ret double %B
12}
13