xref: /aosp_15_r20/external/llvm/test/CodeGen/ARM/deps-fix.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=arm -mcpu=cortex-a9 -mattr=+neon,+neonfp -float-abi=hard -mtriple armv7-linux-gnueabi | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker;; This test checks that the ExecutionDepsFix pass performs the domain changes
4*9880d681SAndroid Build Coastguard Worker;; even when some dependencies are propagated through implicit definitions.
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker; CHECK: fun_a
7*9880d681SAndroid Build Coastguard Workerdefine <4 x float> @fun_a(<4 x float> %in, <4 x float> %x, float %y) nounwind {
8*9880d681SAndroid Build Coastguard Worker; CHECK: vext
9*9880d681SAndroid Build Coastguard Worker; CHECK: vext
10*9880d681SAndroid Build Coastguard Worker; CHECK: vadd.f32
11*9880d681SAndroid Build Coastguard Worker  %1 = insertelement <4 x float> %in, float %y, i32 0
12*9880d681SAndroid Build Coastguard Worker  %2 = fadd <4 x float> %1, %x
13*9880d681SAndroid Build Coastguard Worker  ret <4 x float> %2
14*9880d681SAndroid Build Coastguard Worker}
15*9880d681SAndroid Build Coastguard Worker; CHECK: fun_b
16*9880d681SAndroid Build Coastguard Workerdefine <4 x i32> @fun_b(<4 x i32> %in, <4 x i32> %x, i32 %y) nounwind {
17*9880d681SAndroid Build Coastguard Worker; CHECK: vmov.32
18*9880d681SAndroid Build Coastguard Worker; CHECK: vadd.i32
19*9880d681SAndroid Build Coastguard Worker  %1 = insertelement <4 x i32> %in, i32 %y, i32 0
20*9880d681SAndroid Build Coastguard Worker  %2 = add <4 x i32> %1, %x
21*9880d681SAndroid Build Coastguard Worker  ret <4 x i32> %2
22*9880d681SAndroid Build Coastguard Worker}
23