diff options
author | Akira Hatanaka <ahatanak@gmail.com> | 2011-05-23 22:16:43 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanak@gmail.com> | 2011-05-23 22:16:43 +0000 |
commit | 6af5bd25378d997d60035dae9ae00bc10c46611e (patch) | |
tree | 5e4ce5bf46ed92796d2096083dda8ff50bef6703 /llvm/test/CodeGen | |
parent | efec7715ec419c4f48f6d0416ace8045603637a0 (diff) | |
download | bcm5719-llvm-6af5bd25378d997d60035dae9ae00bc10c46611e.tar.gz bcm5719-llvm-6af5bd25378d997d60035dae9ae00bc10c46611e.zip |
Add pattern for double-to-integer conversion. Patch by Sasa Stankovic.
llvm-svn: 131927
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r-- | llvm/test/CodeGen/Mips/double2int.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/double2int.ll b/llvm/test/CodeGen/Mips/double2int.ll new file mode 100644 index 00000000000..3d033e1d100 --- /dev/null +++ b/llvm/test/CodeGen/Mips/double2int.ll @@ -0,0 +1,8 @@ +; RUN: llc -march=mips -mcpu=4ke < %s | FileCheck %s + +define i32 @f1(double %d) nounwind readnone { +entry: +; CHECK: trunc.w.d $f{{[0-9]+}}, $f12 + %conv = fptosi double %d to i32 + ret i32 %conv +} |