From a8f8a3ef268001033c170830aa3d3a7154f77f75 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 17 Oct 2006 20:20:07 +0000 Subject: [PATCH] cleanup some tests llvm-svn: 31010 --- test/Regression/CodeGen/ARM/fp.ll | 34 ++----------------- test/Regression/CodeGen/ARM/fpcmp.ll | 8 +---- test/Regression/CodeGen/ARM/fpconv.ll | 48 ++++++++++++++++++++++----- 3 files changed, 44 insertions(+), 46 deletions(-) diff --git a/test/Regression/CodeGen/ARM/fp.ll b/test/Regression/CodeGen/ARM/fp.ll index 510adc3ebf8..681ccc1bf60 100644 --- a/test/Regression/CodeGen/ARM/fp.ll +++ b/test/Regression/CodeGen/ARM/fp.ll @@ -1,42 +1,14 @@ ; RUN: llvm-as < %s | llc -march=arm && -; RUN: llvm-as < %s | llc -march=arm | grep fmsr | wc -l | grep 5 && -; RUN: llvm-as < %s | llc -march=arm | grep fsitos && +; RUN: llvm-as < %s | llc -march=arm | grep fmsr && ; RUN: llvm-as < %s | llc -march=arm | grep fmrs && -; RUN: llvm-as < %s | llc -march=arm | grep fsitod && -; RUN: llvm-as < %s | llc -march=arm | grep fmrrd | wc -l | grep 5 && -; RUN: llvm-as < %s | llc -march=arm | grep fmdrr | wc -l | grep 3 && +; RUN: llvm-as < %s | llc -march=arm | grep fmrrd && +; RUN: llvm-as < %s | llc -march=arm | grep fmdrr && ; RUN: llvm-as < %s | llc -march=arm | grep fldd && ; RUN: llvm-as < %s | llc -march=arm | grep flds && ; RUN: llvm-as < %s | llc -march=arm | grep fstd && ; RUN: llvm-as < %s | llc -march=arm | grep fsts && -; RUN: llvm-as < %s | llc -march=arm | grep fuitod && -; RUN: llvm-as < %s | llc -march=arm | grep fuitos && ; RUN: llvm-as < %s | llc -march=arm | grep ".word.*1065353216" -float %f(int %a) { -entry: - %tmp = cast int %a to float ; [#uses=1] - ret float %tmp -} - -double %g(int %a) { -entry: - %tmp = cast int %a to double ; [#uses=1] - ret double %tmp -} - -double %uint_to_double(uint %a) { -entry: - %tmp = cast uint %a to double - ret double %tmp -} - -float %uint_to_float(uint %a) { -entry: - %tmp = cast uint %a to float - ret float %tmp -} - double %h(double* %v) { entry: diff --git a/test/Regression/CodeGen/ARM/fpcmp.ll b/test/Regression/CodeGen/ARM/fpcmp.ll index 16e9a1b1405..61dc489356e 100644 --- a/test/Regression/CodeGen/ARM/fpcmp.ll +++ b/test/Regression/CodeGen/ARM/fpcmp.ll @@ -4,6 +4,7 @@ ; RUN: llvm-as < %s | llc -march=arm | grep movgt && ; RUN: llvm-as < %s | llc -march=arm | grep movge && ; RUN: llvm-as < %s | llc -march=arm | grep movls && +; RUN: llvm-as < %s | llc -march=arm | grep movne && ; RUN: llvm-as < %s | llc -march=arm | grep fcmps && ; RUN: llvm-as < %s | llc -march=arm | grep fcmpd @@ -55,10 +56,3 @@ entry: %tmp = cast bool %tmp to int ; [#uses=1] ret int %tmp } - -int %g2(double %a) { -entry: - %tmp = setne double %a, 1.000000e+00 ; [#uses=1] - %tmp = cast bool %tmp to int ; [#uses=1] - ret int %tmp -} diff --git a/test/Regression/CodeGen/ARM/fpconv.ll b/test/Regression/CodeGen/ARM/fpconv.ll index 863c2e957b6..a86feb6c05b 100644 --- a/test/Regression/CodeGen/ARM/fpconv.ll +++ b/test/Regression/CodeGen/ARM/fpconv.ll @@ -1,6 +1,14 @@ ; RUN: llvm-as < %s | llc -march=arm && +; RUN: llvm-as < %s | llc -march=arm | grep fcvtsd && ; RUN: llvm-as < %s | llc -march=arm | grep fcvtds && -; RUN: llvm-as < %s | llc -march=arm | grep fcvtsd +; RUN: llvm-as < %s | llc -march=arm | grep ftosis && +; RUN: llvm-as < %s | llc -march=arm | grep ftouis && +; RUN: llvm-as < %s | llc -march=arm | grep ftosid && +; RUN: llvm-as < %s | llc -march=arm | grep ftouid && +; RUN: llvm-as < %s | llc -march=arm | grep fsitos && +; RUN: llvm-as < %s | llc -march=arm | grep fsitod && +; RUN: llvm-as < %s | llc -march=arm | grep fuitos && +; RUN: llvm-as < %s | llc -march=arm | grep fuitod float %f1(double %x) { entry: @@ -20,20 +28,44 @@ entry: ret int %tmp } -int %f4(double %x) { -entry: - %tmp = cast double %x to int - ret int %tmp -} - -uint %f5(float %x) { +uint %f4(float %x) { entry: %tmp = cast float %x to uint ret uint %tmp } +int %f5(double %x) { +entry: + %tmp = cast double %x to int + ret int %tmp +} + uint %f6(double %x) { entry: %tmp = cast double %x to uint ret uint %tmp } + +float %f7(int %a) { +entry: + %tmp = cast int %a to float + ret float %tmp +} + +double %f8(int %a) { +entry: + %tmp = cast int %a to double + ret double %tmp +} + +float %f9(uint %a) { +entry: + %tmp = cast uint %a to float + ret float %tmp +} + +double %f10(uint %a) { +entry: + %tmp = cast uint %a to double + ret double %tmp +}