diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-07-16 23:56:51 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-07-16 23:56:51 +0000 |
commit | 1bda7863e37180d5c371bab58ceaab0bd8c290d1 (patch) | |
tree | 37ea87810327257e110ab0d773b6df3858922f0f /test/CodeGen/Mips/selectcc.ll | |
parent | b885dc8d39fd5ffe4be01059ca6d8977374db02f (diff) | |
download | external_llvm-1bda7863e37180d5c371bab58ceaab0bd8c290d1.zip external_llvm-1bda7863e37180d5c371bab58ceaab0bd8c290d1.tar.gz external_llvm-1bda7863e37180d5c371bab58ceaab0bd8c290d1.tar.bz2 |
Fix function select_cc_f32 in test/CodeGen/Mips/selectcc.ll.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160329 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/selectcc.ll')
-rw-r--r-- | test/CodeGen/Mips/selectcc.ll | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/CodeGen/Mips/selectcc.ll b/test/CodeGen/Mips/selectcc.ll index d7d674b..a17517e 100644 --- a/test/CodeGen/Mips/selectcc.ll +++ b/test/CodeGen/Mips/selectcc.ll @@ -1,16 +1,18 @@ -; RUN: llc -march=mipsel < %s +; RUN: llc -march=mipsel < %s +@gf0 = external global float +@gf1 = external global float @gd0 = external global double @gd1 = external global double -define double @select_cc_f32(float %a, float %b) nounwind { +define float @select_cc_f32(float %a, float %b) nounwind { entry: - store double 0.000000e+00, double* @gd0, align 8 - store double 1.000000e+00, double* @gd1, align 8 + store float 0.000000e+00, float* @gf0, align 4 + store float 1.000000e+00, float* @gf1, align 4 %cmp = fcmp olt float %a, %b %conv = zext i1 %cmp to i32 - %conv1 = sitofp i32 %conv to double - ret double %conv1 + %conv1 = sitofp i32 %conv to float + ret float %conv1 } define double @select_cc_f64(double %a, double %b) nounwind { |