[PATCH] D48692: [WebAssembly] Delete vector sdiv test case

Heejin Ahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 27 17:25:30 PDT 2018


aheejin created this revision.
aheejin added a reviewer: RKSimon.
Herald added subscribers: llvm-commits, sunfish, jgravelle-google, sbc100, dschuff.

After https://reviews.llvm.org/rL335727, (sdiv X, 1) is treated as a special case, so we don't
need this test anymore.


Repository:
  rL LLVM

https://reviews.llvm.org/D48692

Files:
  test/CodeGen/WebAssembly/vector_sdiv.ll


Index: test/CodeGen/WebAssembly/vector_sdiv.ll
===================================================================
--- test/CodeGen/WebAssembly/vector_sdiv.ll
+++ /dev/null
@@ -1,22 +0,0 @@
-; RUN: llc < %s -asm-verbose=false -fast-isel=false -disable-wasm-fallthrough-return-opt | FileCheck %s
-
-target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
-target triple = "wasm32-unknown-unknown-elf"
-
-; Because there is a 1 in the vector, sdiv should not be reduced to shifts.
-
-; CHECK-LABEL: vector_sdiv:
-; CHECK-DAG:  i32.store
-; CHECK-DAG:  i32.shr_u
-; CHECK-DAG:  i32.store
-; CHECK-DAG:  i32.shr_u
-; CHECK-DAG:  i32.store
-; CHECK-DAG:  i32.shr_u
-; CHECK-DAG:  i32.store
-define void @vector_sdiv(<4 x i32>* %x, <4 x i32>* readonly %y) {
-entry:
-  %0 = load <4 x i32>, <4 x i32>* %y, align 16
-  %div = sdiv <4 x i32> %0, <i32 1, i32 4, i32 2, i32 8>
-  store <4 x i32> %div, <4 x i32>* %x, align 16
-  ret void
-}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48692.153220.patch
Type: text/x-patch
Size: 929 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180628/b2920fa8/attachment.bin>


More information about the llvm-commits mailing list