50 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=ve -mattr=+vpu | FileCheck %s3 4; This would assert because VE specified that all setcc5; nodes (even with vector operands) return a scalar value.6 7define <4 x i8> @udiv_by_minus_one(<4 x i8> %x) {8; CHECK-LABEL: udiv_by_minus_one:9; CHECK: # %bb.0:10; CHECK-NEXT: and %s4, %s0, (56)011; CHECK-NEXT: and %s1, %s1, (56)012; CHECK-NEXT: and %s2, %s2, (56)013; CHECK-NEXT: and %s3, %s3, (56)014; CHECK-NEXT: or %s0, 0, (0)115; CHECK-NEXT: cmpu.w %s5, %s3, (56)016; CHECK-NEXT: or %s3, 0, (0)117; CHECK-NEXT: cmov.w.eq %s3, (63)0, %s518; CHECK-NEXT: cmpu.w %s5, %s2, (56)019; CHECK-NEXT: or %s2, 0, (0)120; CHECK-NEXT: cmov.w.eq %s2, (63)0, %s521; CHECK-NEXT: cmpu.w %s5, %s1, (56)022; CHECK-NEXT: or %s1, 0, (0)123; CHECK-NEXT: cmov.w.eq %s1, (63)0, %s524; CHECK-NEXT: cmpu.w %s4, %s4, (56)025; CHECK-NEXT: cmov.w.eq %s0, (63)0, %s426; CHECK-NEXT: b.l.t (, %s10)27 %r = udiv <4 x i8> %x, <i8 255, i8 255, i8 255, i8 255>28 ret <4 x i8> %r29}30 31define <4 x i8> @urem_by_minus_one(<4 x i8> %x) {32; CHECK-LABEL: urem_by_minus_one:33; CHECK: # %bb.0:34; CHECK-NEXT: and %s4, %s0, (56)035; CHECK-NEXT: and %s5, %s1, (56)036; CHECK-NEXT: and %s6, %s2, (56)037; CHECK-NEXT: and %s7, %s3, (56)038; CHECK-NEXT: cmpu.w %s7, %s7, (56)039; CHECK-NEXT: cmov.w.eq %s3, (0)1, %s740; CHECK-NEXT: cmpu.w %s6, %s6, (56)041; CHECK-NEXT: cmov.w.eq %s2, (0)1, %s642; CHECK-NEXT: cmpu.w %s5, %s5, (56)043; CHECK-NEXT: cmov.w.eq %s1, (0)1, %s544; CHECK-NEXT: cmpu.w %s4, %s4, (56)045; CHECK-NEXT: cmov.w.eq %s0, (0)1, %s446; CHECK-NEXT: b.l.t (, %s10)47 %r = urem <4 x i8> %x, <i8 255, i8 255, i8 255, i8 255>48 ret <4 x i8> %r49}50