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) {
8 ; CHECK: # %bb.0: # %entry
9 ; CHECK-NEXT: vxor 4, 4, 4
10 ; CHECK-NEXT: vmladduhm 2, 2, 3, 4
13 %0 = mul <8 x i16> %m, %n
17 define <8 x i16> @madd(<8 x i16> %m, <8 x i16> %n, <8 x i16> %o) {
19 ; CHECK: # %bb.0: # %entry
20 ; CHECK-NEXT: vmladduhm 2, 2, 3, 4
23 %0 = mul <8 x i16> %m, %n
24 %1 = add <8 x i16> %0, %o