[PATCH] D44785: Lowering x86 adds/addus/subs/subus intrinsics (llvm part)

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 11 10:33:28 PDT 2018


craig.topper added a comment.

Do we have test cases for types less than 128-bits to make sure we don't convert them?



================
Comment at: lib/Target/X86/X86ISelLowering.cpp:36054
+  // Get addition elements.
+  auto LHS = Sat.getOperand(0);
+  auto RHS = Sat.getOperand(1);
----------------
Use SDValue instead of auto. LLVM tends to be conservative with use of auto.


================
Comment at: test/CodeGen/X86/vector-arith-sat.ll:10
+; RUN: llc < %s -disable-peephole -mtriple=i386-apple-darwin -mattr=-avx,+sse2 -show-mc-encoding | FileCheck %s --check-prefix=SSE
+define <32 x i8> @test_x86_avx2_padds_b(<32 x i8> %a0, <32 x i8> %a1) {
+; AVX2-LABEL: test_x86_avx2_padds_b:
----------------
Add a blank line here.


Repository:
  rL LLVM

https://reviews.llvm.org/D44785





More information about the llvm-commits mailing list