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

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

Issue 1407263005: Subzero: Fix MINIMAL build issues. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Missed one file Created 5 years, 2 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/mov-imm.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 instruction sub. 1 ; Show that we know how to translate instruction sub.
2 ; TODO(kschimpf) Currently only know how to test subtract 1 from R0. 2 ; TODO(kschimpf) Currently only know how to test subtract 1 from R0.
3 3
4 ; NOTE: We use -O2 to get rid of memory stores. 4 ; NOTE: We use -O2 to get rid of memory stores.
5 5
6 ; REQUIRES: allow_dump
7
6 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \ 8 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \
7 ; RUN: | FileCheck %s --check-prefix=ASM 9 ; RUN: | FileCheck %s --check-prefix=ASM
8 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 \ 10 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -O2 \
9 ; RUN: | FileCheck %s --check-prefix=IASM 11 ; RUN: | FileCheck %s --check-prefix=IASM
10 12
11 define internal i32 @sub1FromR0(i32 %p) { 13 define internal i32 @sub1FromR0(i32 %p) {
12 %v = sub i32 %p, 1 14 %v = sub i32 %p, 1
13 ret i32 %v 15 ret i32 %v
14 } 16 }
15 17
16 ; ASM-LABEL: sub1FromR0: 18 ; ASM-LABEL: sub1FromR0:
17 ; ASM: sub r0, r0, #1 19 ; ASM: sub r0, r0, #1
18 ; ASM: bx lr 20 ; ASM: bx lr
19 21
20 ; IASM-LABEL: sub1FromR0: 22 ; IASM-LABEL: sub1FromR0:
21 ; IASM: .byte 0x1 23 ; IASM: .byte 0x1
22 ; IASM-NEXT: .byte 0x0 24 ; IASM-NEXT: .byte 0x0
23 ; IASM-NEXT: .byte 0x40 25 ; IASM-NEXT: .byte 0x40
24 ; IASM-NEXT: .byte 0xe2 26 ; IASM-NEXT: .byte 0xe2
25 27
OLDNEW
« no previous file with comments | « tests_lit/assembler/arm32/mov-imm.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698