summaryrefslogtreecommitdiff
path: root/test/CodeGen/SPARC
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2013-05-20 00:53:25 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2013-05-20 00:53:25 +0000
commit5e5b78ca364ee61c6963070e5a5a346499ab6ee2 (patch)
tree9f3cabed66315c83840494e066f5cf9668c531fb /test/CodeGen/SPARC
parent900622e099054da4a213074581d8501ac27e7ea7 (diff)
downloadllvm-5e5b78ca364ee61c6963070e5a5a346499ab6ee2.tar.gz
llvm-5e5b78ca364ee61c6963070e5a5a346499ab6ee2.tar.bz2
llvm-5e5b78ca364ee61c6963070e5a5a346499ab6ee2.tar.xz
Implement spill and fill of I64Regs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/SPARC')
-rw-r--r--test/CodeGen/SPARC/64bit.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/SPARC/64bit.ll b/test/CodeGen/SPARC/64bit.ll
index e10237b7d8..c9413b7352 100644
--- a/test/CodeGen/SPARC/64bit.ll
+++ b/test/CodeGen/SPARC/64bit.ll
@@ -201,3 +201,11 @@ define i32 @expand_setcc(i64 %a) {
%RV = sub i32 1, %cast2
ret i32 %RV
}
+
+; CHECK: spill_i64
+; CHECK: stx
+; CHECK: ldx
+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
+}