diff options
author | Akira Hatanaka <ahatanak@gmail.com> | 2011-08-12 18:12:06 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanak@gmail.com> | 2011-08-12 18:12:06 +0000 |
commit | 2f6b944f563600aa53739c5dd36a9d0b8f60c0cb (patch) | |
tree | 9ae231b8a45575a83cca7ea071299fcaad16ad68 /llvm | |
parent | 444034783e91143300ba43050a25df2e220ac36d (diff) | |
download | bcm5719-llvm-2f6b944f563600aa53739c5dd36a9d0b8f60c0cb.tar.gz bcm5719-llvm-2f6b944f563600aa53739c5dd36a9d0b8f60c0cb.zip |
Test case for 137484
llvm-svn: 137486
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/test/CodeGen/Mips/constantfp0.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/constantfp0.ll b/llvm/test/CodeGen/Mips/constantfp0.ll new file mode 100644 index 00000000000..191f31d0131 --- /dev/null +++ b/llvm/test/CodeGen/Mips/constantfp0.ll @@ -0,0 +1,11 @@ +; RUN: llc -march=mips < %s | FileCheck %s + +define i32 @branch(double %d) nounwind readnone { +entry: +; CHECK: mtc1 $zero, $f[[R0:[0-9]+]] +; CHECK: c.eq.d $f{{[0-9]+}}, $f[[R0]] + + %tobool = fcmp une double %d, 0.000000e+00 + %. = zext i1 %tobool to i32 + ret i32 %. +} |