xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/scalar-extract.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=x86 -mattr=+mmx -o %t
2*9880d681SAndroid Build Coastguard Worker; RUN: not grep movq  %t
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker; Check that widening doesn't introduce a mmx register in this case when
5*9880d681SAndroid Build Coastguard Worker; a simple load/store would suffice.
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workerdefine void @foo(<2 x i16>* %A, <2 x i16>* %B) {
8*9880d681SAndroid Build Coastguard Workerentry:
9*9880d681SAndroid Build Coastguard Worker	%tmp1 = load <2 x i16>, <2 x i16>* %A		; <<2 x i16>> [#uses=1]
10*9880d681SAndroid Build Coastguard Worker	store <2 x i16> %tmp1, <2 x i16>* %B
11*9880d681SAndroid Build Coastguard Worker	ret void
12*9880d681SAndroid Build Coastguard Worker}
13*9880d681SAndroid Build Coastguard Worker
14