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

Unified Diff: tests_lit/assembler/arm32/insert-extract.ll

Issue 1679023008: Add insert/extract element 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceInstARM32.cpp ('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/insert-extract.ll
diff --git a/tests_lit/assembler/arm32/insert-extract.ll b/tests_lit/assembler/arm32/insert-extract.ll
index c96c995c327d7a906aed3b1907dbd4d4780f7b71..5bbb18b455021dba14c478e8305586f6fa5a124f 100644
--- a/tests_lit/assembler/arm32/insert-extract.ll
+++ b/tests_lit/assembler/arm32/insert-extract.ll
@@ -27,9 +27,9 @@ define internal i32 @extract1_v4i32(<4 x i32> %src) {
%1 = extractelement <4 x i32> %src, i32 1
-; ASM: vmov.32 r0, d0[1]
+; ASM: vmov.32 r0, d0[1]
; DIS: 10: ee300b10
-
+; IASM-NOT: vmov.32 r0, d0[1]
ret i32 %1
}
@@ -40,8 +40,9 @@ define internal i32 @extract2_v4i32(<4 x i32> %src) {
%1 = extractelement <4 x i32> %src, i32 2
-; ASM: vmov.32 r0, d1[0]
+; ASM: vmov.32 r0, d1[0]
; DIS: 40: ee110b10
+; IASM-NOT: vmov.32 r0, d1[0]
ret i32 %1
}
@@ -53,8 +54,10 @@ define internal i32 @extract3_v8i16(<8 x i16> %src) {
%1 = extractelement <8 x i16> %src, i32 3
-; ASM: vmov.s16 r0, d0[3]
+; ASM: vmov.s16 r0, d0[3]
; DIS: 70: ee300b70
+; IASM-NOT: vmov.s16 r0, d0[3]
+
%2 = sext i16 %1 to i32
ret i32 %2
}
@@ -66,8 +69,9 @@ define internal i32 @extract4_v8i16(<8 x i16> %src) {
%1 = extractelement <8 x i16> %src, i32 4
-; ASM: vmov.s16 r0, d1[0]
+; ASM: vmov.s16 r0, d1[0]
; DIS: a0: ee110b30
+; IASM-NOT: vmov.s16 r0, d1[0]
%2 = sext i16 %1 to i32
ret i32 %2
@@ -80,8 +84,9 @@ define internal i32 @extract7_v4i8(<16 x i8> %src) {
%1 = extractelement <16 x i8> %src, i32 7
-; ASM: vmov.s8 r0, d0[7]
+; ASM: vmov.s8 r0, d0[7]
; DIS: d0: ee700b70
+; IASM-NOT: vmov.s8 r0, d0[7]
%2 = sext i8 %1 to i32
ret i32 %2
@@ -94,8 +99,9 @@ define internal i32 @extract8_v16i8(<16 x i8> %src) {
%1 = extractelement <16 x i8> %src, i32 8
-; ASM: vmov.s8 r0, d1[0]
+; ASM: vmov.s8 r0, d1[0]
; DIS: 100: ee510b10
+; IASM-NOT: vmov.s8 r0, d1[0]
%2 = sext i8 %1 to i32
ret i32 %2
@@ -108,8 +114,9 @@ define internal float @extract1_v4float(<4 x float> %src) {
%1 = extractelement <4 x float> %src, i32 1
-; ASM: vmov.f32 s0, s1
+; ASM: vmov.f32 s0, s1
; DIS: 130: eeb00a60
+; IASM-NOT: vmov.f32 s0, s1
ret float %1
}
@@ -121,8 +128,9 @@ define internal float @extract2_v4float(<4 x float> %src) {
%1 = extractelement <4 x float> %src, i32 2
-; ASM: vmov.f32 s0, s2
+; ASM: vmov.f32 s0, s2
; DIS: 160: eeb00a41
+; IASM-NOT: vmov.f32 s0, s2
ret float %1
}
@@ -134,8 +142,9 @@ define internal <4 x i32> @insert1_v4i32(<4 x i32> %src, i32 %s) {
%1 = insertelement <4 x i32> %src, i32 %s, i32 1
-; ASM: vmov.32 d0[1], r0
+; ASM: vmov.32 d0[1], r0
; DIS: 198: ee200b10
+; IASM-NOT: vmov.32 d0[1], r0
ret <4 x i32> %1
}
@@ -147,8 +156,9 @@ define internal <4 x i32> @insert2_v4i32(<4 x i32> %src, i32 %s) {
%1 = insertelement <4 x i32> %src, i32 %s, i32 2
-; ASM: vmov.32 d1[0], r0
+; ASM: vmov.32 d1[0], r0
; DIS: 1c8: ee010b10
+; IASM-NOT: vmov.32 d1[0], r0
ret <4 x i32> %1
}
@@ -161,8 +171,10 @@ define internal <8 x i16> @insert3_v8i16(<8 x i16> %src, i32 %s) {
%s2 = trunc i32 %s to i16
%1 = insertelement <8 x i16> %src, i16 %s2, i32 3
-; ASM: vmov.16 d0[3], r0
+; ASM: vmov.16 d0[3], r0
; DIS: 200: ee200b70
+; IASM-NOT: vmov.16 d0[3], r0
+
ret <8 x i16> %1
}
@@ -174,8 +186,10 @@ define internal <8 x i16> @insert4_v8i16(<8 x i16> %src, i32 %s) {
%s2 = trunc i32 %s to i16
%1 = insertelement <8 x i16> %src, i16 %s2, i32 4
-; ASM: vmov.16 d1[0], r0
+; ASM: vmov.16 d1[0], r0
; DIS: 240: ee010b30
+; IASM-NOT: vmov.16 d1[0], r0
+
ret <8 x i16> %1
}
@@ -187,8 +201,9 @@ define internal <16 x i8> @insert7_v4i8(<16 x i8> %src, i32 %s) {
%s2 = trunc i32 %s to i8
%1 = insertelement <16 x i8> %src, i8 %s2, i32 7
-; ASM: vmov.8 d0[7], r0
+; ASM: vmov.8 d0[7], r0
; DIS: 280: ee600b70
+; IASM-NOT: vmov.8 d0[7], r0
ret <16 x i8> %1
}
@@ -201,8 +216,9 @@ define internal <16 x i8> @insert8_v16i8(<16 x i8> %src, i32 %s) {
%s2 = trunc i32 %s to i8
%1 = insertelement <16 x i8> %src, i8 %s2, i32 8
-; ASM: vmov.8 d1[0], r0
+; ASM: vmov.8 d1[0], r0
; DIS: 2c0: ee410b10
+; IASM-NOT: vmov.8 d1[0], r0
ret <16 x i8> %1
}
@@ -214,8 +230,9 @@ define internal <4 x float> @insert1_v4float(<4 x float> %src, float %s) {
%1 = insertelement <4 x float> %src, float %s, i32 1
-; ASM: vmov.f32 s1, s4
+; ASM: vmov.f32 s1, s4
; DIS: 2f8: eef00a42
+; IASM-NOT: vmov.f32 s1, s4
ret <4 x float> %1
}
@@ -227,8 +244,9 @@ define internal <4 x float> @insert2_v4float(<4 x float> %src, float %s) {
%1 = insertelement <4 x float> %src, float %s, i32 2
-; ASM: vmov.f32 s2, s4
+; ASM: vmov.f32 s2, s4
; DIS: 328: eeb01a42
+; IASM-NOT: vmov.f32 s2, s4
ret <4 x float> %1
}
« no previous file with comments | « src/IceInstARM32.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698