1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -ppc-vsr-nums-as-vr \
3 ; RUN: -ppc-asm-full-reg-names -global-isel -o - < %s | FileCheck %s
5 define <16 x i8> @test_add_v16i8(<16 x i8> %a, <16 x i8> %b) {
6 ; CHECK-LABEL: test_add_v16i8:
8 ; CHECK-NEXT: vaddubm v2, v2, v3
10 %res = add <16 x i8> %a, %b
14 define <8 x i16> @test_add_v8i16(<8 x i16> %a, <8 x i16> %b) {
15 ; CHECK-LABEL: test_add_v8i16:
17 ; CHECK-NEXT: vadduhm v2, v2, v3
19 %res = add <8 x i16> %a, %b
23 define <4 x i32> @test_add_v4i32(<4 x i32> %a, <4 x i32> %b) {
24 ; CHECK-LABEL: test_add_v4i32:
26 ; CHECK-NEXT: vadduwm v2, v2, v3
28 %res = add <4 x i32> %a, %b
32 define <2 x i64> @test_add_v2i64(<2 x i64> %a, <2 x i64> %b) {
33 ; CHECK-LABEL: test_add_v2i64:
35 ; CHECK-NEXT: vaddudm v2, v2, v3
37 %res = add <2 x i64> %a, %b
41 define <16 x i8> @test_sub_v16i8(<16 x i8> %a, <16 x i8> %b) {
42 ; CHECK-LABEL: test_sub_v16i8:
44 ; CHECK-NEXT: vsububm v2, v2, v3
46 %res = sub <16 x i8> %a, %b
50 define <8 x i16> @test_sub_v8i16(<8 x i16> %a, <8 x i16> %b) {
51 ; CHECK-LABEL: test_sub_v8i16:
53 ; CHECK-NEXT: vsubuhm v2, v2, v3
55 %res = sub <8 x i16> %a, %b
59 define <4 x i32> @test_sub_v4i32(<4 x i32> %a, <4 x i32> %b) {
60 ; CHECK-LABEL: test_sub_v4i32:
62 ; CHECK-NEXT: vsubuwm v2, v2, v3
64 %res = sub <4 x i32> %a, %b
68 define <2 x i64> @test_sub_v2i64(<2 x i64> %a, <2 x i64> %b) {
69 ; CHECK-LABEL: test_sub_v2i64:
71 ; CHECK-NEXT: vsubudm v2, v2, v3
73 %res = sub <2 x i64> %a, %b