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_add_v16i8() {
6 %ret = add <16 x i8> undef, undef
10 define void @test_add_v8i16() {
11 %ret = add <8 x i16> undef, undef
15 define void @test_add_v4i32() {
16 %ret = add <4 x i32> undef, undef
20 define void @test_add_v2i64() {
21 %ret = add <2 x i64> undef, undef
29 regBankSelected: false
38 ; ALL-LABEL: name: test_add_v16i8
39 ; ALL: [[DEF:%[0-9]+]]:_(<16 x s8>) = IMPLICIT_DEF
40 ; ALL: [[DEF1:%[0-9]+]]:_(<16 x s8>) = IMPLICIT_DEF
41 ; ALL: [[ADD:%[0-9]+]]:_(<16 x s8>) = G_ADD [[DEF]], [[DEF1]]
42 ; ALL: $xmm0 = COPY [[ADD]](<16 x s8>)
44 %0(<16 x s8>) = IMPLICIT_DEF
45 %1(<16 x s8>) = IMPLICIT_DEF
46 %2(<16 x s8>) = G_ADD %0, %1
55 regBankSelected: false
64 ; ALL-LABEL: name: test_add_v8i16
65 ; ALL: [[DEF:%[0-9]+]]:_(<8 x s16>) = IMPLICIT_DEF
66 ; ALL: [[DEF1:%[0-9]+]]:_(<8 x s16>) = IMPLICIT_DEF
67 ; ALL: [[ADD:%[0-9]+]]:_(<8 x s16>) = G_ADD [[DEF]], [[DEF1]]
68 ; ALL: $xmm0 = COPY [[ADD]](<8 x s16>)
70 %0(<8 x s16>) = IMPLICIT_DEF
71 %1(<8 x s16>) = IMPLICIT_DEF
72 %2(<8 x s16>) = G_ADD %0, %1
81 regBankSelected: false
90 ; ALL-LABEL: name: test_add_v4i32
91 ; ALL: [[DEF:%[0-9]+]]:_(<4 x s32>) = IMPLICIT_DEF
92 ; ALL: [[DEF1:%[0-9]+]]:_(<4 x s32>) = IMPLICIT_DEF
93 ; ALL: [[ADD:%[0-9]+]]:_(<4 x s32>) = G_ADD [[DEF]], [[DEF1]]
94 ; ALL: $xmm0 = COPY [[ADD]](<4 x s32>)
96 %0(<4 x s32>) = IMPLICIT_DEF
97 %1(<4 x s32>) = IMPLICIT_DEF
98 %2(<4 x s32>) = G_ADD %0, %1
107 regBankSelected: false
109 - { id: 0, class: _ }
110 - { id: 1, class: _ }
111 - { id: 2, class: _ }
114 liveins: $xmm0, $xmm1
116 ; ALL-LABEL: name: test_add_v2i64
117 ; ALL: [[DEF:%[0-9]+]]:_(<2 x s64>) = IMPLICIT_DEF
118 ; ALL: [[DEF1:%[0-9]+]]:_(<2 x s64>) = IMPLICIT_DEF
119 ; ALL: [[ADD:%[0-9]+]]:_(<2 x s64>) = G_ADD [[DEF]], [[DEF1]]
120 ; ALL: $xmm0 = COPY [[ADD]](<2 x s64>)
122 %0(<2 x s64>) = IMPLICIT_DEF
123 %1(<2 x s64>) = IMPLICIT_DEF
124 %2(<2 x s64>) = G_ADD %0, %1