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

Side by Side Diff: tests_lit/assembler/arm32/vldr.vstr.imm.ll

Issue 1619703008: Fix vldrd/vstrd handling of immediate offsets in ARM. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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
« 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 ; Show that we know how to translate veor. Does this by noting that 1 ; Test vldrd and vstrd when address is offset with an immediate.
Jim Stichnoth 2016/01/22 05:10:30 Did you mean "vldr and vstr"?
Karl 2016/01/22 16:24:29 This file doesn't test vstrs/vlds (or many other v
2 ; loading a double 0.0 introduces a veor.
3
4 ; REQUIRES: allow_dump
5 2
6 ; Compile using standalone assembler. 3 ; Compile using standalone assembler.
7 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 \ 4 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 \
5 ; RUN: -reg-use d20 \
8 ; RUN: | FileCheck %s --check-prefix=ASM 6 ; RUN: | FileCheck %s --check-prefix=ASM
9 7
10 ; Show bytes in assembled standalone code. 8 ; Show bytes in assembled standalone code.
11 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ 9 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \
12 ; RUN: --args -Om1 \ 10 ; RUN: --args -Om1 \
11 ; RUN: -reg-use d20 \
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 \
16 ; RUN: -reg-use d20 \
17 ; RUN: | FileCheck %s --check-prefix=IASM 17 ; RUN: | FileCheck %s --check-prefix=IASM
18 18
19 ; Show bytes in assembled integrated code. 19 ; Show bytes in assembled integrated code.
20 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ 20 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
21 ; RUN: --args -Om1 \ 21 ; RUN: --args -Om1 \
22 ; RUN: -reg-use d20 \
22 ; RUN: | FileCheck %s --check-prefix=DIS 23 ; RUN: | FileCheck %s --check-prefix=DIS
23 24
24 define internal double @testVeor() { 25 define internal i64 @testVldrStrImm(double %d) {
25 ; ASM-LABEL: testVeor: 26 ; ASM-LABEL: testVldrStrImm:
26 ; DIS: 00000000 <testVeor>: 27 ; DIS-LABEL: 00000000 <testVldrStrImm>:
28 ; IASM-LABEL: testVldrStrImm:
27 29
28 entry: 30 entry:
29 ; ASM: .LtestVeor$entry: 31 ; ASM-NEXT: .LtestVldrStrImm$entry:
32 ; IASM-NEXT: .LtestVldrStrImm$entry:
30 33
31 ret double 0.0 34 ; ASM: vstr d0, [sp, #8]
35 ; DIS: 4: ed8d0b02
36 ; IASM-NOT: vstr
32 37
33 ; ASM: veor.f64 d0, d0, d0 38 %v = bitcast double %d to i64
34 ; DIS: 0: f3000110
35 ; IASM-NOT: veor
36 39
40 ; ASM: vldr d20, [sp, #8]
41 ; DIS: 8: eddd4b02
42 ; IASM-NOT: vldr
43
44 ret i64 %v
37 } 45 }
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