Skip to content

Commit 949018c

Browse files
author
Chen Zheng
committed
[PowerPC] add test case for reorder operands of qpx fma instr - nfc.
1 parent bb1d976 commit 949018c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
; RUN: llc -verify-machineinstrs -stop-after=finalize-isel < %s -mcpu=a2q | FileCheck %s
2+
3+
define <2 x double> @test_qvfmadd(<2 x double> %0, <2 x double> %1, <2 x double> %2) {
4+
; CHECK: test_qvfmadd
5+
; CHECK: QVFMADD %2, %0, %1, implicit $rm
6+
;
7+
%4 = fmul reassoc nsz <2 x double> %2, %1
8+
%5 = fadd reassoc nsz <2 x double> %4, %0
9+
ret <2 x double> %5
10+
}
11+
12+
define <4 x float> @test_qvfmadds(<4 x float> %0, <4 x float> %1, <4 x float> %2) {
13+
; CHECK: test_qvfmadds
14+
; CHECK: QVFMADDSs %2, %0, %1, implicit $rm
15+
;
16+
%4 = fmul reassoc nsz <4 x float> %2, %1
17+
%5 = fadd reassoc nsz <4 x float> %4, %0
18+
ret <4 x float> %5
19+
}

0 commit comments

Comments
 (0)