1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=x86_64-linux-gnu -mattr=+sse2 -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=ALL --check-prefix=SSE2
5 define void @test_sub_v16i8() {
6 %ret = sub <16 x i8> undef, undef
10 define void @test_sub_v8i16() {
11 %ret = sub <8 x i16> undef, undef
15 define void @test_sub_v4i32() {
16 %ret = sub <4 x i32> undef, undef
20 define void @test_sub_v2i64() {
21 %ret = sub <2 x i64> undef, undef
29 regBankSelected: false
38 ; ALL-LABEL: name: test_sub_v16i8
39 ; ALL: [[DEF:%[0-9]+]]:_(<16 x s8>) = IMPLICIT_DEF
40 ; ALL: [[DEF1:%[0-9]+]]:_(<16 x s8>) = IMPLICIT_DEF
41 ; ALL: [[SUB:%[0-9]+]]:_(<16 x s8>) = G_SUB [[DEF]], [[DEF1]]
43 %0(<16 x s8>) = IMPLICIT_DEF
44 %1(<16 x s8>) = IMPLICIT_DEF
45 %2(<16 x s8>) = G_SUB %0, %1
54 regBankSelected: false
63 ; ALL-LABEL: name: test_sub_v8i16
64 ; ALL: [[DEF:%[0-9]+]]:_(<8 x s16>) = IMPLICIT_DEF
65 ; ALL: [[DEF1:%[0-9]+]]:_(<8 x s16>) = IMPLICIT_DEF
66 ; ALL: [[SUB:%[0-9]+]]:_(<8 x s16>) = G_SUB [[DEF]], [[DEF1]]
68 %0(<8 x s16>) = IMPLICIT_DEF
69 %1(<8 x s16>) = IMPLICIT_DEF
70 %2(<8 x s16>) = G_SUB %0, %1
79 regBankSelected: false
88 ; ALL-LABEL: name: test_sub_v4i32
89 ; ALL: [[DEF:%[0-9]+]]:_(<4 x s32>) = IMPLICIT_DEF
90 ; ALL: [[DEF1:%[0-9]+]]:_(<4 x s32>) = IMPLICIT_DEF
91 ; ALL: [[SUB:%[0-9]+]]:_(<4 x s32>) = G_SUB [[DEF]], [[DEF1]]
93 %0(<4 x s32>) = IMPLICIT_DEF
94 %1(<4 x s32>) = IMPLICIT_DEF
95 %2(<4 x s32>) = G_SUB %0, %1
104 regBankSelected: false
106 - { id: 0, class: _ }
107 - { id: 1, class: _ }
108 - { id: 2, class: _ }
111 liveins: $xmm0, $xmm1
113 ; ALL-LABEL: name: test_sub_v2i64
114 ; ALL: [[DEF:%[0-9]+]]:_(<2 x s64>) = IMPLICIT_DEF
115 ; ALL: [[DEF1:%[0-9]+]]:_(<2 x s64>) = IMPLICIT_DEF
116 ; ALL: [[SUB:%[0-9]+]]:_(<2 x s64>) = G_SUB [[DEF]], [[DEF1]]
118 %0(<2 x s64>) = IMPLICIT_DEF
119 %1(<2 x s64>) = IMPLICIT_DEF
120 %2(<2 x s64>) = G_SUB %0, %1