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

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

Issue 1878943009: Subzero. ARM32. Vector casts. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Adds vcvt assembler lit tests. Created 4 years, 8 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
OLDNEW
1 ; Test that we handle a vector move. 1 ; Test that we handle a vector move.
2 2
3 ; NOTE: We use -O2 to force a vector move for the return value. 3 ; NOTE: We use -O2 to force a vector move for the return value.
4 4
5 ; REQUIRES: allow_dump 5 ; REQUIRES: allow_dump
6 6
7 ; Compile using standalone assembler. 7 ; Compile using standalone assembler.
8 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \ 8 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \
9 ; RUN: | FileCheck %s --check-prefix=ASM 9 ; RUN: | FileCheck %s --check-prefix=ASM
10 10
11 ; Show bytes in assembled standalone code. 11 ; Show bytes in assembled standalone code.
12 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ 12 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \
13 ; RUN: --args -O2 \ 13 ; RUN: --args -O2 \
14 ; RUN: | FileCheck %s --check-prefix=DIS 14 ; RUN: | FileCheck %s --check-prefix=DIS
15 15
16 ; Compile using integrated assembler. 16 ; Compile using integrated assembler.
17 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 \ 17 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 \
18 ; RUN: | FileCheck %s --check-prefix=IASM 18 ; RUN: | FileCheck %s --check-prefix=IASM
19 19
20 ; Show bytes in assembled integrated code. 20 ; Show bytes in assembled integrated code.
21 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ 21 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
22 ; RUN: --args -O2 \ 22 ; RUN: --args -O2 \
23 ; RUN: | FileCheck %s --check-prefix=DIS 23 ; RUN: | FileCheck %s --check-prefix=DIS
24 24
25 25
26 define internal <4 x float> @testMoveVector(<4 x i32> %a) { 26 define internal <4 x float> @testMoveVector(<4 x i32> %a, <4 x i32> %b) {
27 ; ASM-LABEL: testMoveVector: 27 ; ASM-LABEL: testMoveVector:
28 ; DIS-LABEL:{{.+}} <testMoveVector>: 28 ; DIS-LABEL:{{.+}} <testMoveVector>:
29 ; IASM-LABEL: testMoveVector: 29 ; IASM-LABEL: testMoveVector:
30 30
31 entry: 31 entry:
32 %0 = sitofp <4 x i32> %a to <4 x float> 32 %0 = bitcast <4 x i32> %b to <4 x float>
33 ret <4 x float> %0 33 ret <4 x float> %0
34 34
35 ; ASM: vmov.f32 q0, q1 35 ; ASM: vmov.f32 q0, q1
36 ; DIS: 3c: eef03a40 36 ; The integrated assembler emits a vorr instead of a vmov.
37 ; DIS: 0: f2220152
37 ; IASM-NOT: vmov.f32 q0, q1 38 ; IASM-NOT: vmov.f32 q0, q1
39 ; IASM-NOT: vorr q0, q1, q1
38 40
39 } 41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698