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

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

Issue 1617993005: Fix vldrs/vstrs handling of immediate offsets in ARM. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit. 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/IceAssemblerARM32.cpp ('K') | « src/IceAssemblerARM32.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 vldrd and vstrd when address is offset with an immediate. 1 ; Test vldr{s,d} and vstr{s,d} when address is offset with an immediate.
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: -reg-use d20 \ 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: -reg-use d20 \
14 ; RUN: | FileCheck %s --check-prefix=DIS 14 ; RUN: | FileCheck %s --check-prefix=DIS
15 15
16 ; Compile using integrated assembler. 16 ; Compile using integrated assembler.
17 ; 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 \ 18 ; RUN: -reg-use d20 \
19 ; RUN: | FileCheck %s --check-prefix=IASM 19 ; RUN: | FileCheck %s --check-prefix=IASM
20 20
21 ; Show bytes in assembled integrated code. 21 ; Show bytes in assembled integrated code.
22 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ 22 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
23 ; RUN: --args -Om1 \ 23 ; RUN: --args -Om1 \
24 ; RUN: -reg-use d20 \ 24 ; RUN: -reg-use d20 \
25 ; RUN: | FileCheck %s --check-prefix=DIS 25 ; RUN: | FileCheck %s --check-prefix=DIS
26 26
27 define internal i64 @testVldrStrImm(double %d) { 27 define internal i32 @testFloatImm(float %f) {
28 ; ASM-LABEL: testVldrStrImm: 28 ; ASM-LABEL: testFloatImm:
29 ; DIS-LABEL: 00000000 <testVldrStrImm>: 29 ; DIS-LABEL: 00000000 <testFloatImm>:
30 ; IASM-LABEL: testVldrStrImm: 30 ; IASM-LABEL: testFloatImm:
31 31
32 entry: 32 entry:
33 ; ASM-NEXT: .LtestVldrStrImm$entry: 33 ; ASM: .LtestFloatImm$entry:
34 ; IASM-NEXT: .LtestVldrStrImm$entry: 34 ; IASM: .LtestFloatImm$entry:
35
36 ; ASM: vstr s0, [sp, #4]
37 ; DIS: 4: ed8d0a01
38 ; IASM-NOT: vstr
39
40 %v = bitcast float %f to i32
41
42 ; ASM: vldr s0, [sp, #4]
43 ; DIS: 8: ed9d0a01
44 ; IASM-NOT: vldr
45
46 ret i32 %v
47 }
48
49 define internal i64 @testDoubleImm(double %d) {
50 ; ASM-LABEL: testDoubleImm:
51 ; DIS-LABEL: 00000020 <testDoubleImm>:
52 ; IASM-LABEL: testDoubleImm:
53
54 entry:
55 ; ASM: .LtestDoubleImm$entry:
56 ; IASM: .LtestDoubleImm$entry:
35 57
36 ; ASM: vstr d0, [sp, #8] 58 ; ASM: vstr d0, [sp, #8]
37 ; DIS: 4: ed8d0b02 59 ; DIS: 24: ed8d0b02
38 ; IASM-NOT: vstr 60 ; IASM-NOT: vstr
39 61
40 %v = bitcast double %d to i64 62 %v = bitcast double %d to i64
41 63
42 ; ASM: vldr d20, [sp, #8] 64 ; ASM: vldr d20, [sp, #8]
43 ; DIS: 8: eddd4b02 65 ; DIS: 28: eddd4b02
44 ; IASM-NOT: vldr 66 ; IASM-NOT: vldr
45 67
46 ret i64 %v 68 ret i64 %v
47 } 69 }
OLDNEW
« src/IceAssemblerARM32.cpp ('K') | « src/IceAssemblerARM32.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698