mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
abfb9e7ee2
Summary: Switch to FileCheck where possible. Adjust tests so they can be easily regenerated by update scripts. Reviewers: craig.topper, spatel, RKSimon Reviewed By: spatel Subscribers: MatzeB, qcolombet, arphaman, jfb, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D71211
23 lines
751 B
LLVM
23 lines
751 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(<2 x i64>* %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>, <2 x i64>* %p, align 8
|
|
%z = mul <2 x i64> %t, %x
|
|
ret <2 x i64> %z
|
|
}
|