1; RUN: llc -mtriple=thumbv8.1m.main-none-none-eabi -mattr=+mve %s -o - | FileCheck %s 2 3define arm_aapcs_vfpcc <16 x i8> @vqneg_test16(<16 x i8> %A) nounwind { 4; CHECK-LABEL: vqneg_test16: 5; CHECK: @ %bb.0: @ %entry 6; CHECK-NEXT: vqneg.s8 q0, q0 7; CHECK-NEXT: bx lr 8entry: 9 10 %0 = icmp eq <16 x i8> %A, <i8 -128, i8 -128, i8 -128, i8 -128, i8 -128, i8 -128, i8 -128, i8 -128, i8 -128, i8 -128, i8 -128, i8 -128, i8 -128, i8 -128, i8 -128, i8 -128> 11 %1 = sub nsw <16 x i8> zeroinitializer, %A 12 %2 = select <16 x i1> %0, <16 x i8> <i8 127, i8 127, i8 127, i8 127, i8 127, i8 127, i8 127, i8 127, i8 127, i8 127, i8 127, i8 127, i8 127, i8 127, i8 127, i8 127>, <16 x i8> %1 13 14 ret <16 x i8> %2 15} 16 17define arm_aapcs_vfpcc <8 x i16> @vqneg_test8(<8 x i16> %A) nounwind { 18; CHECK-LABEL: vqneg_test8: 19; CHECK: @ %bb.0: @ %entry 20; CHECK-NEXT: vqneg.s16 q0, q0 21; CHECK-NEXT: bx lr 22entry: 23 24 %0 = icmp eq <8 x i16> %A, <i16 -32768, i16 -32768, i16 -32768, i16 -32768, i16 -32768, i16 -32768, i16 -32768, i16 -32768> 25 %1 = sub nsw <8 x i16> zeroinitializer, %A 26 %2 = select <8 x i1> %0, <8 x i16> <i16 32767, i16 32767, i16 32767, i16 32767, i16 32767, i16 32767, i16 32767, i16 32767>, <8 x i16> %1 27 28 ret <8 x i16> %2 29} 30 31define arm_aapcs_vfpcc <4 x i32> @vqneg_test4(<4 x i32> %A) nounwind { 32; CHECK-LABEL: vqneg_test4: 33; CHECK: @ %bb.0: @ %entry 34; CHECK-NEXT: vqneg.s32 q0, q0 35; CHECK-NEXT: bx lr 36entry: 37 38 %0 = icmp eq <4 x i32> %A, <i32 -2147483648, i32 -2147483648, i32 -2147483648, i32 -2147483648> 39 %1 = sub nsw <4 x i32> zeroinitializer, %A 40 %2 = select <4 x i1> %0, <4 x i32> <i32 2147483647, i32 2147483647, i32 2147483647, i32 2147483647>, <4 x i32> %1 41 42 ret <4 x i32> %2 43} 44 45