diff options
author | Silviu Baranga <silviu.baranga@arm.com> | 2012-10-03 08:29:36 +0000 |
---|---|---|
committer | Silviu Baranga <silviu.baranga@arm.com> | 2012-10-03 08:29:36 +0000 |
commit | 541a858f1a4e65a714fe54293d43d0861cd12b8f (patch) | |
tree | 8b635258c07f74fece802bd5ef590e3239edad91 /test | |
parent | 322e9ba2cb92330a345bd6e606c64a7b16bd929f (diff) | |
download | external_llvm-541a858f1a4e65a714fe54293d43d0861cd12b8f.zip external_llvm-541a858f1a4e65a714fe54293d43d0861cd12b8f.tar.gz external_llvm-541a858f1a4e65a714fe54293d43d0861cd12b8f.tar.bz2 |
Fixed a bug in the ExecutionDependencyFix pass that caused dependencies to not propagate through implicit defs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165102 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/ARM/deps-fix.ll | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/deps-fix.ll b/test/CodeGen/ARM/deps-fix.ll new file mode 100644 index 0000000..288697a --- /dev/null +++ b/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 +} |