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

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

Issue 1687553002: Change all ARM calls into indirect calls. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. 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 | « tests_lit/assembler/arm32/sandboxing.ll ('k') | tests_lit/llvm2ice_tests/64bit.pnacl.ll » ('j') | 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 vpush and vpop. 1 ; Show that we know how to translate vpush and vpop.
2 2
3 ; NOTE: We use -O2 because vpush/vpop only occur if optimized. Uses 3 ; NOTE: We use -O2 because vpush/vpop only occur if optimized. Uses
4 ; simple call with double parameters to cause the insertion of 4 ; simple call with double parameters to cause the insertion of
5 ; vpush/vpop. 5 ; vpush/vpop.
6 6
7 ; REQUIRES: allow_dump 7 ; REQUIRES: allow_dump
8 8
9 ; Compile using standalone assembler. 9 ; Compile using standalone assembler.
10 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 -reg-use=d9,d10 \ 10 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 -reg-use=d9,d10 \
11 ; RUN: | FileCheck %s --check-prefix=ASM 11 ; RUN: | FileCheck %s --check-prefix=ASM
12 12
13 ; Show bytes in assembled standalone code. 13 ; Show bytes in assembled standalone code.
14 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ 14 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \
15 ; RUN: --args -O2 -reg-use=d9,d10 \ 15 ; RUN: --args -O2 -reg-use=d9,d10 \
16 ; RUN: | FileCheck %s --check-prefix=DIS 16 ; RUN: | FileCheck %s --check-prefix=DIS
17 17
18 ; Compile using integrated assembler. 18 ; Compile using integrated assembler.
19 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 -reg-use=d9,d10 \ 19 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 -reg-use=d9,d10 \
20 ; RUN: | FileCheck %s --check-prefix=IASM 20 ; RUN: | FileCheck %s --check-prefix=IASM
21 21
22 ; Show bytes in assembled integrated code. 22 ; Show bytes in assembled integrated code.
23 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ 23 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
24 ; RUN: --args -O2 -reg-use=d9,d10 \ 24 ; RUN: --args -O2 -reg-use=d9,d10 \
25 ; RUN: | FileCheck %s --check-prefix=DIS 25 ; RUN: | FileCheck %s --check-prefix=DIS
26 26
27 define internal double @testVpushVpop(double %v1, double %v2) { 27 define internal double @testVpushVpop(double %v1, double %v2) {
28 ; ASM-LABEL: testVpushVpop: 28 ; ASM-LABEL: testVpushVpop:
29 ; DIS-LABEL: 00000000 <testVpushVpop>: 29 ; DIS-LABEL: {{.+}} <testVpushVpop>:
30 30
31 ; ASM: vpush {s18, s19, s20, s21} 31 ; ASM: vpush {s18, s19, s20, s21}
32 ; DIS: 0: ed2d9a04 32 ; DIS: {{.+}}: ed2d9a04
33 ; IASM-NOT: vpush 33 ; IASM-NOT: vpush
34 34
35 call void @foo() 35 call void @foo()
36 %res = fadd double %v1, %v2 36 %res = fadd double %v1, %v2
37 ret double %res 37 ret double %res
38 38
39 ; ASM: vpop {s18, s19, s20, s21} 39 ; ASM: vpop {s18, s19, s20, s21}
40 ; DIS: 28: ecbd9a04 40 ; DIS: {{.+}}: ecbd9a04
41 ; IASM-NOT: vpopd 41 ; IASM-NOT: vpopd
42 42
43 } 43 }
44 44
45 define internal void @foo() { 45 define internal void @foo() {
46 ret void 46 ret void
47 } 47 }
OLDNEW
« no previous file with comments | « tests_lit/assembler/arm32/sandboxing.ll ('k') | tests_lit/llvm2ice_tests/64bit.pnacl.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698