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

Unified Diff: tests_lit/assembler/arm32/vcvt.s32.f64.ll

Issue 1623433004: Add missing vcvt instructions to integrated ARM assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nit. Created 4 years, 11 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/vcvt.f64.u32.ll ('k') | tests_lit/assembler/arm32/vcvt.u32.f32.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/assembler/arm32/vcvt.s32.f64.ll
diff --git a/tests_lit/assembler/arm32/vcvt.s32.f32.ll b/tests_lit/assembler/arm32/vcvt.s32.f64.ll
similarity index 66%
copy from tests_lit/assembler/arm32/vcvt.s32.f32.ll
copy to tests_lit/assembler/arm32/vcvt.s32.f64.ll
index 94e99df7f3e78e92c2e926738977a79d34b9aa09..5b60bce50715ccc87cc504ef482f765defd22482 100644
--- a/tests_lit/assembler/arm32/vcvt.s32.f32.ll
+++ b/tests_lit/assembler/arm32/vcvt.s32.f64.ll
@@ -1,4 +1,4 @@
-; Show that we know how to translate converting float to signed integer.
+; Show that we know how to translate converting double to signed integer.
; REQUIRES: allow_dump
@@ -19,19 +19,19 @@
; RUN: %p2i --filetype=iasm -i %s --target=arm32 --assemble --disassemble \
; RUN: --args -Om1 --reg-use=s20 | FileCheck %s --check-prefix=DIS
-define internal i32 @FloatToSignedInt() {
-; ASM-LABEL: FloatToSignedInt:
-; DIS-LABEL: 00000000 <FloatToSignedInt>:
-; IASM-LABEL: FloatToSignedInt:
+define internal i32 @DoubleToSignedInt() {
+; ASM-LABEL: DoubleToSignedInt:
+; DIS-LABEL: 00000000 <DoubleToSignedInt>:
+; IASM-LABEL: DoubleToSignedInt:
entry:
-; ASM-NEXT: .LFloatToSignedInt$entry:
-; IASM-NEXT: .LFloatToSignedInt$entry:
+; ASM: .LDoubleToSignedInt$entry:
+; IASM: .LDoubleToSignedInt$entry:
- %v = fptosi float 0.0 to i32
+ %v = fptosi double 0.0 to i32
-; ASM: vcvt.s32.f32 s20, s20
-; DIS: 14: eebdaaca
+; ASM: vcvt.s32.f64 s20, d0
+; DIS: c: eebdabc0
; IASM-NOT: vcvt
ret i32 %v
« no previous file with comments | « tests_lit/assembler/arm32/vcvt.f64.u32.ll ('k') | tests_lit/assembler/arm32/vcvt.u32.f32.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698