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

Unified Diff: tests_lit/llvm2ice_tests/vector-cast.ll

Issue 914263005: Subzero: switch from llvm-objdump to objdump for lit tests (for LLVM merge) (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: fix some line wrap Created 5 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/llvm2ice_tests/vector-bitcast.ll ('k') | tests_lit/llvm2ice_tests/vector-fcmp.ll » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests_lit/llvm2ice_tests/vector-cast.ll
diff --git a/tests_lit/llvm2ice_tests/vector-cast.ll b/tests_lit/llvm2ice_tests/vector-cast.ll
index 30d35780ec0776172eba6368786a9e8f5a4d7ea3..d46e5b82c146dc1c6eef70751bf5e6d61252c140 100644
--- a/tests_lit/llvm2ice_tests/vector-cast.ll
+++ b/tests_lit/llvm2ice_tests/vector-cast.ll
@@ -1,12 +1,10 @@
; This file tests casting / conversion operations that apply to vector types.
; bitcast operations are in vector-bitcast.ll.
-; RUN: %p2i -i %s --args -O2 --verbose none \
-; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \
-; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s
-; RUN: %p2i -i %s --args -Om1 --verbose none \
-; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj \
-; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s
+; RUN: %p2i -i %s --assemble --disassemble --args -O2 --verbose none \
+; RUN: | FileCheck %s
+; RUN: %p2i -i %s --assemble --disassemble --args -Om1 --verbose none \
+; RUN: | FileCheck %s
; sext operations
@@ -15,7 +13,7 @@ entry:
%res = sext <16 x i1> %arg to <16 x i8>
ret <16 x i8> %res
-; CHECK-LABEL: test_sext_v16i1_to_v16i8:
+; CHECK-LABEL: test_sext_v16i1_to_v16i8
; CHECK: pxor
; CHECK: pcmpeqb
; CHECK: psubb
@@ -29,9 +27,9 @@ entry:
%res = sext <8 x i1> %arg to <8 x i16>
ret <8 x i16> %res
-; CHECK-LABEL: test_sext_v8i1_to_v8i16:
-; CHECK: psllw {{.*}}, 15
-; CHECK: psraw {{.*}}, 15
+; CHECK-LABEL: test_sext_v8i1_to_v8i16
+; CHECK: psllw {{.*}},0xf
+; CHECK: psraw {{.*}},0xf
}
define <4 x i32> @test_sext_v4i1_to_v4i32(<4 x i1> %arg) {
@@ -39,9 +37,9 @@ entry:
%res = sext <4 x i1> %arg to <4 x i32>
ret <4 x i32> %res
-; CHECK-LABEL: test_sext_v4i1_to_v4i32:
-; CHECK: pslld {{.*}}, 31
-; CHECK: psrad {{.*}}, 31
+; CHECK-LABEL: test_sext_v4i1_to_v4i32
+; CHECK: pslld {{.*}},0x1f
+; CHECK: psrad {{.*}},0x1f
}
; zext operations
@@ -51,7 +49,7 @@ entry:
%res = zext <16 x i1> %arg to <16 x i8>
ret <16 x i8> %res
-; CHECK-LABEL: test_zext_v16i1_to_v16i8:
+; CHECK-LABEL: test_zext_v16i1_to_v16i8
; CHECK: pxor
; CHECK: pcmpeqb
; CHECK: psubb
@@ -63,7 +61,7 @@ entry:
%res = zext <8 x i1> %arg to <8 x i16>
ret <8 x i16> %res
-; CHECK-LABEL: test_zext_v8i1_to_v8i16:
+; CHECK-LABEL: test_zext_v8i1_to_v8i16
; CHECK: pxor
; CHECK: pcmpeqw
; CHECK: psubw
@@ -75,7 +73,7 @@ entry:
%res = zext <4 x i1> %arg to <4 x i32>
ret <4 x i32> %res
-; CHECK-LABEL: test_zext_v4i1_to_v4i32:
+; CHECK-LABEL: test_zext_v4i1_to_v4i32
; CHECK: pxor
; CHECK: pcmpeqd
; CHECK: psubd
@@ -89,7 +87,7 @@ entry:
%res = trunc <16 x i8> %arg to <16 x i1>
ret <16 x i1> %res
-; CHECK-LABEL: test_trunc_v16i8_to_v16i1:
+; CHECK-LABEL: test_trunc_v16i8_to_v16i1
; CHECK: pxor
; CHECK: pcmpeqb
; CHECK: psubb
@@ -101,7 +99,7 @@ entry:
%res = trunc <8 x i16> %arg to <8 x i1>
ret <8 x i1> %res
-; CHECK-LABEL: test_trunc_v8i16_to_v8i1:
+; CHECK-LABEL: test_trunc_v8i16_to_v8i1
; CHECK: pxor
; CHECK: pcmpeqw
; CHECK: psubw
@@ -113,7 +111,7 @@ entry:
%res = trunc <4 x i32> %arg to <4 x i1>
ret <4 x i1> %res
-; CHECK-LABEL: test_trunc_v4i32_to_v4i1:
+; CHECK-LABEL: test_trunc_v4i32_to_v4i1
; CHECK: pxor
; CHECK: pcmpeqd
; CHECK: psubd
@@ -127,7 +125,7 @@ entry:
%res = fptosi <4 x float> %arg to <4 x i32>
ret <4 x i32> %res
-; CHECK-LABEL: test_fptosi_v4f32_to_v4i32:
+; CHECK-LABEL: test_fptosi_v4f32_to_v4i32
; CHECK: cvttps2dq
}
@@ -136,8 +134,8 @@ entry:
%res = fptoui <4 x float> %arg to <4 x i32>
ret <4 x i32> %res
-; CHECK-LABEL: test_fptoui_v4f32_to_v4i32:
-; CHECK: call Sz_fptoui_v4f32
+; CHECK-LABEL: test_fptoui_v4f32_to_v4i32
+; CHECK: call {{.*}} R_{{.*}} Sz_fptoui_v4f32
}
; [su]itofp operations
@@ -147,7 +145,7 @@ entry:
%res = sitofp <4 x i32> %arg to <4 x float>
ret <4 x float> %res
-; CHECK-LABEL: test_sitofp_v4i32_to_v4f32:
+; CHECK-LABEL: test_sitofp_v4i32_to_v4f32
; CHECK: cvtdq2ps
}
@@ -156,6 +154,6 @@ entry:
%res = uitofp <4 x i32> %arg to <4 x float>
ret <4 x float> %res
-; CHECK-LABEL: test_uitofp_v4i32_to_v4f32:
-; CHECK: call Sz_uitofp_v4i32
+; CHECK-LABEL: test_uitofp_v4i32_to_v4f32
+; CHECK: call {{.*}} R_{{.*}} Sz_uitofp_v4i32
}
« no previous file with comments | « tests_lit/llvm2ice_tests/vector-bitcast.ll ('k') | tests_lit/llvm2ice_tests/vector-fcmp.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698