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

Side by Side Diff: tests_lit/assembler/arm32/vmov-imm.ll

Issue 1624383004: Add VMOV(immediate) instructions to the ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix issues in previous patch. 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
« no previous file with comments | « 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 moving constants into VPF registers.
2
3 ; REQUIRES: allow_dump
4
5 ; Compile using standalone assembler.
6 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 -reg-use=d21,s20 \
7 ; RUN: | FileCheck %s --check-prefix=ASM
8
9 ; Show bytes in assembled standalone code.
10 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \
11 ; RUN: --args -Om1 -reg-use=d21,s20 \
12 ; RUN: | FileCheck %s --check-prefix=DIS
13
14 ; Compile using integrated assembler.
15 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 -reg-use=d21,s20 \
16 ; RUN: | FileCheck %s --check-prefix=IASM
17
18 ; Show bytes in assembled integrated code.
19 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
20 ; RUN: --args -Om1 -reg-use=d21,s20 \
21 ; RUN: | FileCheck %s --check-prefix=DIS
22
23 define internal void @testMoveDouble() {
24 ; ASM-LABEL: testMoveDouble:
25 ; DIS-LABEL: 00000000 <testMoveDouble>:
26
27 entry:
28 %addr = inttoptr i32 0 to double*
29 store double 1.5, double* %addr, align 8
Jim Stichnoth 2016/01/26 17:37:36 BTW, you can make this test even simpler by droppi
Karl 2016/01/26 19:12:48 Surprisingly, this causes a pnacl-freeze error for
30
31 ; ASM: vmov.f64 d21, #1.500000e+00
32 ; DIS: 4: eef75b08
33 ; IASM-NOT: vmov.f64
34
35 ret void
36 }
37
38 define internal void @testMoveFloat() {
39 ; ASM-LABEL: testMoveFloat:
40 ; DIS-LABEL: 00000010 <testMoveFloat>:
41
42 entry:
43 %addr = inttoptr i32 0 to float*
44 store float 1.5, float* %addr, align 4
45
46 ; ASM: vmov.f32 s20, #1.500000e+00
47 ; DIS: 18: eeb7aa08
48 ; IASM-NOT: vmov.f32
49
50 ret void
51 }
OLDNEW
« no previous file with comments | « src/IceInstARM32.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698