summaryrefslogtreecommitdiff
path: root/test/CodeGen/PowerPC/i64_fp_round.ll
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-04-01 17:52:07 +0000
committerHal Finkel <hfinkel@anl.gov>2013-04-01 17:52:07 +0000
commit46479197843ecb651adc9417c49bbd1b00acfcb6 (patch)
tree143df888333c2baabf6cf07c8ef7297b86b5035c /test/CodeGen/PowerPC/i64_fp_round.ll
parenta1f4290ac94f34173e3561c717390de07dccc646 (diff)
downloadllvm-46479197843ecb651adc9417c49bbd1b00acfcb6.tar.gz
llvm-46479197843ecb651adc9417c49bbd1b00acfcb6.tar.bz2
llvm-46479197843ecb651adc9417c49bbd1b00acfcb6.tar.xz
Add more PPC floating-point conversion instructions
The P7 and A2 have additional floating-point conversion instructions which allow a direct two-instruction sequence (plus load/store) to convert from all combinations (signed/unsigned i32/i64) <--> (float/double) (on previous cores, only some combinations were directly available). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178480 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/i64_fp_round.ll')
-rw-r--r--test/CodeGen/PowerPC/i64_fp_round.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/PowerPC/i64_fp_round.ll b/test/CodeGen/PowerPC/i64_fp_round.ll
index 5ae1be8953..d2a3239ab8 100644
--- a/test/CodeGen/PowerPC/i64_fp_round.ll
+++ b/test/CodeGen/PowerPC/i64_fp_round.ll
@@ -1,4 +1,4 @@
-; RUN: llc -mcpu=pwr7 < %s | FileCheck %s
+; RUN: llc -mcpu=pwr7 -mattr=-fpcvt < %s | FileCheck %s
target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"
target triple = "powerpc64-unknown-linux-gnu"
@@ -22,6 +22,6 @@ entry:
; Also check that with -enable-unsafe-fp-math we do not get that extra
; code sequence. Simply verify that there is no "isel" present.
-; RUN: llc -mcpu=pwr7 -enable-unsafe-fp-math < %s | FileCheck %s -check-prefix=UNSAFE
+; RUN: llc -mcpu=pwr7 -mattr=-fpcvt -enable-unsafe-fp-math < %s | FileCheck %s -check-prefix=UNSAFE
; CHECK-UNSAFE-NOT: isel