1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=x86_64-linux-gnu -mattr=+avx512f,+avx512bw -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=ALL --check-prefix=AVX512BW
3 # TODO: add tests for additional configuration after the legalization supported
5 define void @test_sub_v64i8() {
6 %ret = sub <64 x i8> undef, undef
10 define void @test_sub_v32i16() {
11 %ret = sub <32 x i16> undef, undef
15 define void @test_sub_v16i32() {
16 %ret = sub <16 x i32> undef, undef
20 define void @test_sub_v8i64() {
21 %ret = sub <8 x i64> undef, undef
30 regBankSelected: false
39 ; ALL-LABEL: name: test_sub_v64i8
40 ; ALL: [[DEF:%[0-9]+]]:_(<64 x s8>) = IMPLICIT_DEF
41 ; ALL: [[DEF1:%[0-9]+]]:_(<64 x s8>) = IMPLICIT_DEF
42 ; ALL: [[SUB:%[0-9]+]]:_(<64 x s8>) = G_SUB [[DEF]], [[DEF1]]
44 %0(<64 x s8>) = IMPLICIT_DEF
45 %1(<64 x s8>) = IMPLICIT_DEF
46 %2(<64 x s8>) = G_SUB %0, %1
55 regBankSelected: false
64 ; ALL-LABEL: name: test_sub_v32i16
65 ; ALL: [[DEF:%[0-9]+]]:_(<32 x s16>) = IMPLICIT_DEF
66 ; ALL: [[DEF1:%[0-9]+]]:_(<32 x s16>) = IMPLICIT_DEF
67 ; ALL: [[SUB:%[0-9]+]]:_(<32 x s16>) = G_SUB [[DEF]], [[DEF1]]
69 %0(<32 x s16>) = IMPLICIT_DEF
70 %1(<32 x s16>) = IMPLICIT_DEF
71 %2(<32 x s16>) = G_SUB %0, %1
80 regBankSelected: false
89 ; ALL-LABEL: name: test_sub_v16i32
90 ; ALL: [[DEF:%[0-9]+]]:_(<16 x s32>) = IMPLICIT_DEF
91 ; ALL: [[DEF1:%[0-9]+]]:_(<16 x s32>) = IMPLICIT_DEF
92 ; ALL: [[SUB:%[0-9]+]]:_(<16 x s32>) = G_SUB [[DEF]], [[DEF1]]
94 %0(<16 x s32>) = IMPLICIT_DEF
95 %1(<16 x s32>) = IMPLICIT_DEF
96 %2(<16 x s32>) = G_SUB %0, %1
105 regBankSelected: false
107 - { id: 0, class: _ }
108 - { id: 1, class: _ }
109 - { id: 2, class: _ }
112 liveins: $zmm0, $zmm1
114 ; ALL-LABEL: name: test_sub_v8i64
115 ; ALL: [[DEF:%[0-9]+]]:_(<8 x s64>) = IMPLICIT_DEF
116 ; ALL: [[DEF1:%[0-9]+]]:_(<8 x s64>) = IMPLICIT_DEF
117 ; ALL: [[SUB:%[0-9]+]]:_(<8 x s64>) = G_SUB [[DEF]], [[DEF1]]
119 %0(<8 x s64>) = IMPLICIT_DEF
120 %1(<8 x s64>) = IMPLICIT_DEF
121 %2(<8 x s64>) = G_SUB %0, %1