[llvm] r278034 - Re-add SystemZ SNaN test

Elliot Colp via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 8 11:11:14 PDT 2016


Author: colpell
Date: Mon Aug  8 13:11:13 2016
New Revision: 278034

URL: http://llvm.org/viewvc/llvm-project?rev=278034&view=rev
Log:
Re-add SystemZ SNaN test

The floating-point bug affecting ninja-x64-msvc-RA-centos6 is fixed (r277813) so this test should
now pass

Added:
    llvm/trunk/test/CodeGen/SystemZ/fp-const-10.ll

Added: llvm/trunk/test/CodeGen/SystemZ/fp-const-10.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SystemZ/fp-const-10.ll?rev=278034&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/SystemZ/fp-const-10.ll (added)
+++ llvm/trunk/test/CodeGen/SystemZ/fp-const-10.ll Mon Aug  8 13:11:13 2016
@@ -0,0 +1,15 @@
+; Test loads of SNaN.
+;
+; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
+
+; Test that we don't do an FP extending load, as this would result in a
+; converstion to QNaN.
+define double @f1() {
+; CHECK-LABEL: .LCPI0_0
+; CHECK:      .quad   9219994337134247936
+; CHECK-LABEL: f1:
+; CHECK:      larl    %r1, .LCPI0_0
+; CHECK-NOT:  ldeb    %f0, 0(%r1)
+; CHECK:      ld      %f0, 0(%r1)
+  ret double 0x7FF4000000000000
+}




More information about the llvm-commits mailing list