
Test updates were performed using: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 These are only the test updates where the test passed without further modification (which is almost all of them, as the backend is largely pointer-type agnostic).
23 lines
737 B
LLVM
23 lines
737 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s
|
|
|
|
define <2 x i64> @bar(ptr %p, <2 x i64> %x) nounwind {
|
|
; CHECK-LABEL: bar:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: movdqu (%rdi), %xmm1
|
|
; CHECK-NEXT: movdqa %xmm0, %xmm2
|
|
; CHECK-NEXT: psrlq $32, %xmm2
|
|
; CHECK-NEXT: pmuludq %xmm1, %xmm2
|
|
; CHECK-NEXT: movdqa %xmm1, %xmm3
|
|
; CHECK-NEXT: psrlq $32, %xmm3
|
|
; CHECK-NEXT: pmuludq %xmm0, %xmm3
|
|
; CHECK-NEXT: paddq %xmm2, %xmm3
|
|
; CHECK-NEXT: psllq $32, %xmm3
|
|
; CHECK-NEXT: pmuludq %xmm1, %xmm0
|
|
; CHECK-NEXT: paddq %xmm3, %xmm0
|
|
; CHECK-NEXT: retq
|
|
%t = load <2 x i64>, ptr %p, align 8
|
|
%z = mul <2 x i64> %t, %x
|
|
ret <2 x i64> %z
|
|
}
|