~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/PowerPC/i64_fp.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; fcfid and fctid should be generated when the 64bit feature is enabled, but not
 
2
; otherwise.
 
3
 
 
4
; RUN: llc < %s -mattr=-vsx -march=ppc32 -mattr=+64bit | \
 
5
; RUN:   grep fcfid
 
6
; RUN: llc < %s -mattr=-vsx -march=ppc32 -mattr=+64bit | \
 
7
; RUN:   grep fctidz
 
8
; RUN: llc < %s -mattr=-vsx -march=ppc32 -mcpu=g5 | \
 
9
; RUN:   grep fcfid
 
10
; RUN: llc < %s -mattr=-vsx -march=ppc32 -mcpu=g5 | \
 
11
; RUN:   grep fctidz
 
12
; RUN: llc < %s -mattr=-vsx -march=ppc32 -mattr=-64bit | \
 
13
; RUN:   not grep fcfid
 
14
; RUN: llc < %s -mattr=-vsx -march=ppc32 -mattr=-64bit | \
 
15
; RUN:   not grep fctidz
 
16
; RUN: llc < %s -mattr=-vsx -march=ppc32 -mcpu=g4 | \
 
17
; RUN:   not grep fcfid
 
18
; RUN: llc < %s -mattr=-vsx -march=ppc32 -mcpu=g4 | \
 
19
; RUN:   not grep fctidz
 
20
 
 
21
define double @X(double %Y) {
 
22
        %A = fptosi double %Y to i64            ; <i64> [#uses=1]
 
23
        %B = sitofp i64 %A to double            ; <double> [#uses=1]
 
24
        ret double %B
 
25
}
 
26