1; RUN: llc -verify-machineinstrs -mtriple=x86_64-unknown-unknown -mcpu=generic -mattr=+avx < %s | FileCheck %s 2 3; When commuting a VADDSDrr instruction, verify that the 'IsUndef' flag is 4; correctly propagated to the operands of the resulting instruction. 5; Test for PR23103; 6 7declare zeroext i1 @foo(<1 x double>) 8 9define <1 x double> @pr23103(<1 x double>* align 8 %Vp) { 10; CHECK-LABEL: pr23103: 11; CHECK: vmovsd (%rdi), %xmm0 12; CHECK-NEXT: vmovsd %xmm0, {{.*}}(%rsp) {{.*#+}} 8-byte Spill 13; CHECK-NEXT: callq foo 14; CHECK-NEXT: vaddsd {{.*}}(%rsp), %xmm0, %xmm0 {{.*#+}} 8-byte Folded Reload 15; CHECK: retq 16entry: 17 %V = load <1 x double>, <1 x double>* %Vp, align 8 18 %call = call zeroext i1 @foo(<1 x double> %V) 19 %fadd = fadd <1 x double> %V, undef 20 ret <1 x double> %fadd 21} 22