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

Side by Side Diff: tests_lit/assembler/arm32/vcvt.s32.f32.ll

Issue 1611293003: Add vcvt.s32.f32 instruction to the integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 4 years, 11 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 ; Show that we know how to translate convertring float to signed integer.
Jim Stichnoth 2016/01/22 04:35:22 converting
Karl 2016/01/22 16:40:39 Done.
2
3 ; REQUIRES: allow_dump
4
5 ; Compile using standalone assembler.
6 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 \
7 ; RUN: --reg-use=s20 | 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=s20 | FileCheck %s --check-prefix=DIS
12
13 ; Compile using integrated assembler.
14 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 \
15 ; RUN: --reg-use=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=s20 | FileCheck %s --check-prefix=DIS
21
22 define internal i32 @FloatToSignedInt() {
23 ; ASM-LABEL: FloatToSignedInt:
24 ; DIS-LABEL: 00000000 <FloatToSignedInt>:
25 ; IASM-LABEL: FloatToSignedInt:
26
27 entry:
28 ; ASM-NEXT: .LFloatToSignedInt$entry:
29 ; IASM-NEXT: .LFloatToSignedInt$entry:
30
31 %v = fptosi float 0.0 to i32
32
33 ; ASM: vcvt.s32.f32 s20, s20
34 ; DIS: 14: eebdaaca
35 ; IASM-NOT: vcvt
36
37 ret i32 %v
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