aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Mips/buildpairextractelementf64.ll
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2013-08-20 23:47:25 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2013-08-20 23:47:25 +0000
commitb1f4f120a50c392c85c6b4388d63e36251fce279 (patch)
tree4ad1d124db9fc00ee2638bbe924932c031935305 /test/CodeGen/Mips/buildpairextractelementf64.ll
parentad341d48f0fc131d1c31a0c824736e70c34e0476 (diff)
downloadexternal_llvm-b1f4f120a50c392c85c6b4388d63e36251fce279.zip
external_llvm-b1f4f120a50c392c85c6b4388d63e36251fce279.tar.gz
external_llvm-b1f4f120a50c392c85c6b4388d63e36251fce279.tar.bz2
[mips] Add support for mfhc1 and mthc1.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/buildpairextractelementf64.ll')
-rw-r--r--test/CodeGen/Mips/buildpairextractelementf64.ll23
1 files changed, 17 insertions, 6 deletions
diff --git a/test/CodeGen/Mips/buildpairextractelementf64.ll b/test/CodeGen/Mips/buildpairextractelementf64.ll
index 585bc25..490d427 100644
--- a/test/CodeGen/Mips/buildpairextractelementf64.ll
+++ b/test/CodeGen/Mips/buildpairextractelementf64.ll
@@ -1,20 +1,31 @@
-; RUN: llc < %s -march=mipsel | FileCheck %s
-; RUN: llc < %s -march=mips | FileCheck %s
+; RUN: llc -march=mipsel < %s | FileCheck %s -check-prefix=FP32
+; RUN: llc -march=mips < %s | FileCheck %s -check-prefix=FP32
+; RUN: llc -march=mipsel -mattr=+fp64 < %s | FileCheck %s -check-prefix=FP64
+; RUN: llc -march=mips -mattr=+fp64 < %s | FileCheck %s -check-prefix=FP64
+
@a = external global i32
+; CHECK-LABEL: f:
+; FP32: mtc1
+; FP32: mtc1
+; FP64-DAG: mtc1
+; FP64-DAG: mthc1
+
define double @f(i32 %a1, double %d) nounwind {
entry:
-; CHECK: mtc1
-; CHECK: mtc1
store i32 %a1, i32* @a, align 4
%add = fadd double %d, 2.000000e+00
ret double %add
}
+; CHECK-LABEL: f3:
+; FP32: mfc1
+; FP32: mfc1
+; FP64-DAG: mfc1
+; FP64-DAG: mfhc1
+
define void @f3(double %d, i32 %a1) nounwind {
entry:
-; CHECK: mfc1
-; CHECK: mfc1
tail call void @f2(i32 %a1, double %d) nounwind
ret void
}