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

Side by Side Diff: tests_lit/assembler/arm32/branch-simple.ll

Issue 1418313003: Handle branch relative to pc in ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 5 years, 1 month 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/branch-mult-fwd.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 ; Test branching instructions. 1 ; Test branching instructions.
2 ; TODO(kschimpf): Get this working. 2 ; TODO(kschimpf): Get this working.
3 3
4 ; REQUIRES: allow_dump
5
4 ; Compile using standalone assembler. 6 ; Compile using standalone assembler.
5 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 \ 7 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 \
6 ; RUN: | FileCheck %s --check-prefix=ASM 8 ; RUN: | FileCheck %s --check-prefix=ASM
7 9
8 ; Show bytes in assembled standalone code. 10 ; Show bytes in assembled standalone code.
9 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ 11 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \
10 ; RUN: --args -Om1 | FileCheck %s --check-prefix=DIS 12 ; RUN: --args -Om1 | FileCheck %s --check-prefix=DIS
11 13
12 ; Compile using integrated assembler. 14 ; Compile using integrated assembler.
13 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 \ 15 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 \
14 ; RUN: | FileCheck %s --check-prefix=IASM 16 ; RUN: | FileCheck %s --check-prefix=IASM
15 17
16 ; Show bytes in assembled integrated code. 18 ; Show bytes in assembled integrated code.
17 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ 19 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
18 ; RUN: --args -Om1 | FileCheck %s --check-prefix=DIS 20 ; RUN: --args -Om1 | FileCheck %s --check-prefix=DIS
19 21
20 ; REQUIRES: allow_dump
21
22 define internal void @simple_uncond_branch() { 22 define internal void @simple_uncond_branch() {
23 ; DIS-LABEL: 00000000 <simple_uncond_branch>: 23 ; DIS-LABEL: 00000000 <simple_uncond_branch>:
24 ; ASM-LABEL: simple_uncond_branch: 24 ; ASM-LABEL: simple_uncond_branch:
25 ; IASM-LABEL:simple_uncond_branch: 25 ; IASM-LABEL:simple_uncond_branch:
26 26
27 ; ASM-NEXT: .Lsimple_uncond_branch$__0: 27 ; ASM-NEXT: .Lsimple_uncond_branch$__0:
28 ; IASM-NEXT: .Lsimple_uncond_branch$__0: 28 ; IASM-NEXT: .Lsimple_uncond_branch$__0:
29 29
30 br label %l2 30 br label %l2
31 ; ASM-NEXT: b .Lsimple_uncond_branch$l2 31 ; ASM-NEXT: b .Lsimple_uncond_branch$l2
32 ; IASM-NEXT: b .Lsimple_uncond_branch$l2 32 ; IASM-NEXT: .byte 0x0
33 ; IASM-NEXT: .byte 0x0
34 ; IASM-NEXT: .byte 0x0
35 ; IASM-NEXT: .byte 0xea
33 ; DIS-NEXT: 0: ea000000 36 ; DIS-NEXT: 0: ea000000
34 37
35 l1: 38 l1:
36 ; ASM-NEXT: .Lsimple_uncond_branch$l1: 39 ; ASM-NEXT: .Lsimple_uncond_branch$l1:
37 ; IASM-NEXT: .Lsimple_uncond_branch$l1: 40 ; IASM-NEXT: .Lsimple_uncond_branch$l1:
38 41
39 br label %l3 42 br label %l3
40 ; ASM-NEXT: b .Lsimple_uncond_branch$l3 43 ; ASM-NEXT: b .Lsimple_uncond_branch$l3
41 ; IASM-NEXT: b .Lsimple_uncond_branch$l3 44 ; IASM-NEXT: .byte 0x0
45 ; IASM-NEXT: .byte 0x0
46 ; IASM-NEXT: .byte 0x0
47 ; IASM-NEXT: .byte 0xea
42 ; DIS-NEXT: 4: ea000000 48 ; DIS-NEXT: 4: ea000000
43 49
44 l2: 50 l2:
45 ; ASM-NEXT: .Lsimple_uncond_branch$l2: 51 ; ASM-NEXT: .Lsimple_uncond_branch$l2:
46 ; IASM-NEXT: .Lsimple_uncond_branch$l2: 52 ; IASM-NEXT: .Lsimple_uncond_branch$l2:
47 53
48 br label %l1 54 br label %l1
49 ; ASM-NEXT: b .Lsimple_uncond_branch$l1 55 ; ASM-NEXT: b .Lsimple_uncond_branch$l1
50 ; IASM-NEXT: b .Lsimple_uncond_branch$l1 56 ; IASM-NEXT: .byte 0xfd
57 ; IASM-NEXT: .byte 0xff
58 ; IASM-NEXT: .byte 0xff
59 ; IASM-NEXT: .byte 0xea
51 ; DIS-NEXT: 8: eafffffd 60 ; DIS-NEXT: 8: eafffffd
52 61
53 l3: 62 l3:
54 ; ASM-NEXT: .Lsimple_uncond_branch$l3: 63 ; ASM-NEXT: .Lsimple_uncond_branch$l3:
55 ; IASM-NEXT: .Lsimple_uncond_branch$l3: 64 ; IASM-NEXT: .Lsimple_uncond_branch$l3:
56 65
57 ret void 66 ret void
58 ; ASM-NEXT: bx lr 67 ; ASM-NEXT: bx lr
59 ; IASM-NEXT: .byte 0x1e 68 ; IASM-NEXT: .byte 0x1e
60 ; IASM-NEXT: .byte 0xff 69 ; IASM-NEXT: .byte 0xff
61 ; IASM-NEXT: .byte 0x2f 70 ; IASM-NEXT: .byte 0x2f
62 ; IASM-NEXT: .byte 0xe1 71 ; IASM-NEXT: .byte 0xe1
72 ; DIS-NEXT: c: e12fff1e
63 73
64 } 74 }
OLDNEW
« no previous file with comments | « tests_lit/assembler/arm32/branch-mult-fwd.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698