blob: 3e269315780238e2509a8ff56247791b1e7a30e0 [file] [log] [blame]
Dan Gohman8c89a502007-08-15 13:36:28 +00001; RUN: llvm-as < %s | llc -march=x86-64 | grep movd | count 2
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002; 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