llvm.org GIT mirror llvm / 50b6b86
[NFC] Added more tests for D63652 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364069 91177308-0d34-0410-b5e6-96231b3b80d8 David Bolvansky 4 months ago
1 changed file(s) with 33 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
147147 ret <2 x i64> %r
148148 }
149149
150 define <3 x i64> @shl_sub_i64_vec_undef0(<3 x i64> %x) {
151 ; CHECK-LABEL: @shl_sub_i64_vec_undef0(
152 ; CHECK-NEXT: [[S:%.*]] = sub <3 x i64> , [[X:%.*]]
153 ; CHECK-NEXT: [[R:%.*]] = shl <3 x i64> , [[S]]
154 ; CHECK-NEXT: ret <3 x i64> [[R]]
155 ;
156 %s = sub <3 x i64> , %x
157 %r = shl <3 x i64> , %s
158 ret <3 x i64> %r
159 }
160
161 define <3 x i64> @shl_sub_i64_vec_undef1(<3 x i64> %x) {
162 ; CHECK-LABEL: @shl_sub_i64_vec_undef1(
163 ; CHECK-NEXT: [[S:%.*]] = sub <3 x i64> , [[X:%.*]]
164 ; CHECK-NEXT: [[R:%.*]] = shl <3 x i64> , [[S]]
165 ; CHECK-NEXT: ret <3 x i64> [[R]]
166 ;
167 %s = sub <3 x i64> , %x
168 %r = shl <3 x i64> , %s
169 ret <3 x i64> %r
170 }
171
172 define <3 x i64> @shl_sub_i64_vec_undef2(<3 x i64> %x) {
173 ; CHECK-LABEL: @shl_sub_i64_vec_undef2(
174 ; CHECK-NEXT: [[S:%.*]] = sub <3 x i64> , [[X:%.*]]
175 ; CHECK-NEXT: [[R:%.*]] = shl <3 x i64> , [[S]]
176 ; CHECK-NEXT: ret <3 x i64> [[R]]
177 ;
178 %s = sub <3 x i64> , %x
179 %r = shl <3 x i64> , %s
180 ret <3 x i64> %r
181 }
182
150183
151184 declare void @use(i32)