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

Side by Side Diff: tests_lit/assembler/arm32/vmrs.ll

Issue 1636473002: Add the VMRS instruction to the integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix test case. 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
1 ; Show that we know how to translate veor. Does this by noting that 1 ; Test the "vmrs APSR_nzcv, FPSCR" form of the VMRS instruction.
2 ; loading a double 0.0 introduces a veor.
3 2
4 ; REQUIRES: allow_dump 3 ; REQUIRES: allow_dump
5 4
6 ; Compile using standalone assembler. 5 ; Compile using standalone assembler.
7 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 \ 6 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 \
8 ; RUN: | FileCheck %s --check-prefix=ASM 7 ; RUN: | FileCheck %s --check-prefix=ASM
9 8
10 ; Show bytes in assembled standalone code. 9 ; Show bytes in assembled standalone code.
11 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ 10 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \
12 ; RUN: --args -Om1 \ 11 ; RUN: --args -Om1 \
13 ; RUN: | FileCheck %s --check-prefix=DIS 12 ; RUN: | FileCheck %s --check-prefix=DIS
14 13
15 ; Compile using integrated assembler. 14 ; Compile using integrated assembler.
16 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 \ 15 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 \
17 ; RUN: | FileCheck %s --check-prefix=IASM 16 ; RUN: | FileCheck %s --check-prefix=IASM
18 17
19 ; Show bytes in assembled integrated code. 18 ; Show bytes in assembled integrated code.
20 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ 19 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
21 ; RUN: --args -Om1 \ 20 ; RUN: --args -Om1 \
22 ; RUN: | FileCheck %s --check-prefix=DIS 21 ; RUN: | FileCheck %s --check-prefix=DIS
23 22
24 define internal double @testVeor() { 23 define internal i32 @testVmrsASPR_nzcv() {
25 ; ASM-LABEL: testVeor: 24 ; ASM-LABEL: testVmrsASPR_nzcv:
26 ; DIS: 00000000 <testVeor>: 25 ; DIS-LABEL: 00000000 <testVmrsASPR_nzcv>:
27 26
28 entry: 27 entry:
29 ; ASM: .LtestVeor$entry: 28 ; ASM: .LtestVmrsASPR_nzcv$entry:
30 29
31 ret double 0.0 30 %test = fcmp olt float 0.0, 0.0
32 31
33 ; ASM: veor.f64 d0, d0, d0 32 ; ASM: vmrs APSR_nzcv, FPSCR
34 ; DIS: 0: f3000110 33 ; DIS: 18: eef1fa10
35 ; IASM-NOT: veor 34 ; IASM-NOT: vmrs
36 35
36 %result = zext i1 %test to i32
37 ret i32 %result
37 } 38 }
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