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

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

Issue 1540653003: Add VADD instruction to the ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Clean up ARM register functions. 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 | « tests_lit/assembler/arm32/vadd.ll ('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 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 \ 10 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \
(...skipping 15 matching lines...) Expand all
26 ; ASM-LABEL: testVpushVpop: 26 ; ASM-LABEL: testVpushVpop:
27 ; DIS-LABEL: 00000000 <testVpushVpop>: 27 ; DIS-LABEL: 00000000 <testVpushVpop>:
28 ; IASM-LABEL: testVpushVpop: 28 ; IASM-LABEL: testVpushVpop:
29 29
30 entry: 30 entry:
31 ; ASM-NEXT: .LtestVpushVpop$entry: 31 ; ASM-NEXT: .LtestVpushVpop$entry:
32 ; IASM-NEXT: .LtestVpushVpop$entry: 32 ; IASM-NEXT: .LtestVpushVpop$entry:
33 33
34 ; ASM-NEXT: vpush {s28, s29, s30, s31} 34 ; ASM-NEXT: vpush {s28, s29, s30, s31}
35 ; DIS-NEXT: 0: ed2dea04 35 ; DIS-NEXT: 0: ed2dea04
36 ; IASM-NEXT: » .byte 0x4 36 ; IASM-NEXT: .byte 0x4
37 ; IASM-NEXT: » .byte 0xea 37 ; IASM-NEXT: .byte 0xea
38 ; IASM-NEXT: » .byte 0x2d 38 ; IASM-NEXT: .byte 0x2d
39 ; IASM-NEXT: » .byte 0xed 39 ; IASM-NEXT: .byte 0xed
40 40
41 ; ASM-NEXT: push {lr} 41 ; ASM-NEXT: push {lr}
42 ; DIS-NEXT: 4: e52de004 42 ; DIS-NEXT: 4: e52de004
43 ; IASM-NEXT: » .byte 0x4 43 ; IASM-NEXT: .byte 0x4
44 ; IASM-NEXT: » .byte 0xe0 44 ; IASM-NEXT: .byte 0xe0
45 ; IASM-NEXT: » .byte 0x2d 45 ; IASM-NEXT: .byte 0x2d
46 ; IASM-NEXT: » .byte 0xe5 46 ; IASM-NEXT: .byte 0xe5
47 47
48 ; ASM-NEXT: sub sp, sp, #12 48 ; ASM-NEXT: sub sp, sp, #12
49 ; DIS-NEXT: 8: e24dd00c 49 ; DIS-NEXT: 8: e24dd00c
50 ; IASM-NEXT: » .byte 0xc 50 ; IASM-NEXT: .byte 0xc
51 ; IASM-NEXT: » .byte 0xd0 51 ; IASM-NEXT: .byte 0xd0
52 ; IASM-NEXT: » .byte 0x4d 52 ; IASM-NEXT: .byte 0x4d
53 ; IASM-NEXT: » .byte 0xe2 53 ; IASM-NEXT: .byte 0xe2
54 54
55 ; ASM-NEXT: vmov.f64 d15, d0 55 ; ASM-NEXT: vmov.f64 d15, d0
56 ; DIS-NEXT: c: eeb0fb40 56 ; DIS-NEXT: c: eeb0fb40
57 ; IASM-NEXT: » vmov.f64» d15, d0 57 ; IASM-NEXT: vmov.f64 d15, d0
58 58
59 ; ASM-NEXT: vmov.f64 d14, d1 59 ; ASM-NEXT: vmov.f64 d14, d1
60 ; DIS-NEXT: 10: eeb0eb41 60 ; DIS-NEXT: 10: eeb0eb41
61 ; IASM-NEXT: » vmov.f64» d14, d1 61 ; IASM-NEXT: vmov.f64 d14, d1
62 62
63 call void @foo() 63 call void @foo()
64 64
65 ; ASM-NEXT: bl foo 65 ; ASM-NEXT: bl foo
66 ; DIS-NEXT: 14: ebfffffe 66 ; DIS-NEXT: 14: ebfffffe
67 ; IASM-NEXT: » bl» foo» @ .word ebfffffe 67 ; IASM-NEXT: bl foo @ .word ebfffffe
68 68
69 %res = fadd double %v1, %v2 69 %res = fadd double %v1, %v2
70 70
71 ; ASM-NEXT: vadd.f64 d15, d15, d14 71 ; ASM-NEXT: vadd.f64 d15, d15, d14
72 ; DIS-NEXT: 18: ee3ffb0e 72 ; DIS-NEXT: 18: ee3ffb0e
73 ; IASM-NEXT: » vadd.f64» d15, d15, d14 73 ; IASM-NEXT: .byte 0xe
74 ; IASM-NEXT: .byte 0xfb
75 ; IASM-NEXT: .byte 0x3f
76 ; IASM-NEXT: .byte 0xee
74 77
75 ; ASM-NEXT: vmov.f64 d0, d15 78 ; ASM-NEXT: vmov.f64 d0, d15
76 ; DIS-NEXT: 1c: eeb00b4f 79 ; DIS-NEXT: 1c: eeb00b4f
77 ; IASM-NEXT: » vmov.f64» d0, d15 80 ; IASM-NEXT: vmov.f64 d0, d15
78 81
79 ret double %res 82 ret double %res
80 83
81 ; ASM-NEXT: add sp, sp, #12 84 ; ASM-NEXT: add sp, sp, #12
82 ; DIS-NEXT: 20: e28dd00c 85 ; DIS-NEXT: 20: e28dd00c
83 ; IASM-NEXT: » .byte 0xc 86 ; IASM-NEXT: .byte 0xc
84 ; IASM-NEXT: » .byte 0xd0 87 ; IASM-NEXT: .byte 0xd0
85 ; IASM-NEXT: » .byte 0x8d 88 ; IASM-NEXT: .byte 0x8d
86 ; IASM-NEXT: » .byte 0xe2 89 ; IASM-NEXT: .byte 0xe2
87 90
88 ; ASM-NEXT: pop {lr} 91 ; ASM-NEXT: pop {lr}
89 ; ASM-NEXT: # lr = def.pseudo 92 ; ASM-NEXT: # lr = def.pseudo
90 ; DIS-NEXT: 24: e49de004 93 ; DIS-NEXT: 24: e49de004
91 ; IASM-NEXT: » .byte 0x4 94 ; IASM-NEXT: .byte 0x4
92 ; IASM-NEXT: » .byte 0xe0 95 ; IASM-NEXT: .byte 0xe0
93 ; IASM-NEXT: » .byte 0x9d 96 ; IASM-NEXT: .byte 0x9d
94 ; IASM-NEXT: » .byte 0xe4 97 ; IASM-NEXT: .byte 0xe4
95 98
96 ; ASM-NEXT: vpop {s28, s29, s30, s31} 99 ; ASM-NEXT: vpop {s28, s29, s30, s31}
97 ; ASM-NEXT: # s28 = def.pseudo 100 ; ASM-NEXT: # s28 = def.pseudo
98 ; ASM-NEXT: # s29 = def.pseudo 101 ; ASM-NEXT: # s29 = def.pseudo
99 ; ASM-NEXT: # s30 = def.pseudo 102 ; ASM-NEXT: # s30 = def.pseudo
100 ; ASM-NEXT: # s31 = def.pseudo 103 ; ASM-NEXT: # s31 = def.pseudo
101 ; DIS-NEXT: 28: ecbdea04 104 ; DIS-NEXT: 28: ecbdea04
102 ; IASM-NEXT: » .byte 0x4 105 ; IASM-NEXT: .byte 0x4
103 ; IASM-NEXT: » .byte 0xea 106 ; IASM-NEXT: .byte 0xea
104 ; IASM-NEXT: » .byte 0xbd 107 ; IASM-NEXT: .byte 0xbd
105 ; IASM-NEXT: » .byte 0xec 108 ; IASM-NEXT: .byte 0xec
106 109
107 ; ASM-NEXT: bx lr 110 ; ASM-NEXT: bx lr
108 ; DIS-NEXT: 2c: e12fff1e 111 ; DIS-NEXT: 2c: e12fff1e
109 ; IASM-NEXT: » .byte 0x1e 112 ; IASM-NEXT: .byte 0x1e
110 ; IASM-NEXT: » .byte 0xff 113 ; IASM-NEXT: .byte 0xff
111 ; IASM-NEXT: » .byte 0x2f 114 ; IASM-NEXT: .byte 0x2f
112 ; IASM-NEXT: » .byte 0xe1 115 ; IASM-NEXT: .byte 0xe1
113 116
114 } 117 }
115 118
116 define internal void @foo() { 119 define internal void @foo() {
117 ret void 120 ret void
118 } 121 }
OLDNEW
« no previous file with comments | « tests_lit/assembler/arm32/vadd.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698