Dan Gohman | 36a0947 | 2009-09-08 23:54:48 +0000 | [diff] [blame^] | 1 | ; RUN: llc < %s -march=x86-64 | grep movd | count 2 |
2 | ; RUN: llc < %s -march=x86-64 | not grep rsp | ||||
Chris Lattner | 910b4b8 | 2007-06-17 23:29:57 +0000 | [diff] [blame] | 3 | |
4 | define i64 @test1(double %A) { | ||||
5 | %B = bitcast double %A to i64 | ||||
6 | ret i64 %B | ||||
7 | } | ||||
8 | |||||
9 | define double @test2(i64 %A) { | ||||
10 | %B = bitcast i64 %A to double | ||||
11 | ret double %B | ||||
12 | } | ||||
13 |