brintos

brintos / llvm-project-archived public Read only

0
0
Text · 954 B · 2142ae8 Raw
27 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -verify-machineinstrs -mtriple=x86_64-unknown-unknown -mcpu=generic -mattr=+avx < %s | FileCheck %s3 4; When commuting a VADDSDrr instruction, verify that the 'IsUndef' flag is5; correctly propagated to the operands of the resulting instruction.6; Test for PR23103;7 8declare zeroext i1 @foo(<1 x double>)9 10define <1 x double> @pr23103(ptr align 8 %Vp) {11; CHECK-LABEL: pr23103:12; CHECK:       # %bb.0: # %entry13; CHECK-NEXT:    pushq %rax14; CHECK-NEXT:    .cfi_def_cfa_offset 1615; CHECK-NEXT:    vmovsd {{.*#+}} xmm0 = mem[0],zero16; CHECK-NEXT:    callq foo@PLT17; CHECK-NEXT:    vmovsd {{.*#+}} xmm0 = [NaN,0.0E+0]18; CHECK-NEXT:    popq %rax19; CHECK-NEXT:    .cfi_def_cfa_offset 820; CHECK-NEXT:    retq21entry:22  %V = load <1 x double>, ptr %Vp, align 823  %call = call zeroext i1 @foo(<1 x double> %V)24  %fadd = fadd <1 x double> %V, undef25  ret <1 x double> %fadd26}27