diff options
author | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2007-01-04 14:24:32 +0000 |
---|---|---|
committer | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2007-01-04 14:24:32 +0000 |
commit | 4c6676c918bf3ff0cedce4ce4aa783d3b823706f (patch) | |
tree | 542528e054e34f0904eaefb997985653ee0c5b4c /test | |
parent | ca1f66db0d151a721a18039082afa54f5d454124 (diff) | |
download | external_llvm-4c6676c918bf3ff0cedce4ce4aa783d3b823706f.zip external_llvm-4c6676c918bf3ff0cedce4ce4aa783d3b823706f.tar.gz external_llvm-4c6676c918bf3ff0cedce4ce4aa783d3b823706f.tar.bz2 |
Add test for FCOPYSIGN.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32871 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/ARM/fcopysign.ll | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/fcopysign.ll b/test/CodeGen/ARM/fcopysign.ll new file mode 100644 index 0000000..e22c8c8 --- /dev/null +++ b/test/CodeGen/ARM/fcopysign.ll @@ -0,0 +1,21 @@ +; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm + +define csretcc void %__divsc3({ float, float }* %agg.result, float %a, float %b, float %c, float %d) { +entry: + br bool false, label %bb, label %cond_next375 + +bb: ; preds = %entry + %tmp81 = tail call float %copysignf( float 0x7FF0000000000000, float %c ) ; <float> [#uses=1] + %tmp87 = mul float %tmp81, %b ; <float> [#uses=1] + br label %cond_next375 + +cond_next375: ; preds = %bb, %entry + %y.1 = phi float [ %tmp87, %bb ], [ 0.000000e+00, %entry ] ; <float> [#uses=0] + ret void +} + +declare float %fabsf(float) + +declare bool %llvm.isunordered.f32(float, float) + +declare float %copysignf(float, float) |