Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Commit

Permalink
add testcase for regression
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46073 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Jan 16, 2008
1 parent 5f1f6cd commit b4b8c0e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/CodeGen/PowerPC/longdbl-truncate.ll
@@ -0,0 +1,9 @@
; RUN: llvm-as < %s | llc
target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f128:64:128"
target triple = "powerpc-apple-darwin8"

define double @SolveCubic(ppc_fp128 %X) {
entry:
%Y = fptrunc ppc_fp128 %X to double
ret double %Y
}

0 comments on commit b4b8c0e

Please sign in to comment.