| 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..457d31043a07af3a380fdc3c9460312b24ef4d6e 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,7 +27,7 @@ entry:
|
| %res = sext <8 x i1> %arg to <8 x i16>
|
| ret <8 x i16> %res
|
|
|
| -; CHECK-LABEL: test_sext_v8i1_to_v8i16:
|
| +; CHECK-LABEL: test_sext_v8i1_to_v8i16
|
| ; CHECK: psllw {{.*}}, 15
|
| ; CHECK: psraw {{.*}}, 15
|
| }
|
| @@ -39,7 +37,7 @@ entry:
|
| %res = sext <4 x i1> %arg to <4 x i32>
|
| ret <4 x i32> %res
|
|
|
| -; CHECK-LABEL: test_sext_v4i1_to_v4i32:
|
| +; CHECK-LABEL: test_sext_v4i1_to_v4i32
|
| ; CHECK: pslld {{.*}}, 31
|
| ; CHECK: psrad {{.*}}, 31
|
| }
|
| @@ -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,9 @@ 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
|
| +; CHECK-NEXT: R_{{.*}} Sz_fptoui_v4f32
|
| }
|
|
|
| ; [su]itofp operations
|
| @@ -147,7 +146,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 +155,7 @@ 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
|
| +; CHECK-NEXT: R_{{.*}} Sz_uitofp_v4i32
|
| }
|
|
|