1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=x86_64-linux-gnu -mcpu=skx -global-isel -verify-machineinstrs < %s -o - | FileCheck %s --check-prefix=SKX
4 define <16 x i8> @test_sub_v16i8(<16 x i8> %arg1, <16 x i8> %arg2) {
5 ; SKX-LABEL: test_sub_v16i8:
7 ; SKX-NEXT: vpsubb %xmm1, %xmm0, %xmm0
9 %ret = sub <16 x i8> %arg1, %arg2
13 define <8 x i16> @test_sub_v8i16(<8 x i16> %arg1, <8 x i16> %arg2) {
14 ; SKX-LABEL: test_sub_v8i16:
16 ; SKX-NEXT: vpsubw %xmm1, %xmm0, %xmm0
18 %ret = sub <8 x i16> %arg1, %arg2
22 define <4 x i32> @test_sub_v4i32(<4 x i32> %arg1, <4 x i32> %arg2) {
23 ; SKX-LABEL: test_sub_v4i32:
25 ; SKX-NEXT: vpsubd %xmm1, %xmm0, %xmm0
27 %ret = sub <4 x i32> %arg1, %arg2
31 define <2 x i64> @test_sub_v2i64(<2 x i64> %arg1, <2 x i64> %arg2) {
32 ; SKX-LABEL: test_sub_v2i64:
34 ; SKX-NEXT: vpsubq %xmm1, %xmm0, %xmm0
36 %ret = sub <2 x i64> %arg1, %arg2
40 define <32 x i8> @test_sub_v32i8(<32 x i8> %arg1, <32 x i8> %arg2) {
41 ; SKX-LABEL: test_sub_v32i8:
43 ; SKX-NEXT: vpsubb %ymm1, %ymm0, %ymm0
45 %ret = sub <32 x i8> %arg1, %arg2
49 define <16 x i16> @test_sub_v16i16(<16 x i16> %arg1, <16 x i16> %arg2) {
50 ; SKX-LABEL: test_sub_v16i16:
52 ; SKX-NEXT: vpsubw %ymm1, %ymm0, %ymm0
54 %ret = sub <16 x i16> %arg1, %arg2
58 define <8 x i32> @test_sub_v8i32(<8 x i32> %arg1, <8 x i32> %arg2) {
59 ; SKX-LABEL: test_sub_v8i32:
61 ; SKX-NEXT: vpsubd %ymm1, %ymm0, %ymm0
63 %ret = sub <8 x i32> %arg1, %arg2
67 define <4 x i64> @test_sub_v4i64(<4 x i64> %arg1, <4 x i64> %arg2) {
68 ; SKX-LABEL: test_sub_v4i64:
70 ; SKX-NEXT: vpsubq %ymm1, %ymm0, %ymm0
72 %ret = sub <4 x i64> %arg1, %arg2
76 define <64 x i8> @test_sub_v64i8(<64 x i8> %arg1, <64 x i8> %arg2) {
77 ; SKX-LABEL: test_sub_v64i8:
79 ; SKX-NEXT: vpsubb %zmm1, %zmm0, %zmm0
81 %ret = sub <64 x i8> %arg1, %arg2
85 define <32 x i16> @test_sub_v32i16(<32 x i16> %arg1, <32 x i16> %arg2) {
86 ; SKX-LABEL: test_sub_v32i16:
88 ; SKX-NEXT: vpsubw %zmm1, %zmm0, %zmm0
90 %ret = sub <32 x i16> %arg1, %arg2
94 define <16 x i32> @test_sub_v16i32(<16 x i32> %arg1, <16 x i32> %arg2) {
95 ; SKX-LABEL: test_sub_v16i32:
97 ; SKX-NEXT: vpsubd %zmm1, %zmm0, %zmm0
99 %ret = sub <16 x i32> %arg1, %arg2
103 define <8 x i64> @test_sub_v8i64(<8 x i64> %arg1, <8 x i64> %arg2) {
104 ; SKX-LABEL: test_sub_v8i64:
106 ; SKX-NEXT: vpsubq %zmm1, %zmm0, %zmm0
108 %ret = sub <8 x i64> %arg1, %arg2