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

Side by Side Diff: tests_lit/assembler/arm32/vec-move.ll

Issue 1694533002: Add move vector to the integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« src/IceInstARM32.cpp ('K') | « src/IceInstARM32.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 ; Test that we handle a vector move.
2
3 ; NOTE: We use -O2 to force a vector move for the return value.
4
5 ; REQUIRES: allow_dump
6
7 ; Compile using standalone assembler.
8 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \
9 ; RUN: | FileCheck %s --check-prefix=ASM
10
11 ; Show bytes in assembled standalone code.
12 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \
13 ; RUN: --args -O2 \
14 ; RUN: | FileCheck %s --check-prefix=DIS
15
16 ; Compile using integrated assembler.
17 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 \
18 ; RUN: | FileCheck %s --check-prefix=IASM
19
20 ; Show bytes in assembled integrated code.
21 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
22 ; RUN: --args -O2 \
23 ; RUN: | FileCheck %s --check-prefix=DIS
24
25
26 define internal <4 x float> @testMoveVector(<4 x i32> %a) {
27 ; ASM-LABEL: testMoveVector:
28 ; DIS-LABEL:{{.+}} <testMoveVector>:
29 ; IASM-LABEL: testMoveVector:
30
31 entry:
32 %0 = sitofp <4 x i32> %a to <4 x float>
Eric Holk 2016/02/11 19:24:22 This may not always create a move. Right now this
Karl 2016/02/11 22:10:28 Unless you can come up with a better example, I su
Eric Holk 2016/02/11 22:51:39 I agree. This seems like the best course of action
33 ret <4 x float> %0
34
35 ; ASM: vmov.f32 q0, q1
36 ; DIS: 3c: eef03a40
37 ; IASM-NOT: vmov.f32 q0, q1
38
39 }
OLDNEW
« src/IceInstARM32.cpp ('K') | « src/IceInstARM32.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698