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

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

Issue 1685253003: ARM32 vector lowering: fabs, scalarize remaining arithmetic operations. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: More lit tests 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
OLDNEW
1 ; Show that we know how to translate lsl. 1 ; Show that we know how to translate lsl.
2 2
3 ; NOTE: We use -O2 to get rid of memory stores. 3 ; NOTE: We use -O2 to get rid of memory stores.
4 4
5 ; REQUIRES: allow_dump 5 ; REQUIRES: allow_dump
6 6
7 ; Compile using standalone assembler. 7 ; Compile using standalone assembler.
8 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \ 8 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -O2 \
9 ; RUN: | FileCheck %s --check-prefix=ASM 9 ; RUN: | FileCheck %s --check-prefix=ASM
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 ; ASM-NEXT: lsl r0, r0, r1 55 ; ASM-NEXT: lsl r0, r0, r1
56 ; DIS-NEXT: 10: e1a00110 56 ; DIS-NEXT: 10: e1a00110
57 ; IASM-NEXT: .byte 0x10 57 ; IASM-NEXT: .byte 0x10
58 ; IASM-NEXT: .byte 0x1 58 ; IASM-NEXT: .byte 0x1
59 ; IASM-NEXT: .byte 0xa0 59 ; IASM-NEXT: .byte 0xa0
60 ; IASM-NEXT: .byte 0xe1 60 ; IASM-NEXT: .byte 0xe1
61 61
62 ret i32 %shl 62 ret i32 %shl
63 } 63 }
64
65 define internal <4 x i32> @ShlVec(<4 x i32> %a, <4 x i32> %b) {
66 ; ASM-LABEL:ShlVec:
67 ; DIS-LABEL:00000020 <ShlVec>:
68 ; IASM-LABEL:ShlVec:
69
70 entry:
71 ; ASM-NEXT:.LShlVec$entry:
72 ; IASM-NEXT:.LShlVec$entry:
73
74 %shl = shl <4 x i32> %a, %b
75
76 ; ASM: lsl r0, r0, r1
77 ; ASM: lsl r0, r0, r1
78 ; ASM: lsl r0, r0, r1
79 ; ASM: lsl r0, r0, r1
80 ; DIS: 28: e1a00110
81
82 ret <4 x i32> %shl
83 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698