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

Side by Side Diff: tests_lit/assembler/arm32/vabs-vec.ll

Issue 1697263007: Add fabs(<4 x float>) to the integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. 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
« no previous file with comments | « src/IceTargetLoweringARM32.cpp ('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 the "vmrs APSR_nzcv, FPSCR" form of the VMRS instruction. 1 ; Show that we know how to translate the fabs intrinsic on float vectors.
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 -Om1 \ 6 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --args -Om1 \
7 ; RUN: -reg-use q5 \
7 ; RUN: | FileCheck %s --check-prefix=ASM 8 ; RUN: | FileCheck %s --check-prefix=ASM
8 9
9 ; Show bytes in assembled standalone code. 10 ; Show bytes in assembled standalone code.
10 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \ 11 ; RUN: %p2i --filetype=asm -i %s --target=arm32 --assemble --disassemble \
11 ; RUN: --args -Om1 \ 12 ; RUN: --args -Om1 \
13 ; RUN: -reg-use q5 \
12 ; RUN: | FileCheck %s --check-prefix=DIS 14 ; RUN: | FileCheck %s --check-prefix=DIS
13 15
14 ; Compile using integrated assembler. 16 ; Compile using integrated assembler.
15 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 \ 17 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --args -Om1 \
18 ; RUN: -reg-use q5 \
16 ; RUN: | FileCheck %s --check-prefix=IASM 19 ; RUN: | FileCheck %s --check-prefix=IASM
17 20
18 ; Show bytes in assembled integrated code. 21 ; Show bytes in assembled integrated code.
19 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \ 22 ; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
20 ; RUN: --args -Om1 \ 23 ; RUN: --args -Om1 \
24 ; RUN: -reg-use q5 \
21 ; RUN: | FileCheck %s --check-prefix=DIS 25 ; RUN: | FileCheck %s --check-prefix=DIS
22 26
23 define internal i32 @testVmrsASPR_nzcv() { 27 declare <4 x float> @llvm.fabs.v4f32(<4 x float>)
24 ; ASM-LABEL: testVmrsASPR_nzcv:
25 ; DIS-LABEL: 00000000 <testVmrsASPR_nzcv>:
26 28
27 entry: 29 define internal <4 x float> @_Z6myFabsDv4_f(<4 x float> %a) {
28 ; ASM: .LtestVmrsASPR_nzcv$entry: 30 ; ASM-LABEL: _Z6myFabsDv4_f:
31 ; DIS-LABEL: {{.+}} <_Z6myFabsDv4_f>:
32 ; IASM-LABEL: _Z6myFabsDv4_f:
29 33
30 %test = fcmp olt float 0.0, 0.0 34 %x = call <4 x float> @llvm.fabs.v4f32(<4 x float> %a)
31 35
32 ; ASM: vmrs APSR_nzcv, FPSCR 36 ; ASM: vabs.f32 q5, q5
33 ; DIS: 14: eef1fa10 37 ; DIS: {{.+}}: f3b9a74a
34 ; IASM-NOT: vmrs 38 ; IASM-NOT: vabs.f32
35 39
36 %result = zext i1 %test to i32 40 ret <4 x float> %x
37 ret i32 %result
38 } 41 }
OLDNEW
« no previous file with comments | « src/IceTargetLoweringARM32.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698