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

Side by Side Diff: tests_lit/assembler/arm32/mov-imm.ll

Issue 1448783004: Fix translation of instruction "move" in ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit. 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/mov-const.ll ('k') | tests_lit/assembler/arm32/mul.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 move (immediate) ARM instruction. 1 ; Show that we know how to translate move (immediate) ARM instruction.
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 -O2 \ 6 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \
7 ; RUN: | FileCheck %s --check-prefix=ASM 7 ; RUN: | FileCheck %s --check-prefix=ASM
8 8
9 ; Show bytes in assembled standalone code. 9 ; Show bytes in assembled standalone code.
10 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ 10 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \
11 ; RUN: --args -O2 | FileCheck %s --check-prefix=DIS 11 ; RUN: --args -O2 | FileCheck %s --check-prefix=DIS
12 12
13 ; Compile using integrated assembler. 13 ; Compile using integrated assembler.
14 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 -unsafe-ias \ 14 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 \
15 ; RUN: | FileCheck %s --check-prefix=IASM 15 ; RUN: | FileCheck %s --check-prefix=IASM
16 16
17 ; Show bytes in assembled integrated code. 17 ; Show bytes in assembled integrated code.
18 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ 18 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
19 ; RUN: --args -O2 -unsafe-ias | FileCheck %s --check-prefix=DIS 19 ; RUN: --args -O2 | FileCheck %s --check-prefix=DIS
20 20
21 define internal i32 @Imm1() { 21 define internal i32 @Imm1() {
22 ret i32 1 22 ret i32 1
23 } 23 }
24 24
25 ; ASM-LABEL: Imm1: 25 ; ASM-LABEL: Imm1:
26 ; ASM: mov r0, #1 26 ; ASM: mov r0, #1
27 27
28 ; DIS-LABEL:00000000 <Imm1>: 28 ; DIS-LABEL:00000000 <Imm1>:
29 ; DIS-NEXT: 0: e3a00001 29 ; DIS-NEXT: 0: e3a00001
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 ; ASM: mov r0, #170 299 ; ASM: mov r0, #170
300 300
301 ; DIS-LABEL:00000100 <rotate0ImmAA>: 301 ; DIS-LABEL:00000100 <rotate0ImmAA>:
302 ; DIS-NEXT: 100: e3a000aa 302 ; DIS-NEXT: 100: e3a000aa
303 303
304 ; IASM-LABEL: rotate0ImmAA: 304 ; IASM-LABEL: rotate0ImmAA:
305 ; IASM: .byte 0xaa 305 ; IASM: .byte 0xaa
306 ; IASM: .byte 0x0 306 ; IASM: .byte 0x0
307 ; IASM: .byte 0xa0 307 ; IASM: .byte 0xa0
308 ; IASM: .byte 0xe3 308 ; IASM: .byte 0xe3
OLDNEW
« no previous file with comments | « tests_lit/assembler/arm32/mov-const.ll ('k') | tests_lit/assembler/arm32/mul.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698