1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
4 define <2 x double> @f(<2 x double> %I) {
6 ; CHECK: # %bb.0: # %BB
7 ; CHECK-NEXT: movapd {{.*#+}} xmm1 = [-0.0E+0,-0.0E+0]
8 ; CHECK-NEXT: xorpd %xmm0, %xmm1
9 ; CHECK-NEXT: mulpd %xmm0, %xmm1
10 ; CHECK-NEXT: mulpd %xmm0, %xmm1
11 ; CHECK-NEXT: mulpd %xmm0, %xmm0
12 ; CHECK-NEXT: mulpd %xmm1, %xmm0
15 %F = fneg <2 x double> %I
16 %B3 = fmul <2 x double> %I, %F
17 %B1 = fmul <2 x double> %F, %B3
18 %B2 = fmul <2 x double> %F, %I
19 %B = fmul <2 x double> %B2, %B1