blob: 6dc9d4b7025d9e66a9a930497efc7d0678bde9b9 [file] [log] [blame]
Saleem Abdulrasool72587352014-04-03 16:01:44 +00001; RUN: llc -mtriple=arm-eabi -mattr=+neon %s -o - | FileCheck %s
Eli Friedman53218b62011-11-09 22:25:12 +00002; PR11319
3
4@src1_v2i16 = global <2 x i16> <i16 0, i16 1>
5@res_v2i16 = global <2 x i16> <i16 0, i16 0>
6
7declare <2 x i16> @foo_v2i16(<2 x i16>) nounwind
8
9define void @test_neon_call_return_v2i16() {
Stephen Linf799e3f2013-07-13 20:38:47 +000010; CHECK-LABEL: test_neon_call_return_v2i16:
David Blaikiea79ac142015-02-27 21:17:42 +000011 %1 = load <2 x i16>, <2 x i16>* @src1_v2i16
Eli Friedman53218b62011-11-09 22:25:12 +000012 %2 = call <2 x i16> @foo_v2i16(<2 x i16> %1) nounwind
13 store <2 x i16> %2, <2 x i16>* @res_v2i16
14 ret void
15}