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

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: Fix issues in last patch. 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
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.
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 \
7 ; RUN: -reg-use d20 \
8 ; RUN: | FileCheck %s --check-prefix=ASM 8 ; RUN: | FileCheck %s --check-prefix=ASM
9 9
10 ; Show bytes in assembled standalone code. 10 ; Show bytes in assembled standalone code.
11 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ 11 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \
12 ; RUN: --args -Om1 \ 12 ; RUN: --args -Om1 \
13 ; RUN: -reg-use d20 \
13 ; RUN: | FileCheck %s --check-prefix=DIS 14 ; RUN: | FileCheck %s --check-prefix=DIS
14 15
15 ; Compile using integrated assembler. 16 ; Compile using integrated assembler.
16 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 \ 17 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 \
18 ; RUN: -reg-use d20 \
17 ; RUN: | FileCheck %s --check-prefix=IASM 19 ; RUN: | FileCheck %s --check-prefix=IASM
18 20
19 ; Show bytes in assembled integrated code. 21 ; Show bytes in assembled integrated code.
20 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ 22 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
21 ; RUN: --args -Om1 \ 23 ; RUN: --args -Om1 \
24 ; RUN: -reg-use d20 \
22 ; RUN: | FileCheck %s --check-prefix=DIS 25 ; RUN: | FileCheck %s --check-prefix=DIS
23 26
24 define internal double @testVeor() { 27 define internal i64 @testVldrStrImm(double %d) {
25 ; ASM-LABEL: testVeor: 28 ; ASM-LABEL: testVldrStrImm:
26 ; DIS: 00000000 <testVeor>: 29 ; DIS-LABEL: 00000000 <testVldrStrImm>:
30 ; IASM-LABEL: testVldrStrImm:
27 31
28 entry: 32 entry:
29 ; ASM: .LtestVeor$entry: 33 ; ASM-NEXT: .LtestVldrStrImm$entry:
34 ; IASM-NEXT: .LtestVldrStrImm$entry:
30 35
31 ret double 0.0 36 ; ASM: vstr d0, [sp, #8]
37 ; DIS: 4: ed8d0b02
38 ; IASM-NOT: vstr
32 39
33 ; ASM: veor.f64 d0, d0, d0 40 %v = bitcast double %d to i64
34 ; DIS: 0: f3000110
35 ; IASM-NOT: veor
36 41
42 ; ASM: vldr d20, [sp, #8]
43 ; DIS: 8: eddd4b02
44 ; IASM-NOT: vldr
45
46 ret i64 %v
37 } 47 }
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