Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Issue 622113002: Handle GPR and vector shift ops. Handle pmull also. (Closed)

Created:
6 years, 2 months ago by jvoung (off chromium)
Modified:
6 years, 2 months ago
Reviewers:
Jim Stichnoth
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Handle GPR and vector shift ops. Handle pmull also. For the integer shift ops, since the Src1 operand is forced to be an immediate or register (cl), it should be legal to have Dest+Src0 be either register or memory. However, we are currently only using the register form. It might be the case that shift w/ Dest+Src0 as mem are less optimized on some micro-architectures though, since it has to load, shift, and store all in one operation, but I'm not sure. BUG=none R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=8bcca0418f0719b5acaa6cebcf9db20aa402aa2c

Patch Set 1 #

Patch Set 2 : grammar #

Total comments: 6

Patch Set 3 : review #

Patch Set 4 : add more pmull tests #

Patch Set 5 : xx #

Total comments: 2

Patch Set 6 : fix comment #

Total comments: 1

Patch Set 7 : test encodings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+604 lines, -44 lines) Patch
M src/IceInstX8632.h View 1 2 3 4 5 5 chunks +100 lines, -10 lines 0 comments Download
M src/IceInstX8632.cpp View 5 chunks +102 lines, -0 lines 0 comments Download
M src/assembler_ia32.h View 6 chunks +45 lines, -10 lines 0 comments Download
M src/assembler_ia32.cpp View 4 chunks +152 lines, -22 lines 0 comments Download
M tests_lit/assembler/x86/immediate_encodings.ll View 1 chunk +22 lines, -0 lines 0 comments Download
A tests_lit/assembler/x86/opcode_register_encodings.ll View 1 2 3 4 5 6 1 chunk +87 lines, -0 lines 0 comments Download
M tests_lit/llvm2ice_tests/8bit.pnacl.ll View 1 2 1 chunk +63 lines, -0 lines 0 comments Download
M tests_lit/llvm2ice_tests/address-mode-opt.ll View 1 2 3 4 5 6 2 chunks +30 lines, -0 lines 0 comments Download
M tests_lit/llvm2ice_tests/nacl-other-intrinsics.ll View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M tests_lit/llvm2ice_tests/vector-arith.ll View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 11 (1 generated)
jvoung (off chromium)
6 years, 2 months ago (2014-10-02 19:46:54 UTC) #2
Jim Stichnoth
I didn't see any pmull tests? I looked into the issue of shifting Dest/Src0 by ...
6 years, 2 months ago (2014-10-02 20:35:17 UTC) #3
jvoung (off chromium)
There is a test of vector mul in tests_lit/llvm2ice_tests/vector-arith.ll, which CHECKs for "pmullw" and "pmulld" ...
6 years, 2 months ago (2014-10-02 22:04:13 UTC) #4
jvoung (off chromium)
On 2014/10/02 20:35:17, stichnot wrote: > I didn't see any pmull tests? > > I ...
6 years, 2 months ago (2014-10-02 22:09:53 UTC) #5
Jim Stichnoth
On 2014/10/02 20:35:17, stichnot wrote: > I didn't see any pmull tests? I meant, I ...
6 years, 2 months ago (2014-10-03 03:10:44 UTC) #6
Jim Stichnoth
lgtm https://codereview.chromium.org/622113002/diff/80001/tests_lit/llvm2ice_tests/vector-arith.ll File tests_lit/llvm2ice_tests/vector-arith.ll (left): https://codereview.chromium.org/622113002/diff/80001/tests_lit/llvm2ice_tests/vector-arith.ll#oldcode24 tests_lit/llvm2ice_tests/vector-arith.ll:24: ; RUN: %p2i -i %s --insts | %szdiff ...
6 years, 2 months ago (2014-10-03 04:00:00 UTC) #7
jvoung (off chromium)
On 2014/10/03 03:10:44, stichnot wrote: > On 2014/10/02 20:35:17, stichnot wrote: > > I didn't ...
6 years, 2 months ago (2014-10-03 18:12:15 UTC) #8
jvoung (off chromium)
https://codereview.chromium.org/622113002/diff/100001/tests_lit/llvm2ice_tests/vector-arith.ll File tests_lit/llvm2ice_tests/vector-arith.ll (right): https://codereview.chromium.org/622113002/diff/100001/tests_lit/llvm2ice_tests/vector-arith.ll#newcode346 tests_lit/llvm2ice_tests/vector-arith.ll:346: entry: I moved this over to the address-mode-opt tests, ...
6 years, 2 months ago (2014-10-03 18:17:20 UTC) #9
Jim Stichnoth
still lgtm
6 years, 2 months ago (2014-10-03 23:59:36 UTC) #10
jvoung (off chromium)
6 years, 2 months ago (2014-10-04 04:58:07 UTC) #11
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
8bcca0418f0719b5acaa6cebcf9db20aa402aa2c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698