| 1 |
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py |
| 2 |
; RUN: llc -verify-machineinstrs -mcpu=pwr9 -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s |
| 3 |
; RUN: llc -verify-machineinstrs -mcpu=pwr9 -mtriple=powerpc64-ibm-aix-xcoff -vec-extabi < %s | FileCheck %s |
| 4 |
; RUN: llc -verify-machineinstrs -mcpu=pwr8 -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s |
| 5 |
; RUN: llc -verify-machineinstrs -mcpu=pwr8 -mtriple=powerpc64-ibm-aix-xcoff -vec-extabi < %s | FileCheck %s |
| 6 |
define <8 x i16> @mul(<8 x i16> %m, <8 x i16> %n) { |
| 7 |
; CHECK-LABEL: mul: |
| 8 |
; CHECK: # %bb.0: # %entry |
| 9 |
; CHECK-NEXT: vxor 4, 4, 4 |
| 10 |
; CHECK-NEXT: vmladduhm 2, 2, 3, 4 |
| 11 |
; CHECK-NEXT: blr |
| 12 |
entry: |
| 13 |
%0 = mul <8 x i16> %m, %n |
| 14 |
ret <8 x i16> %0 |
| 15 |
} |
| 16 |
|
| 17 |
define <8 x i16> @madd(<8 x i16> %m, <8 x i16> %n, <8 x i16> %o) { |
| 18 |
; CHECK-LABEL: madd: |
| 19 |
; CHECK: # %bb.0: # %entry |
| 20 |
; CHECK-NEXT: vmladduhm 2, 2, 3, 4 |
| 21 |
; CHECK-NEXT: blr |
| 22 |
entry: |
| 23 |
%0 = mul <8 x i16> %m, %n |
| 24 |
%1 = add <8 x i16> %0, %o |
| 25 |
ret <8 x i16> %1 |
| 26 |
} |