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 | f89532f8f64a638c7686013c7a2148a2928cb1db (patch) | |
tree | 0712f734220fdcc06c63027fda8ea35521ad289e /test/CodeGen/Mips/double2int.ll | |
parent | 9728ea2447e689ae6e884cf044f226b99c4a47da (diff) |
Add pattern for double-to-integer conversion. Patch by Sasa Stankovic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/double2int.ll')
-rw-r--r-- | test/CodeGen/Mips/double2int.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/double2int.ll b/test/CodeGen/Mips/double2int.ll new file mode 100644 index 0000000000..3d033e1d10 --- /dev/null +++ b/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 +} |