From e94a85533f38b8e66304a9441e051e4b65aace2d Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Sun, 25 Mar 2018 14:24:32 +0000 Subject: [PATCH] [InstCombine] adjust test comments; NFC llvm-svn: 328450 --- llvm/test/Transforms/InstCombine/cast-int-icmp-eq-0.ll | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/llvm/test/Transforms/InstCombine/cast-int-icmp-eq-0.ll b/llvm/test/Transforms/InstCombine/cast-int-icmp-eq-0.ll index 4103585..573c0a1 100644 --- a/llvm/test/Transforms/InstCombine/cast-int-icmp-eq-0.ll +++ b/llvm/test/Transforms/InstCombine/cast-int-icmp-eq-0.ll @@ -1,18 +1,13 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py ; RUN: opt < %s -instcombine -S | FileCheck %s -; target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" - ; This is https://bugs.llvm.org/show_bug.cgi?id=36682 -; FIXME: *all* of these are true tests. ; In *all* of these, sitofp and bitcast should be instcombine'd out. - -; The "sle 0" is canonicalized to "slt 1", so we don't test "sle 0" case. -; The "sge 0" is canonicalized to "sgt -1", so we don't test "sge 0" case. - -; The "sge 1" is canonicalized to "sgt 0", so we don't test "sge 1" case. -; The "sle -1" is canonicalized to "slt 0", so we don't test "sle -1" case. +; "sle 0" is canonicalized to "slt 1", so we don't test "sle 0" case. +; "sge 0" is canonicalized to "sgt -1", so we don't test "sge 0" case. +; "sge 1" is canonicalized to "sgt 0", so we don't test "sge 1" case. +; "sle -1" is canonicalized to "slt 0", so we don't test "sle -1" case. define i1 @i32_cast_cmp_eq_int_0_sitofp_float(i32 %i) { ; CHECK-LABEL: @i32_cast_cmp_eq_int_0_sitofp_float( @@ -621,6 +616,8 @@ define <3 x i1> @i32_cast_cmp_ne_int_0_sitofp_double_vec(<3 x i32> %i) { ret <3 x i1> %cmp } +; FIXME: Vector zero constant with undef is not matched. + define <3 x i1> @i32_cast_cmp_eq_int_0_sitofp_float_vec_undef(<3 x i32> %i) { ; CHECK-LABEL: @i32_cast_cmp_eq_int_0_sitofp_float_vec_undef( ; CHECK-NEXT: [[F:%.*]] = sitofp <3 x i32> [[I:%.*]] to <3 x float> -- 2.7.4