summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2013-05-20 01:01:43 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2013-05-20 01:01:43 +0000
commit89f530ebbfa91d1583a72d86dc6ca2804f4f450d (patch)
tree5cc116a07897d02928db77368c0804202a26fbc1 /test/CodeGen
parent5e5b78ca364ee61c6963070e5a5a346499ab6ee2 (diff)
downloadllvm-89f530ebbfa91d1583a72d86dc6ca2804f4f450d.tar.gz
llvm-89f530ebbfa91d1583a72d86dc6ca2804f4f450d.tar.bz2
llvm-89f530ebbfa91d1583a72d86dc6ca2804f4f450d.tar.xz
Also expand 64-bit bitcasts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182229 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/SPARC/64bit.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/SPARC/64bit.ll b/test/CodeGen/SPARC/64bit.ll
index c9413b7352..8e7abe83eb 100644
--- a/test/CodeGen/SPARC/64bit.ll
+++ b/test/CodeGen/SPARC/64bit.ll
@@ -209,3 +209,19 @@ define i64 @spill_i64(i64 %x) {
call void asm sideeffect "", "~{i0},~{i1},~{i2},~{i3},~{i4},~{i5},~{o0},~{o1},~{o2},~{o3},~{o4},~{o5},~{o7},~{l0},~{l1},~{l2},~{l3},~{l4},~{l5},~{l6},~{l7},~{g1},~{g2},~{g3},~{g4},~{g5},~{g6},~{g7}"()
ret i64 %x
}
+
+; CHECK: bitcast_i64_f64
+; CHECK: std
+; CHECK: ldx
+define i64 @bitcast_i64_f64(double %x) {
+ %y = bitcast double %x to i64
+ ret i64 %y
+}
+
+; CHECK: bitcast_f64_i64
+; CHECK: stx
+; CHECK: ldd
+define double @bitcast_f64_i64(i64 %x) {
+ %y = bitcast i64 %x to double
+ ret double %y
+}