diff options
author | Daniel Sanders <daniel.sanders@imgtec.com> | 2013-08-28 10:12:09 +0000 |
---|---|---|
committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2013-08-28 10:12:09 +0000 |
commit | f00539cc5a5e66ce6b7ce3779b00fd381e2d2dee (patch) | |
tree | 78c22d1b5795de793767c7483cfe9ce5db1c060d /test/CodeGen/Mips/msa/3rf_int_float.ll | |
parent | a65f149af6fd90f1a849def3c1afb15d741ced2a (diff) | |
download | external_llvm-f00539cc5a5e66ce6b7ce3779b00fd381e2d2dee.zip external_llvm-f00539cc5a5e66ce6b7ce3779b00fd381e2d2dee.tar.gz external_llvm-f00539cc5a5e66ce6b7ce3779b00fd381e2d2dee.tar.bz2 |
[mips][msa] Added f[cs]af, f[cs]or, f[cs]ueq, f[cs]ul[et], f[cs]une, fsun, ftrunc_[su], hadd_[su], hsub_[su], sr[al]r, sr[al]ri
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189467 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/msa/3rf_int_float.ll')
-rw-r--r-- | test/CodeGen/Mips/msa/3rf_int_float.ll | 572 |
1 files changed, 572 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/msa/3rf_int_float.ll b/test/CodeGen/Mips/msa/3rf_int_float.ll index 3d10ad3..819093b 100644 --- a/test/CodeGen/Mips/msa/3rf_int_float.ll +++ b/test/CodeGen/Mips/msa/3rf_int_float.ll @@ -3,6 +3,50 @@ ; RUN: llc -march=mips -mattr=+msa < %s | FileCheck %s +@llvm_mips_fcaf_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 +@llvm_mips_fcaf_w_ARG2 = global <4 x float> <float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00>, align 16 +@llvm_mips_fcaf_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16 + +define void @llvm_mips_fcaf_w_test() nounwind { +entry: + %0 = load <4 x float>* @llvm_mips_fcaf_w_ARG1 + %1 = load <4 x float>* @llvm_mips_fcaf_w_ARG2 + %2 = tail call <4 x i32> @llvm.mips.fcaf.w(<4 x float> %0, <4 x float> %1) + store <4 x i32> %2, <4 x i32>* @llvm_mips_fcaf_w_RES + ret void +} + +declare <4 x i32> @llvm.mips.fcaf.w(<4 x float>, <4 x float>) nounwind + +; CHECK: llvm_mips_fcaf_w_test: +; CHECK: ld.w +; CHECK: ld.w +; CHECK: fcaf.w +; CHECK: st.w +; CHECK: .size llvm_mips_fcaf_w_test +; +@llvm_mips_fcaf_d_ARG1 = global <2 x double> <double 0.000000e+00, double 1.000000e+00>, align 16 +@llvm_mips_fcaf_d_ARG2 = global <2 x double> <double 2.000000e+00, double 3.000000e+00>, align 16 +@llvm_mips_fcaf_d_RES = global <2 x i64> <i64 0, i64 0>, align 16 + +define void @llvm_mips_fcaf_d_test() nounwind { +entry: + %0 = load <2 x double>* @llvm_mips_fcaf_d_ARG1 + %1 = load <2 x double>* @llvm_mips_fcaf_d_ARG2 + %2 = tail call <2 x i64> @llvm.mips.fcaf.d(<2 x double> %0, <2 x double> %1) + store <2 x i64> %2, <2 x i64>* @llvm_mips_fcaf_d_RES + ret void +} + +declare <2 x i64> @llvm.mips.fcaf.d(<2 x double>, <2 x double>) nounwind + +; CHECK: llvm_mips_fcaf_d_test: +; CHECK: ld.d +; CHECK: ld.d +; CHECK: fcaf.d +; CHECK: st.d +; CHECK: .size llvm_mips_fcaf_d_test +; @llvm_mips_fceq_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 @llvm_mips_fceq_w_ARG2 = global <4 x float> <float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00>, align 16 @llvm_mips_fceq_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16 @@ -135,6 +179,50 @@ declare <2 x i64> @llvm.mips.fclt.d(<2 x double>, <2 x double>) nounwind ; CHECK: st.d ; CHECK: .size llvm_mips_fclt_d_test ; +@llvm_mips_fcor_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 +@llvm_mips_fcor_w_ARG2 = global <4 x float> <float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00>, align 16 +@llvm_mips_fcor_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16 + +define void @llvm_mips_fcor_w_test() nounwind { +entry: + %0 = load <4 x float>* @llvm_mips_fcor_w_ARG1 + %1 = load <4 x float>* @llvm_mips_fcor_w_ARG2 + %2 = tail call <4 x i32> @llvm.mips.fcor.w(<4 x float> %0, <4 x float> %1) + store <4 x i32> %2, <4 x i32>* @llvm_mips_fcor_w_RES + ret void +} + +declare <4 x i32> @llvm.mips.fcor.w(<4 x float>, <4 x float>) nounwind + +; CHECK: llvm_mips_fcor_w_test: +; CHECK: ld.w +; CHECK: ld.w +; CHECK: fcor.w +; CHECK: st.w +; CHECK: .size llvm_mips_fcor_w_test +; +@llvm_mips_fcor_d_ARG1 = global <2 x double> <double 0.000000e+00, double 1.000000e+00>, align 16 +@llvm_mips_fcor_d_ARG2 = global <2 x double> <double 2.000000e+00, double 3.000000e+00>, align 16 +@llvm_mips_fcor_d_RES = global <2 x i64> <i64 0, i64 0>, align 16 + +define void @llvm_mips_fcor_d_test() nounwind { +entry: + %0 = load <2 x double>* @llvm_mips_fcor_d_ARG1 + %1 = load <2 x double>* @llvm_mips_fcor_d_ARG2 + %2 = tail call <2 x i64> @llvm.mips.fcor.d(<2 x double> %0, <2 x double> %1) + store <2 x i64> %2, <2 x i64>* @llvm_mips_fcor_d_RES + ret void +} + +declare <2 x i64> @llvm.mips.fcor.d(<2 x double>, <2 x double>) nounwind + +; CHECK: llvm_mips_fcor_d_test: +; CHECK: ld.d +; CHECK: ld.d +; CHECK: fcor.d +; CHECK: st.d +; CHECK: .size llvm_mips_fcor_d_test +; @llvm_mips_fcne_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 @llvm_mips_fcne_w_ARG2 = global <4 x float> <float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00>, align 16 @llvm_mips_fcne_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16 @@ -179,6 +267,138 @@ declare <2 x i64> @llvm.mips.fcne.d(<2 x double>, <2 x double>) nounwind ; CHECK: st.d ; CHECK: .size llvm_mips_fcne_d_test ; +@llvm_mips_fcueq_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 +@llvm_mips_fcueq_w_ARG2 = global <4 x float> <float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00>, align 16 +@llvm_mips_fcueq_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16 + +define void @llvm_mips_fcueq_w_test() nounwind { +entry: + %0 = load <4 x float>* @llvm_mips_fcueq_w_ARG1 + %1 = load <4 x float>* @llvm_mips_fcueq_w_ARG2 + %2 = tail call <4 x i32> @llvm.mips.fcueq.w(<4 x float> %0, <4 x float> %1) + store <4 x i32> %2, <4 x i32>* @llvm_mips_fcueq_w_RES + ret void +} + +declare <4 x i32> @llvm.mips.fcueq.w(<4 x float>, <4 x float>) nounwind + +; CHECK: llvm_mips_fcueq_w_test: +; CHECK: ld.w +; CHECK: ld.w +; CHECK: fcueq.w +; CHECK: st.w +; CHECK: .size llvm_mips_fcueq_w_test +; +@llvm_mips_fcueq_d_ARG1 = global <2 x double> <double 0.000000e+00, double 1.000000e+00>, align 16 +@llvm_mips_fcueq_d_ARG2 = global <2 x double> <double 2.000000e+00, double 3.000000e+00>, align 16 +@llvm_mips_fcueq_d_RES = global <2 x i64> <i64 0, i64 0>, align 16 + +define void @llvm_mips_fcueq_d_test() nounwind { +entry: + %0 = load <2 x double>* @llvm_mips_fcueq_d_ARG1 + %1 = load <2 x double>* @llvm_mips_fcueq_d_ARG2 + %2 = tail call <2 x i64> @llvm.mips.fcueq.d(<2 x double> %0, <2 x double> %1) + store <2 x i64> %2, <2 x i64>* @llvm_mips_fcueq_d_RES + ret void +} + +declare <2 x i64> @llvm.mips.fcueq.d(<2 x double>, <2 x double>) nounwind + +; CHECK: llvm_mips_fcueq_d_test: +; CHECK: ld.d +; CHECK: ld.d +; CHECK: fcueq.d +; CHECK: st.d +; CHECK: .size llvm_mips_fcueq_d_test +; +@llvm_mips_fcult_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 +@llvm_mips_fcult_w_ARG2 = global <4 x float> <float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00>, align 16 +@llvm_mips_fcult_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16 + +define void @llvm_mips_fcult_w_test() nounwind { +entry: + %0 = load <4 x float>* @llvm_mips_fcult_w_ARG1 + %1 = load <4 x float>* @llvm_mips_fcult_w_ARG2 + %2 = tail call <4 x i32> @llvm.mips.fcult.w(<4 x float> %0, <4 x float> %1) + store <4 x i32> %2, <4 x i32>* @llvm_mips_fcult_w_RES + ret void +} + +declare <4 x i32> @llvm.mips.fcult.w(<4 x float>, <4 x float>) nounwind + +; CHECK: llvm_mips_fcult_w_test: +; CHECK: ld.w +; CHECK: ld.w +; CHECK: fcult.w +; CHECK: st.w +; CHECK: .size llvm_mips_fcult_w_test +; +@llvm_mips_fcult_d_ARG1 = global <2 x double> <double 0.000000e+00, double 1.000000e+00>, align 16 +@llvm_mips_fcult_d_ARG2 = global <2 x double> <double 2.000000e+00, double 3.000000e+00>, align 16 +@llvm_mips_fcult_d_RES = global <2 x i64> <i64 0, i64 0>, align 16 + +define void @llvm_mips_fcult_d_test() nounwind { +entry: + %0 = load <2 x double>* @llvm_mips_fcult_d_ARG1 + %1 = load <2 x double>* @llvm_mips_fcult_d_ARG2 + %2 = tail call <2 x i64> @llvm.mips.fcult.d(<2 x double> %0, <2 x double> %1) + store <2 x i64> %2, <2 x i64>* @llvm_mips_fcult_d_RES + ret void +} + +declare <2 x i64> @llvm.mips.fcult.d(<2 x double>, <2 x double>) nounwind + +; CHECK: llvm_mips_fcult_d_test: +; CHECK: ld.d +; CHECK: ld.d +; CHECK: fcult.d +; CHECK: st.d +; CHECK: .size llvm_mips_fcult_d_test +; +@llvm_mips_fcule_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 +@llvm_mips_fcule_w_ARG2 = global <4 x float> <float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00>, align 16 +@llvm_mips_fcule_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16 + +define void @llvm_mips_fcule_w_test() nounwind { +entry: + %0 = load <4 x float>* @llvm_mips_fcule_w_ARG1 + %1 = load <4 x float>* @llvm_mips_fcule_w_ARG2 + %2 = tail call <4 x i32> @llvm.mips.fcule.w(<4 x float> %0, <4 x float> %1) + store <4 x i32> %2, <4 x i32>* @llvm_mips_fcule_w_RES + ret void +} + +declare <4 x i32> @llvm.mips.fcule.w(<4 x float>, <4 x float>) nounwind + +; CHECK: llvm_mips_fcule_w_test: +; CHECK: ld.w +; CHECK: ld.w +; CHECK: fcule.w +; CHECK: st.w +; CHECK: .size llvm_mips_fcule_w_test +; +@llvm_mips_fcule_d_ARG1 = global <2 x double> <double 0.000000e+00, double 1.000000e+00>, align 16 +@llvm_mips_fcule_d_ARG2 = global <2 x double> <double 2.000000e+00, double 3.000000e+00>, align 16 +@llvm_mips_fcule_d_RES = global <2 x i64> <i64 0, i64 0>, align 16 + +define void @llvm_mips_fcule_d_test() nounwind { +entry: + %0 = load <2 x double>* @llvm_mips_fcule_d_ARG1 + %1 = load <2 x double>* @llvm_mips_fcule_d_ARG2 + %2 = tail call <2 x i64> @llvm.mips.fcule.d(<2 x double> %0, <2 x double> %1) + store <2 x i64> %2, <2 x i64>* @llvm_mips_fcule_d_RES + ret void +} + +declare <2 x i64> @llvm.mips.fcule.d(<2 x double>, <2 x double>) nounwind + +; CHECK: llvm_mips_fcule_d_test: +; CHECK: ld.d +; CHECK: ld.d +; CHECK: fcule.d +; CHECK: st.d +; CHECK: .size llvm_mips_fcule_d_test +; @llvm_mips_fcun_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 @llvm_mips_fcun_w_ARG2 = global <4 x float> <float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00>, align 16 @llvm_mips_fcun_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16 @@ -223,6 +443,94 @@ declare <2 x i64> @llvm.mips.fcun.d(<2 x double>, <2 x double>) nounwind ; CHECK: st.d ; CHECK: .size llvm_mips_fcun_d_test ; +@llvm_mips_fcune_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 +@llvm_mips_fcune_w_ARG2 = global <4 x float> <float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00>, align 16 +@llvm_mips_fcune_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16 + +define void @llvm_mips_fcune_w_test() nounwind { +entry: + %0 = load <4 x float>* @llvm_mips_fcune_w_ARG1 + %1 = load <4 x float>* @llvm_mips_fcune_w_ARG2 + %2 = tail call <4 x i32> @llvm.mips.fcune.w(<4 x float> %0, <4 x float> %1) + store <4 x i32> %2, <4 x i32>* @llvm_mips_fcune_w_RES + ret void +} + +declare <4 x i32> @llvm.mips.fcune.w(<4 x float>, <4 x float>) nounwind + +; CHECK: llvm_mips_fcune_w_test: +; CHECK: ld.w +; CHECK: ld.w +; CHECK: fcune.w +; CHECK: st.w +; CHECK: .size llvm_mips_fcune_w_test +; +@llvm_mips_fcune_d_ARG1 = global <2 x double> <double 0.000000e+00, double 1.000000e+00>, align 16 +@llvm_mips_fcune_d_ARG2 = global <2 x double> <double 2.000000e+00, double 3.000000e+00>, align 16 +@llvm_mips_fcune_d_RES = global <2 x i64> <i64 0, i64 0>, align 16 + +define void @llvm_mips_fcune_d_test() nounwind { +entry: + %0 = load <2 x double>* @llvm_mips_fcune_d_ARG1 + %1 = load <2 x double>* @llvm_mips_fcune_d_ARG2 + %2 = tail call <2 x i64> @llvm.mips.fcune.d(<2 x double> %0, <2 x double> %1) + store <2 x i64> %2, <2 x i64>* @llvm_mips_fcune_d_RES + ret void +} + +declare <2 x i64> @llvm.mips.fcune.d(<2 x double>, <2 x double>) nounwind + +; CHECK: llvm_mips_fcune_d_test: +; CHECK: ld.d +; CHECK: ld.d +; CHECK: fcune.d +; CHECK: st.d +; CHECK: .size llvm_mips_fcune_d_test +; +@llvm_mips_fsaf_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 +@llvm_mips_fsaf_w_ARG2 = global <4 x float> <float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00>, align 16 +@llvm_mips_fsaf_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16 + +define void @llvm_mips_fsaf_w_test() nounwind { +entry: + %0 = load <4 x float>* @llvm_mips_fsaf_w_ARG1 + %1 = load <4 x float>* @llvm_mips_fsaf_w_ARG2 + %2 = tail call <4 x i32> @llvm.mips.fsaf.w(<4 x float> %0, <4 x float> %1) + store <4 x i32> %2, <4 x i32>* @llvm_mips_fsaf_w_RES + ret void +} + +declare <4 x i32> @llvm.mips.fsaf.w(<4 x float>, <4 x float>) nounwind + +; CHECK: llvm_mips_fsaf_w_test: +; CHECK: ld.w +; CHECK: ld.w +; CHECK: fsaf.w +; CHECK: st.w +; CHECK: .size llvm_mips_fsaf_w_test +; +@llvm_mips_fsaf_d_ARG1 = global <2 x double> <double 0.000000e+00, double 1.000000e+00>, align 16 +@llvm_mips_fsaf_d_ARG2 = global <2 x double> <double 2.000000e+00, double 3.000000e+00>, align 16 +@llvm_mips_fsaf_d_RES = global <2 x i64> <i64 0, i64 0>, align 16 + +define void @llvm_mips_fsaf_d_test() nounwind { +entry: + %0 = load <2 x double>* @llvm_mips_fsaf_d_ARG1 + %1 = load <2 x double>* @llvm_mips_fsaf_d_ARG2 + %2 = tail call <2 x i64> @llvm.mips.fsaf.d(<2 x double> %0, <2 x double> %1) + store <2 x i64> %2, <2 x i64>* @llvm_mips_fsaf_d_RES + ret void +} + +declare <2 x i64> @llvm.mips.fsaf.d(<2 x double>, <2 x double>) nounwind + +; CHECK: llvm_mips_fsaf_d_test: +; CHECK: ld.d +; CHECK: ld.d +; CHECK: fsaf.d +; CHECK: st.d +; CHECK: .size llvm_mips_fsaf_d_test +; @llvm_mips_fseq_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 @llvm_mips_fseq_w_ARG2 = global <4 x float> <float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00>, align 16 @llvm_mips_fseq_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16 @@ -355,6 +663,50 @@ declare <2 x i64> @llvm.mips.fslt.d(<2 x double>, <2 x double>) nounwind ; CHECK: st.d ; CHECK: .size llvm_mips_fslt_d_test ; +@llvm_mips_fsor_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 +@llvm_mips_fsor_w_ARG2 = global <4 x float> <float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00>, align 16 +@llvm_mips_fsor_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16 + +define void @llvm_mips_fsor_w_test() nounwind { +entry: + %0 = load <4 x float>* @llvm_mips_fsor_w_ARG1 + %1 = load <4 x float>* @llvm_mips_fsor_w_ARG2 + %2 = tail call <4 x i32> @llvm.mips.fsor.w(<4 x float> %0, <4 x float> %1) + store <4 x i32> %2, <4 x i32>* @llvm_mips_fsor_w_RES + ret void +} + +declare <4 x i32> @llvm.mips.fsor.w(<4 x float>, <4 x float>) nounwind + +; CHECK: llvm_mips_fsor_w_test: +; CHECK: ld.w +; CHECK: ld.w +; CHECK: fsor.w +; CHECK: st.w +; CHECK: .size llvm_mips_fsor_w_test +; +@llvm_mips_fsor_d_ARG1 = global <2 x double> <double 0.000000e+00, double 1.000000e+00>, align 16 +@llvm_mips_fsor_d_ARG2 = global <2 x double> <double 2.000000e+00, double 3.000000e+00>, align 16 +@llvm_mips_fsor_d_RES = global <2 x i64> <i64 0, i64 0>, align 16 + +define void @llvm_mips_fsor_d_test() nounwind { +entry: + %0 = load <2 x double>* @llvm_mips_fsor_d_ARG1 + %1 = load <2 x double>* @llvm_mips_fsor_d_ARG2 + %2 = tail call <2 x i64> @llvm.mips.fsor.d(<2 x double> %0, <2 x double> %1) + store <2 x i64> %2, <2 x i64>* @llvm_mips_fsor_d_RES + ret void +} + +declare <2 x i64> @llvm.mips.fsor.d(<2 x double>, <2 x double>) nounwind + +; CHECK: llvm_mips_fsor_d_test: +; CHECK: ld.d +; CHECK: ld.d +; CHECK: fsor.d +; CHECK: st.d +; CHECK: .size llvm_mips_fsor_d_test +; @llvm_mips_fsne_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 @llvm_mips_fsne_w_ARG2 = global <4 x float> <float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00>, align 16 @llvm_mips_fsne_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16 @@ -399,3 +751,223 @@ declare <2 x i64> @llvm.mips.fsne.d(<2 x double>, <2 x double>) nounwind ; CHECK: st.d ; CHECK: .size llvm_mips_fsne_d_test ; +@llvm_mips_fsueq_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 +@llvm_mips_fsueq_w_ARG2 = global <4 x float> <float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00>, align 16 +@llvm_mips_fsueq_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16 + +define void @llvm_mips_fsueq_w_test() nounwind { +entry: + %0 = load <4 x float>* @llvm_mips_fsueq_w_ARG1 + %1 = load <4 x float>* @llvm_mips_fsueq_w_ARG2 + %2 = tail call <4 x i32> @llvm.mips.fsueq.w(<4 x float> %0, <4 x float> %1) + store <4 x i32> %2, <4 x i32>* @llvm_mips_fsueq_w_RES + ret void +} + +declare <4 x i32> @llvm.mips.fsueq.w(<4 x float>, <4 x float>) nounwind + +; CHECK: llvm_mips_fsueq_w_test: +; CHECK: ld.w +; CHECK: ld.w +; CHECK: fsueq.w +; CHECK: st.w +; CHECK: .size llvm_mips_fsueq_w_test +; +@llvm_mips_fsueq_d_ARG1 = global <2 x double> <double 0.000000e+00, double 1.000000e+00>, align 16 +@llvm_mips_fsueq_d_ARG2 = global <2 x double> <double 2.000000e+00, double 3.000000e+00>, align 16 +@llvm_mips_fsueq_d_RES = global <2 x i64> <i64 0, i64 0>, align 16 + +define void @llvm_mips_fsueq_d_test() nounwind { +entry: + %0 = load <2 x double>* @llvm_mips_fsueq_d_ARG1 + %1 = load <2 x double>* @llvm_mips_fsueq_d_ARG2 + %2 = tail call <2 x i64> @llvm.mips.fsueq.d(<2 x double> %0, <2 x double> %1) + store <2 x i64> %2, <2 x i64>* @llvm_mips_fsueq_d_RES + ret void +} + +declare <2 x i64> @llvm.mips.fsueq.d(<2 x double>, <2 x double>) nounwind + +; CHECK: llvm_mips_fsueq_d_test: +; CHECK: ld.d +; CHECK: ld.d +; CHECK: fsueq.d +; CHECK: st.d +; CHECK: .size llvm_mips_fsueq_d_test +; +@llvm_mips_fsult_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 +@llvm_mips_fsult_w_ARG2 = global <4 x float> <float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00>, align 16 +@llvm_mips_fsult_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16 + +define void @llvm_mips_fsult_w_test() nounwind { +entry: + %0 = load <4 x float>* @llvm_mips_fsult_w_ARG1 + %1 = load <4 x float>* @llvm_mips_fsult_w_ARG2 + %2 = tail call <4 x i32> @llvm.mips.fsult.w(<4 x float> %0, <4 x float> %1) + store <4 x i32> %2, <4 x i32>* @llvm_mips_fsult_w_RES + ret void +} + +declare <4 x i32> @llvm.mips.fsult.w(<4 x float>, <4 x float>) nounwind + +; CHECK: llvm_mips_fsult_w_test: +; CHECK: ld.w +; CHECK: ld.w +; CHECK: fsult.w +; CHECK: st.w +; CHECK: .size llvm_mips_fsult_w_test +; +@llvm_mips_fsult_d_ARG1 = global <2 x double> <double 0.000000e+00, double 1.000000e+00>, align 16 +@llvm_mips_fsult_d_ARG2 = global <2 x double> <double 2.000000e+00, double 3.000000e+00>, align 16 +@llvm_mips_fsult_d_RES = global <2 x i64> <i64 0, i64 0>, align 16 + +define void @llvm_mips_fsult_d_test() nounwind { +entry: + %0 = load <2 x double>* @llvm_mips_fsult_d_ARG1 + %1 = load <2 x double>* @llvm_mips_fsult_d_ARG2 + %2 = tail call <2 x i64> @llvm.mips.fsult.d(<2 x double> %0, <2 x double> %1) + store <2 x i64> %2, <2 x i64>* @llvm_mips_fsult_d_RES + ret void +} + +declare <2 x i64> @llvm.mips.fsult.d(<2 x double>, <2 x double>) nounwind + +; CHECK: llvm_mips_fsult_d_test: +; CHECK: ld.d +; CHECK: ld.d +; CHECK: fsult.d +; CHECK: st.d +; CHECK: .size llvm_mips_fsult_d_test +; +@llvm_mips_fsule_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 +@llvm_mips_fsule_w_ARG2 = global <4 x float> <float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00>, align 16 +@llvm_mips_fsule_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16 + +define void @llvm_mips_fsule_w_test() nounwind { +entry: + %0 = load <4 x float>* @llvm_mips_fsule_w_ARG1 + %1 = load <4 x float>* @llvm_mips_fsule_w_ARG2 + %2 = tail call <4 x i32> @llvm.mips.fsule.w(<4 x float> %0, <4 x float> %1) + store <4 x i32> %2, <4 x i32>* @llvm_mips_fsule_w_RES + ret void +} + +declare <4 x i32> @llvm.mips.fsule.w(<4 x float>, <4 x float>) nounwind + +; CHECK: llvm_mips_fsule_w_test: +; CHECK: ld.w +; CHECK: ld.w +; CHECK: fsule.w +; CHECK: st.w +; CHECK: .size llvm_mips_fsule_w_test +; +@llvm_mips_fsule_d_ARG1 = global <2 x double> <double 0.000000e+00, double 1.000000e+00>, align 16 +@llvm_mips_fsule_d_ARG2 = global <2 x double> <double 2.000000e+00, double 3.000000e+00>, align 16 +@llvm_mips_fsule_d_RES = global <2 x i64> <i64 0, i64 0>, align 16 + +define void @llvm_mips_fsule_d_test() nounwind { +entry: + %0 = load <2 x double>* @llvm_mips_fsule_d_ARG1 + %1 = load <2 x double>* @llvm_mips_fsule_d_ARG2 + %2 = tail call <2 x i64> @llvm.mips.fsule.d(<2 x double> %0, <2 x double> %1) + store <2 x i64> %2, <2 x i64>* @llvm_mips_fsule_d_RES + ret void +} + +declare <2 x i64> @llvm.mips.fsule.d(<2 x double>, <2 x double>) nounwind + +; CHECK: llvm_mips_fsule_d_test: +; CHECK: ld.d +; CHECK: ld.d +; CHECK: fsule.d +; CHECK: st.d +; CHECK: .size llvm_mips_fsule_d_test +; +@llvm_mips_fsun_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 +@llvm_mips_fsun_w_ARG2 = global <4 x float> <float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00>, align 16 +@llvm_mips_fsun_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16 + +define void @llvm_mips_fsun_w_test() nounwind { +entry: + %0 = load <4 x float>* @llvm_mips_fsun_w_ARG1 + %1 = load <4 x float>* @llvm_mips_fsun_w_ARG2 + %2 = tail call <4 x i32> @llvm.mips.fsun.w(<4 x float> %0, <4 x float> %1) + store <4 x i32> %2, <4 x i32>* @llvm_mips_fsun_w_RES + ret void +} + +declare <4 x i32> @llvm.mips.fsun.w(<4 x float>, <4 x float>) nounwind + +; CHECK: llvm_mips_fsun_w_test: +; CHECK: ld.w +; CHECK: ld.w +; CHECK: fsun.w +; CHECK: st.w +; CHECK: .size llvm_mips_fsun_w_test +; +@llvm_mips_fsun_d_ARG1 = global <2 x double> <double 0.000000e+00, double 1.000000e+00>, align 16 +@llvm_mips_fsun_d_ARG2 = global <2 x double> <double 2.000000e+00, double 3.000000e+00>, align 16 +@llvm_mips_fsun_d_RES = global <2 x i64> <i64 0, i64 0>, align 16 + +define void @llvm_mips_fsun_d_test() nounwind { +entry: + %0 = load <2 x double>* @llvm_mips_fsun_d_ARG1 + %1 = load <2 x double>* @llvm_mips_fsun_d_ARG2 + %2 = tail call <2 x i64> @llvm.mips.fsun.d(<2 x double> %0, <2 x double> %1) + store <2 x i64> %2, <2 x i64>* @llvm_mips_fsun_d_RES + ret void +} + +declare <2 x i64> @llvm.mips.fsun.d(<2 x double>, <2 x double>) nounwind + +; CHECK: llvm_mips_fsun_d_test: +; CHECK: ld.d +; CHECK: ld.d +; CHECK: fsun.d +; CHECK: st.d +; CHECK: .size llvm_mips_fsun_d_test +; +@llvm_mips_fsune_w_ARG1 = global <4 x float> <float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00>, align 16 +@llvm_mips_fsune_w_ARG2 = global <4 x float> <float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00>, align 16 +@llvm_mips_fsune_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16 + +define void @llvm_mips_fsune_w_test() nounwind { +entry: + %0 = load <4 x float>* @llvm_mips_fsune_w_ARG1 + %1 = load <4 x float>* @llvm_mips_fsune_w_ARG2 + %2 = tail call <4 x i32> @llvm.mips.fsune.w(<4 x float> %0, <4 x float> %1) + store <4 x i32> %2, <4 x i32>* @llvm_mips_fsune_w_RES + ret void +} + +declare <4 x i32> @llvm.mips.fsune.w(<4 x float>, <4 x float>) nounwind + +; CHECK: llvm_mips_fsune_w_test: +; CHECK: ld.w +; CHECK: ld.w +; CHECK: fsune.w +; CHECK: st.w +; CHECK: .size llvm_mips_fsune_w_test +; +@llvm_mips_fsune_d_ARG1 = global <2 x double> <double 0.000000e+00, double 1.000000e+00>, align 16 +@llvm_mips_fsune_d_ARG2 = global <2 x double> <double 2.000000e+00, double 3.000000e+00>, align 16 +@llvm_mips_fsune_d_RES = global <2 x i64> <i64 0, i64 0>, align 16 + +define void @llvm_mips_fsune_d_test() nounwind { +entry: + %0 = load <2 x double>* @llvm_mips_fsune_d_ARG1 + %1 = load <2 x double>* @llvm_mips_fsune_d_ARG2 + %2 = tail call <2 x i64> @llvm.mips.fsune.d(<2 x double> %0, <2 x double> %1) + store <2 x i64> %2, <2 x i64>* @llvm_mips_fsune_d_RES + ret void +} + +declare <2 x i64> @llvm.mips.fsune.d(<2 x double>, <2 x double>) nounwind + +; CHECK: llvm_mips_fsune_d_test: +; CHECK: ld.d +; CHECK: ld.d +; CHECK: fsune.d +; CHECK: st.d +; CHECK: .size llvm_mips_fsune_d_test +; |