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

Unified Diff: tests_lit/assembler/arm32/vabs.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: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests_lit/assembler/arm32/udiv-vec.ll ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/assembler/arm32/vabs.ll
diff --git a/tests_lit/assembler/arm32/vabs.ll b/tests_lit/assembler/arm32/vabs.ll
index 695e3567745ec0286ebe09f2bedb7431bdc56634..f773673f7fc382e463aeaa212889adf52298b56b 100644
--- a/tests_lit/assembler/arm32/vabs.ll
+++ b/tests_lit/assembler/arm32/vabs.ll
@@ -1,4 +1,4 @@
-; Show that we translate intrinsics for fabs on float and double.
+; Show that we translate intrinsics for fabs on float, double and float vectors.
; REQUIRES: allow_dump
@@ -26,6 +26,7 @@
declare float @llvm.fabs.f32(float)
declare double @llvm.fabs.f64(double)
+declare <4 x float> @llvm.fabs.v4f32(<4 x float>)
define internal float @test_fabs_float(float %x) {
; ASM-LABEL: test_fabs_float:
@@ -56,3 +57,18 @@ entry:
ret double %r
}
+
+define internal <4 x float> @test_fabs_4float(<4 x float> %x) {
+; ASM-LABEL: test_fabs_4float:
+; DIS-LABEL: 00000050 <test_fabs_4float>:
+; IASM-LABEL: test_fabs_4float:
+
+entry:
+ %r = call <4 x float> @llvm.fabs.v4f32(<4 x float> %x)
+
+; ASM: vabs.f32 q0, q0
+; DIS: 60: f3b90740
+; IASM-NOT: vabs.f32
+
+ ret <4 x float> %r
+}
« no previous file with comments | « tests_lit/assembler/arm32/udiv-vec.ll ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698