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

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 nits. 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
1 ; Test the "vmrs APSR_nzcv, FPSCR" form of the VMRS instruction. 1 ; Test moving constants into VPF registers.
2 2
3 ; REQUIRES: allow_dump 3 ; REQUIRES: allow_dump
4 4
5 ; Compile using standalone assembler. 5 ; Compile using standalone assembler.
6 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 \ 6 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 \
7 ; RUN: | FileCheck %s --check-prefix=ASM 7 ; RUN: | FileCheck %s --check-prefix=ASM
8 8
9 ; Show bytes in assembled standalone code. 9 ; Show bytes in assembled standalone code.
10 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ 10 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \
11 ; RUN: --args -Om1 \ 11 ; RUN: --args -Om1 \
12 ; RUN: | FileCheck %s --check-prefix=DIS 12 ; RUN: | FileCheck %s --check-prefix=DIS
13 13
14 ; Compile using integrated assembler. 14 ; Compile using integrated assembler.
15 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 \ 15 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 \
16 ; RUN: | FileCheck %s --check-prefix=IASM 16 ; RUN: | FileCheck %s --check-prefix=IASM
17 17
18 ; Show bytes in assembled integrated code. 18 ; Show bytes in assembled integrated code.
19 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ 19 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
20 ; RUN: --args -Om1 \ 20 ; RUN: --args -Om1 \
21 ; RUN: | FileCheck %s --check-prefix=DIS 21 ; RUN: | FileCheck %s --check-prefix=DIS
22 22
23 define internal i32 @testVmrsASPR_nzcv() { 23 define internal void @testMoveDouble() {
24 ; ASM-LABEL: testVmrsASPR_nzcv: 24 ; ASM-LABEL: testMoveDouble:
25 ; DIS-LABEL: 00000000 <testVmrsASPR_nzcv>: 25 ; DIS-LABEL: 00000000 <testMoveDouble>:
26 26
27 entry: 27 entry:
28 ; ASM: .LtestVmrsASPR_nzcv$entry: 28 %addr = inttoptr i32 0 to double*
29 store double 0.5, double* %addr, align 8
29 30
30 %test = fcmp olt float 0.0, 0.0 31 ; ASM: vmov.f64 d0, #5.000000e-01
32 ; DIS: 4: eeb60b00
33 ; IASM-NOT: vmov.f64
31 34
32 ; ASM: vmrs APSR_nzcv, FPSCR 35 ret void
33 ; DIS: 14: eef1fa10 36 }
34 ; IASM-NOT: vmrs
35 37
36 %result = zext i1 %test to i32 38 define internal void @testMoveFloat() {
37 ret i32 %result 39 ; ASM-LABEL: testMoveFloat:
40 ; DIS-LABEL: 00000010 <testMoveFloat>:
41
42 entry:
43 %addr = inttoptr i32 0 to float*
44 store float 0.5, float* %addr, align 4
45
46 ; ASM: vmov.f32 s0, #5.000000e-01
47 ; DIS: 14: eeb60a00
48 ; IASM-NOT: vmov.f32
49
50 ret void
38 } 51 }
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