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

Unified Diff: tests_lit/assembler/arm32/vcvt.u32.f32.ll

Issue 1878943009: Subzero. ARM32. Vector casts. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Adds vcvt assembler lit tests. Created 4 years, 8 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
Index: tests_lit/assembler/arm32/vcvt.u32.f32.ll
diff --git a/tests_lit/assembler/arm32/vcvt.u32.f32.ll b/tests_lit/assembler/arm32/vcvt.u32.f32.ll
index 9d9eceb2f040bc11cb1d9ec034d13af6fcb9595e..6b087655d57d35cab5627d1b667a16d95c107f77 100644
--- a/tests_lit/assembler/arm32/vcvt.u32.f32.ll
+++ b/tests_lit/assembler/arm32/vcvt.u32.f32.ll
@@ -35,3 +35,17 @@ entry:
ret i32 %v
}
+
+define internal <4 x i32> @FloatVecToUIntVec(<4 x float> %a) {
+; ASM-LABEL: FloatVecToUIntVec:
+; DIS-LABEL: 00000030 <FloatVecToUIntVec>:
+; IASM-LABEL: FloatVecToUIntVec:
+
+ %v = fptoui <4 x float> %a to <4 x i32>
+
+; ASM: vcvt.u32.f32 q0, q0
+; DIS: 40: f3bb07c0
+; IASM-NOT: vcvt.u32.f32
+
+ ret <4 x i32> %v
+}

Powered by Google App Engine
This is Rietveld 408576698