Skip to content

Commit f6584b8

Browse files
author
Chen Zheng
committed
[PowerPC] add a testcase for reverse memory op; nfc
1 parent d3fb4b9 commit f6584b8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2+
; RUN: llc -verify-machineinstrs -mcpu=pwr9 -mattr=+vsx \
3+
; RUN: -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s
4+
5+
define <2 x double> @loadChainHasUser(<2 x double>* %p1, <2 x double> %v2) {
6+
; CHECK-LABEL: loadChainHasUser:
7+
; CHECK: # %bb.0:
8+
; CHECK-NEXT: lxv 0, 0(3)
9+
; CHECK-NEXT: stxv 34, 0(3)
10+
; CHECK-NEXT: xxswapd 34, 0
11+
; CHECK-NEXT: blr
12+
%v1 = load <2 x double>, <2 x double>* %p1
13+
store <2 x double> %v2, <2 x double>* %p1, align 16
14+
%v3 = shufflevector <2 x double> %v1, <2 x double> %v1, <2 x i32> < i32 1, i32 0>
15+
ret <2 x double> %v3
16+
}

0 commit comments

Comments
 (0)