summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/deps-fix.ll
diff options
context:
space:
mode:
authorSilviu Baranga <silviu.baranga@arm.com>2012-10-03 08:29:36 +0000
committerSilviu Baranga <silviu.baranga@arm.com>2012-10-03 08:29:36 +0000
commit3c314990e64c891c406d6b5924a8434517d653de (patch)
treed74f1e33191a5ac929211223120be797175b3101 /llvm/test/CodeGen/ARM/deps-fix.ll
parent08e5f49f90a82ab2aacb2fe096a239625eb17e84 (diff)
downloadbcm5719-llvm-3c314990e64c891c406d6b5924a8434517d653de.tar.gz
bcm5719-llvm-3c314990e64c891c406d6b5924a8434517d653de.zip
Fixed a bug in the ExecutionDependencyFix pass that caused dependencies to not propagate through implicit defs.
llvm-svn: 165102
Diffstat (limited to 'llvm/test/CodeGen/ARM/deps-fix.ll')
-rw-r--r--llvm/test/CodeGen/ARM/deps-fix.ll22
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/deps-fix.ll b/llvm/test/CodeGen/ARM/deps-fix.ll
new file mode 100644
index 00000000000..288697a4dc7
--- /dev/null
+++ b/llvm/test/CodeGen/ARM/deps-fix.ll
@@ -0,0 +1,22 @@
+; RUN: llc < %s -march=arm -mcpu=cortex-a9 -mattr=+neon,+neonfp -float-abi=hard -mtriple armv7-linux-gnueabi | FileCheck %s
+
+;; This test checks that the ExecutionDepsFix pass performs the domain changes
+;; even when some dependencies are propagated through implicit definitions.
+
+; CHECK: fun_a
+define <4 x float> @fun_a(<4 x float> %in, <4 x float> %x, float %y) nounwind {
+; CHECK: vext
+; CHECK: vext
+; CHECK: vadd.f32
+ %1 = insertelement <4 x float> %in, float %y, i32 0
+ %2 = fadd <4 x float> %1, %x
+ ret <4 x float> %2
+}
+; CHECK: fun_b
+define <4 x i32> @fun_b(<4 x i32> %in, <4 x i32> %x, i32 %y) nounwind {
+; CHECK: vmov.32
+; CHECK: vadd.i32
+ %1 = insertelement <4 x i32> %in, i32 %y, i32 0
+ %2 = add <4 x i32> %1, %x
+ ret <4 x i32> %2
+}
OpenPOWER on IntegriCloud