summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/SystemZ/fp-const-09.ll
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2013-05-06 16:17:29 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2013-05-06 16:17:29 +0000
commit9e3577ff44fe5360c72fad02fbe931977f9235fb (patch)
tree23b3903f13f5307e8ee2d834a01ca56fc86b88ed /llvm/test/CodeGen/SystemZ/fp-const-09.ll
parent5f613dfd1f7edb0ae95d521b7107b582d9df5103 (diff)
downloadbcm5719-llvm-9e3577ff44fe5360c72fad02fbe931977f9235fb.tar.gz
bcm5719-llvm-9e3577ff44fe5360c72fad02fbe931977f9235fb.zip
[SystemZ] Add CodeGen test cases
This adds all CodeGen tests for the SystemZ target. This version of the patch incorporates feedback from a review by Sean Silva. Thanks to all reviewers! Patch by Richard Sandiford. llvm-svn: 181204
Diffstat (limited to 'llvm/test/CodeGen/SystemZ/fp-const-09.ll')
-rw-r--r--llvm/test/CodeGen/SystemZ/fp-const-09.ll20
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/SystemZ/fp-const-09.ll b/llvm/test/CodeGen/SystemZ/fp-const-09.ll
new file mode 100644
index 00000000000..435dcbacc19
--- /dev/null
+++ b/llvm/test/CodeGen/SystemZ/fp-const-09.ll
@@ -0,0 +1,20 @@
+; Test loads of 128-bit floating-point constants in which the low bit of
+; the significand is set.
+;
+; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s -check-prefix=CONST
+
+define void @f1(fp128 *%x) {
+; CHECK: f1:
+; CHECK: larl [[REGISTER:%r[1-5]+]], {{.*}}
+; CHECK: ld %f0, 0([[REGISTER]])
+; CHECK: ld %f2, 8([[REGISTER]])
+; CHECK: std %f0, 0(%r2)
+; CHECK: std %f2, 8(%r2)
+; CHECK: br %r14
+;
+; CONST: .quad 4611404543450677248
+; CONST: .quad 1
+ store fp128 0xL00000000000000013fff000000000000, fp128 *%x
+ ret void
+}
OpenPOWER on IntegriCloud