Index: tests_lit/llvm2ice_tests/undef.ll |
diff --git a/tests_lit/llvm2ice_tests/undef.ll b/tests_lit/llvm2ice_tests/undef.ll |
index b98946ccf4e0d34085dc16c0b7ad3538de640385..6b66e0a4a704447de8c086b2f1755deb2ecb1d86 100644 |
--- a/tests_lit/llvm2ice_tests/undef.ll |
+++ b/tests_lit/llvm2ice_tests/undef.ll |
@@ -1,17 +1,17 @@ |
; This test checks that undef values are represented as zero. |
-; RUN: %llvm2ice --verbose none %s | FileCheck %s |
-; RUN: %llvm2ice -O2 --verbose none %s | FileCheck %s |
-; RUN: %llvm2ice -mattr=sse4.1 --verbose none %s | FileCheck %s |
-; RUN: %llvm2ice -mattr=sse4.1 -O2 --verbose none %s | FileCheck %s |
; RUN: %llvm2ice -O2 --verbose none %s \ |
-; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj |
+; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ |
+; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
; RUN: %llvm2ice -Om1 --verbose none %s \ |
-; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj |
-; RUN: %llvm2ice -mattr=sse4.1 -O2 --verbose none %s \ |
-; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj |
-; RUN: %llvm2ice -mattr=sse4.1 -Om1 --verbose none %s \ |
-; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj |
+; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ |
+; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
+; RUN: %llvm2ice -O2 -mattr=sse4.1 --verbose none %s \ |
+; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ |
+; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
+; RUN: %llvm2ice -Om1 -mattr=sse4.1 --verbose none %s \ |
+; RUN: | llvm-mc -triple=i686-none-nacl -x86-asm-syntax=intel -filetype=obj \ |
+; RUN: | llvm-objdump -d --symbolize -x86-asm-syntax=intel - | FileCheck %s |
; RUN: %llvm2ice --verbose none %s | FileCheck --check-prefix=ERRORS %s |
; RUN: %llvm2iceinsts %s | %szdiff %s | FileCheck --check-prefix=DUMP %s |
; RUN: %llvm2iceinsts --pnacl %s | %szdiff %s \ |
@@ -20,14 +20,14 @@ |
define i32 @undef_i32() { |
entry: |
ret i32 undef |
-; CHECK-LABEL: undef_i32: |
+; CHECK-LABEL: undef_i32 |
; CHECK: mov eax, 0 |
} |
define i64 @undef_i64() { |
entry: |
ret i64 undef |
-; CHECK-LABEL: undef_i64: |
+; CHECK-LABEL: undef_i64 |
; CHECK-DAG: mov eax, 0 |
; CHECK-DAG: mov edx, 0 |
; CHECK: ret |
@@ -36,56 +36,56 @@ entry: |
define float @undef_float() { |
entry: |
ret float undef |
-; CHECK-LABEL: undef_float: |
-; CHECK: [L$float$ |
+; CHECK-LABEL: undef_float |
+; CHECK: fld dword ptr [0] |
} |
define <4 x i1> @undef_v4i1() { |
entry: |
ret <4 x i1> undef |
-; CHECK-LABEL: undef_v4i1: |
+; CHECK-LABEL: undef_v4i1 |
; CHECK: pxor |
} |
define <8 x i1> @undef_v8i1() { |
entry: |
ret <8 x i1> undef |
-; CHECK-LABEL: undef_v8i1: |
+; CHECK-LABEL: undef_v8i1 |
; CHECK: pxor |
} |
define <16 x i1> @undef_v16i1() { |
entry: |
ret <16 x i1> undef |
-; CHECK-LABEL: undef_v16i1: |
+; CHECK-LABEL: undef_v16i1 |
; CHECK: pxor |
} |
define <16 x i8> @undef_v16i8() { |
entry: |
ret <16 x i8> undef |
-; CHECK-LABEL: undef_v16i8: |
+; CHECK-LABEL: undef_v16i8 |
; CHECK: pxor |
} |
define <8 x i16> @undef_v8i16() { |
entry: |
ret <8 x i16> undef |
-; CHECK-LABEL: undef_v8i16: |
+; CHECK-LABEL: undef_v8i16 |
; CHECK: pxor |
} |
define <4 x i32> @undef_v4i32() { |
entry: |
ret <4 x i32> undef |
-; CHECK-LABEL: undef_v4i32: |
+; CHECK-LABEL: undef_v4i32 |
; CHECK: pxor |
} |
define <4 x float> @undef_v4f32() { |
entry: |
ret <4 x float> undef |
-; CHECK-LABEL: undef_v4f32: |
+; CHECK-LABEL: undef_v4f32 |
; CHECK: pxor |
} |
@@ -93,7 +93,7 @@ define <4 x i32> @vector_arith(<4 x i32> %arg) { |
entry: |
%val = add <4 x i32> undef, %arg |
ret <4 x i32> %val |
-; CHECK-LABEL: vector_arith: |
+; CHECK-LABEL: vector_arith |
; CHECK: pxor |
} |
@@ -101,7 +101,7 @@ define <4 x float> @vector_bitcast() { |
entry: |
%val = bitcast <4 x i32> undef to <4 x float> |
ret <4 x float> %val |
-; CHECK-LABEL: vector_bitcast: |
+; CHECK-LABEL: vector_bitcast |
; CHECK: pxor |
} |
@@ -109,7 +109,7 @@ define <4 x i32> @vector_sext() { |
entry: |
%val = sext <4 x i1> undef to <4 x i32> |
ret <4 x i32> %val |
-; CHECK-LABEL: vector_sext: |
+; CHECK-LABEL: vector_sext |
; CHECK: pxor |
} |
@@ -117,7 +117,7 @@ define <4 x i32> @vector_zext() { |
entry: |
%val = zext <4 x i1> undef to <4 x i32> |
ret <4 x i32> %val |
-; CHECK-LABEL: vector_zext: |
+; CHECK-LABEL: vector_zext |
; CHECK: pxor |
} |
@@ -125,7 +125,7 @@ define <4 x i1> @vector_trunc() { |
entry: |
%val = trunc <4 x i32> undef to <4 x i1> |
ret <4 x i1> %val |
-; CHECK-LABEL: vector_trunc: |
+; CHECK-LABEL: vector_trunc |
; CHECK: pxor |
} |
@@ -133,7 +133,7 @@ define <4 x i1> @vector_icmp(<4 x i32> %arg) { |
entry: |
%val = icmp eq <4 x i32> undef, %arg |
ret <4 x i1> %val |
-; CHECK-LABEL: vector_icmp: |
+; CHECK-LABEL: vector_icmp |
; CHECK: pxor |
} |
@@ -141,7 +141,7 @@ define <4 x i1> @vector_fcmp(<4 x float> %arg) { |
entry: |
%val = fcmp ueq <4 x float> undef, %arg |
ret <4 x i1> %val |
-; CHECK-LABEL: vector_fcmp: |
+; CHECK-LABEL: vector_fcmp |
; CHECK: pxor |
} |
@@ -149,7 +149,7 @@ define <4 x i32> @vector_fptosi() { |
entry: |
%val = fptosi <4 x float> undef to <4 x i32> |
ret <4 x i32> %val |
-; CHECK-LABEL: vector_fptosi: |
+; CHECK-LABEL: vector_fptosi |
; CHECK: pxor |
} |
@@ -157,7 +157,7 @@ define <4 x i32> @vector_fptoui() { |
entry: |
%val = fptoui <4 x float> undef to <4 x i32> |
ret <4 x i32> %val |
-; CHECK-LABEL: vector_fptoui: |
+; CHECK-LABEL: vector_fptoui |
; CHECK: pxor |
} |
@@ -165,7 +165,7 @@ define <4 x float> @vector_sitofp() { |
entry: |
%val = sitofp <4 x i32> undef to <4 x float> |
ret <4 x float> %val |
-; CHECK-LABEL: vector_sitofp: |
+; CHECK-LABEL: vector_sitofp |
; CHECK: pxor |
} |
@@ -173,7 +173,7 @@ define <4 x float> @vector_uitofp() { |
entry: |
%val = uitofp <4 x i32> undef to <4 x float> |
ret <4 x float> %val |
-; CHECK-LABEL: vector_uitofp: |
+; CHECK-LABEL: vector_uitofp |
; CHECK: pxor |
} |
@@ -181,7 +181,7 @@ define <4 x float> @vector_insertelement_arg1() { |
entry: |
%val = insertelement <4 x float> undef, float 1.0, i32 0 |
ret <4 x float> %val |
-; CHECK-LABEL: vector_insertelement_arg1: |
+; CHECK-LABEL: vector_insertelement_arg1 |
; CHECK: pxor |
} |
@@ -189,15 +189,15 @@ define <4 x float> @vector_insertelement_arg2(<4 x float> %arg) { |
entry: |
%val = insertelement <4 x float> %arg, float undef, i32 0 |
ret <4 x float> %val |
-; CHECK-LABEL: vector_insertelement_arg2: |
-; CHECK: [L$float$ |
+; CHECK-LABEL: vector_insertelement_arg2 |
+; CHECK: movss {{.*}}, dword ptr [0] |
} |
define float @vector_extractelement_v4f32_index_0() { |
entry: |
%val = extractelement <4 x float> undef, i32 0 |
ret float %val |
-; CHECK-LABEL: vector_extractelement_v4f32_index_0: |
+; CHECK-LABEL: vector_extractelement_v4f32_index_0 |
; CHECK: pxor |
} |
@@ -205,7 +205,7 @@ define float @vector_extractelement_v4f32_index_1() { |
entry: |
%val = extractelement <4 x float> undef, i32 1 |
ret float %val |
-; CHECK-LABEL: vector_extractelement_v4f32_index_1: |
+; CHECK-LABEL: vector_extractelement_v4f32_index_1 |
; CHECK: pxor |
} |
@@ -214,7 +214,7 @@ entry: |
%val.trunc = extractelement <16 x i1> undef, i32 7 |
%val = sext i1 %val.trunc to i32 |
ret i32 %val |
-; CHECK-LABEL: vector_extractelement_v16i1_index_7: |
+; CHECK-LABEL: vector_extractelement_v16i1_index_7 |
; CHECK: pxor |
} |
@@ -222,7 +222,7 @@ define <4 x i32> @vector_select_v4i32_cond(<4 x i32> %a, <4 x i32> %b) { |
entry: |
%val = select <4 x i1> undef, <4 x i32> %a, <4 x i32> %b |
ret <4 x i32> %val |
-; CHECK-LABEL: vector_select_v4i32_cond: |
+; CHECK-LABEL: vector_select_v4i32_cond |
; CHECK: pxor |
} |
@@ -230,7 +230,7 @@ define <4 x i32> @vector_select_v4i32_arg1(<4 x i1> %cond, <4 x i32> %b) { |
entry: |
%val = select <4 x i1> %cond, <4 x i32> undef, <4 x i32> %b |
ret <4 x i32> %val |
-; CHECK-LABEL: vector_select_v4i32_arg1: |
+; CHECK-LABEL: vector_select_v4i32_arg1 |
; CHECK: pxor |
} |
@@ -238,7 +238,7 @@ define <4 x i32> @vector_select_v4i32_arg2(<4 x i1> %cond, <4 x i32> %a) { |
entry: |
%val = select <4 x i1> %cond, <4 x i32> %a, <4 x i32> undef |
ret <4 x i32> %val |
-; CHECK-LABEL: vector_select_v4i32_arg2: |
+; CHECK-LABEL: vector_select_v4i32_arg2 |
; CHECK: pxor |
} |
@@ -246,7 +246,7 @@ define <4 x i1> @vector_select_v4i1_cond(<4 x i1> %a, <4 x i1> %b) { |
entry: |
%val = select <4 x i1> undef, <4 x i1> %a, <4 x i1> %b |
ret <4 x i1> %val |
-; CHECK-LABEL: vector_select_v4i1_cond: |
+; CHECK-LABEL: vector_select_v4i1_cond |
; CHECK: pxor |
} |
@@ -254,7 +254,7 @@ define <4 x i1> @vector_select_v4i1_arg1(<4 x i1> %cond, <4 x i1> %b) { |
entry: |
%val = select <4 x i1> %cond, <4 x i1> undef, <4 x i1> %b |
ret <4 x i1> %val |
-; CHECK-LABEL: vector_select_v4i1_arg1: |
+; CHECK-LABEL: vector_select_v4i1_arg1 |
; CHECK: pxor |
} |
@@ -262,7 +262,7 @@ define <4 x i1> @vector_select_v4i1_arg2(<4 x i1> %cond, <4 x i1> %a) { |
entry: |
%val = select <4 x i1> %cond, <4 x i1> %a, <4 x i1> undef |
ret <4 x i1> %val |
-; CHECK-LABEL: vector_select_v4i1_arg2: |
+; CHECK-LABEL: vector_select_v4i1_arg2 |
; CHECK: pxor |
} |
@@ -270,7 +270,7 @@ define <4 x float> @vector_select_v4f32_cond(<4 x float> %a, <4 x float> %b) { |
entry: |
%val = select <4 x i1> undef, <4 x float> %a, <4 x float> %b |
ret <4 x float> %val |
-; CHECK-LABEL: vector_select_v4f32_cond: |
+; CHECK-LABEL: vector_select_v4f32_cond |
; CHECK: pxor |
} |
@@ -278,7 +278,7 @@ define <4 x float> @vector_select_v4f32_arg1(<4 x i1> %cond, <4 x float> %b) { |
entry: |
%val = select <4 x i1> %cond, <4 x float> undef, <4 x float> %b |
ret <4 x float> %val |
-; CHECK-LABEL: vector_select_v4f32_arg1: |
+; CHECK-LABEL: vector_select_v4f32_arg1 |
; CHECK: pxor |
} |
@@ -286,7 +286,7 @@ define <4 x float> @vector_select_v4f32_arg2(<4 x i1> %cond, <4 x float> %a) { |
entry: |
%val = select <4 x i1> %cond, <4 x float> %a, <4 x float> undef |
ret <4 x float> %val |
-; CHECK-LABEL: vector_select_v4f32_arg2: |
+; CHECK-LABEL: vector_select_v4f32_arg2 |
; CHECK: pxor |
} |