xref: /llvm-project/llvm/test/CodeGen/X86/sse-align-0.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
3
4define <4 x float> @foo(ptr %p, <4 x float> %x) nounwind {
5; CHECK-LABEL: foo:
6; CHECK:       # %bb.0:
7; CHECK-NEXT:    mulps (%rdi), %xmm0
8; CHECK-NEXT:    retq
9  %t = load <4 x float>, ptr %p
10  %z = fmul <4 x float> %t, %x
11  ret <4 x float> %z
12}
13
14define <2 x double> @bar(ptr %p, <2 x double> %x) nounwind {
15; CHECK-LABEL: bar:
16; CHECK:       # %bb.0:
17; CHECK-NEXT:    mulpd (%rdi), %xmm0
18; CHECK-NEXT:    retq
19  %t = load <2 x double>, ptr %p
20  %z = fmul <2 x double> %t, %x
21  ret <2 x double> %z
22}
23