[llvm] 2118623 - [Test][SCCP] Update autogenerated test before precommit

Anton Afanasyev via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 8 06:00:25 PST 2021


Author: Anton Afanasyev
Date: 2021-11-08T16:59:38+03:00
New Revision: 2118623330b270e4c0ef63576168a9b26e269bb1

URL: https://github.com/llvm/llvm-project/commit/2118623330b270e4c0ef63576168a9b26e269bb1
DIFF: https://github.com/llvm/llvm-project/commit/2118623330b270e4c0ef63576168a9b26e269bb1.diff

LOG: [Test][SCCP] Update autogenerated test before precommit

Added: 
    

Modified: 
    llvm/test/Transforms/SCCP/ip-ranges-casts.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/SCCP/ip-ranges-casts.ll b/llvm/test/Transforms/SCCP/ip-ranges-casts.ll
index b39f2985b8a3..76aa415f62bb 100644
--- a/llvm/test/Transforms/SCCP/ip-ranges-casts.ll
+++ b/llvm/test/Transforms/SCCP/ip-ranges-casts.ll
@@ -1,24 +1,26 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
 ; RUN: opt < %s -ipsccp -S | FileCheck %s
 
 ; x = [100, 301)
 define internal i1 @f.trunc(i32 %x) {
-; CHECK-LABEL: define internal i1 @f.trunc(i32 %x) {
-; CHECK-NEXT:    %t.1 = trunc i32 %x to i16
-; CHECK-NEXT:    %c.2 = icmp sgt i16 %t.1, 299
-; CHECK-NEXT:    %c.4 = icmp slt i16 %t.1, 101
-; CHECK-NEXT:    %res.1 = add i1 false, %c.2
-; CHECK-NEXT:    %res.2 = add i1 %res.1, false
-; CHECK-NEXT:    %res.3 = add i1 %res.2, %c.4
-; CHECK-NEXT:    %t.2 = trunc i32 %x to i8
-; CHECK-NEXT:    %c.5 = icmp sgt i8 %t.2, 44
-; CHECK-NEXT:    %c.6 = icmp sgt i8 %t.2, 43
-; CHECK-NEXT:    %c.7 = icmp slt i8 %t.2, 100
-; CHECK-NEXT:    %c.8 = icmp slt i8 %t.2, 101
-; CHECK-NEXT:    %res.4 = add i1 %res.3, %c.5
-; CHECK-NEXT:    %res.5 = add i1 %res.4, %c.6
-; CHECK-NEXT:    %res.6 = add i1 %res.5, %c.7
-; CHECK-NEXT:    %res.7 = add i1 %res.6, %c.8
-; CHECK-NEXT:    ret i1 %res.7
+; CHECK-LABEL: @f.trunc(
+; CHECK-NEXT:    [[T_1:%.*]] = trunc i32 [[X:%.*]] to i16
+; CHECK-NEXT:    [[C_2:%.*]] = icmp sgt i16 [[T_1]], 299
+; CHECK-NEXT:    [[C_4:%.*]] = icmp slt i16 [[T_1]], 101
+; CHECK-NEXT:    [[RES_1:%.*]] = add i1 false, [[C_2]]
+; CHECK-NEXT:    [[RES_2:%.*]] = add i1 [[RES_1]], false
+; CHECK-NEXT:    [[RES_3:%.*]] = add i1 [[RES_2]], [[C_4]]
+; CHECK-NEXT:    [[T_2:%.*]] = trunc i32 [[X]] to i8
+; CHECK-NEXT:    [[C_5:%.*]] = icmp sgt i8 [[T_2]], 44
+; CHECK-NEXT:    [[C_6:%.*]] = icmp sgt i8 [[T_2]], 43
+; CHECK-NEXT:    [[C_7:%.*]] = icmp slt i8 [[T_2]], 100
+; CHECK-NEXT:    [[C_8:%.*]] = icmp slt i8 [[T_2]], 101
+; CHECK-NEXT:    [[RES_4:%.*]] = add i1 [[RES_3]], [[C_5]]
+; CHECK-NEXT:    [[RES_5:%.*]] = add i1 [[RES_4]], [[C_6]]
+; CHECK-NEXT:    [[RES_6:%.*]] = add i1 [[RES_5]], [[C_7]]
+; CHECK-NEXT:    [[RES_7:%.*]] = add i1 [[RES_6]], [[C_8]]
+; CHECK-NEXT:    ret i1 [[RES_7]]
+;
 
   %t.1 = trunc i32 %x to i16
   %c.1 = icmp sgt i16 %t.1, 300
@@ -41,11 +43,11 @@ define internal i1 @f.trunc(i32 %x) {
 }
 
 define i1 @caller1() {
-; CHECK-LABEL:  define i1 @caller1() {
-; CHECK-NEXT:    %call.1 = tail call i1 @f.trunc(i32 100)
-; CHECK-NEXT:    %call.2 = tail call i1 @f.trunc(i32 300)
-; CHECK-NEXT:    %res = and i1 %call.1, %call.2
-; CHECK-NEXT:    ret i1 %res
+; CHECK-LABEL: @caller1(
+; CHECK-NEXT:    [[CALL_1:%.*]] = tail call i1 @f.trunc(i32 100)
+; CHECK-NEXT:    [[CALL_2:%.*]] = tail call i1 @f.trunc(i32 300)
+; CHECK-NEXT:    [[RES:%.*]] = and i1 [[CALL_1]], [[CALL_2]]
+; CHECK-NEXT:    ret i1 [[RES]]
 ;
   %call.1 = tail call i1 @f.trunc(i32 100)
   %call.2 = tail call i1 @f.trunc(i32 300)
@@ -56,22 +58,23 @@ define i1 @caller1() {
 
 ; x = [100, 301)
 define internal i1 @f.zext(i32 %x, i32 %y) {
-; CHECK-LABEL: define internal i1 @f.zext(i32 %x, i32 %y) {
-; CHECK-NEXT:    %t.1 = zext i32 %x to i64
-; CHECK-NEXT:    %c.2 = icmp sgt i64 %t.1, 299
-; CHECK-NEXT:    %c.4 = icmp slt i64 %t.1, 101
-; CHECK-NEXT:    %res.1 = add i1 false, %c.2
-; CHECK-NEXT:    %res.2 = add i1 %res.1, false
-; CHECK-NEXT:    %res.3 = add i1 %res.2, %c.4
-; CHECK-NEXT:    %t.2 = zext i32 %y to i64
-; CHECK-NEXT:    %c.5 = icmp sgt i64 %t.2, 300
-; CHECK-NEXT:    %c.6 = icmp sgt i64 %t.2, 299
-; CHECK-NEXT:    %c.8 = icmp slt i64 %t.2, 1
-; CHECK-NEXT:    %res.4 = add i1 %res.3, %c.5
-; CHECK-NEXT:    %res.5 = add i1 %res.4, %c.6
-; CHECK-NEXT:    %res.6 = add i1 %res.5, false
-; CHECK-NEXT:    %res.7 = add i1 %res.6, %c.8
-; CHECK-NEXT:    ret i1 %res.7
+; CHECK-LABEL: @f.zext(
+; CHECK-NEXT:    [[T_1:%.*]] = zext i32 [[X:%.*]] to i64
+; CHECK-NEXT:    [[C_2:%.*]] = icmp sgt i64 [[T_1]], 299
+; CHECK-NEXT:    [[C_4:%.*]] = icmp slt i64 [[T_1]], 101
+; CHECK-NEXT:    [[RES_1:%.*]] = add i1 false, [[C_2]]
+; CHECK-NEXT:    [[RES_2:%.*]] = add i1 [[RES_1]], false
+; CHECK-NEXT:    [[RES_3:%.*]] = add i1 [[RES_2]], [[C_4]]
+; CHECK-NEXT:    [[T_2:%.*]] = zext i32 [[Y:%.*]] to i64
+; CHECK-NEXT:    [[C_5:%.*]] = icmp sgt i64 [[T_2]], 300
+; CHECK-NEXT:    [[C_6:%.*]] = icmp sgt i64 [[T_2]], 299
+; CHECK-NEXT:    [[C_8:%.*]] = icmp slt i64 [[T_2]], 1
+; CHECK-NEXT:    [[RES_4:%.*]] = add i1 [[RES_3]], [[C_5]]
+; CHECK-NEXT:    [[RES_5:%.*]] = add i1 [[RES_4]], [[C_6]]
+; CHECK-NEXT:    [[RES_6:%.*]] = add i1 [[RES_5]], false
+; CHECK-NEXT:    [[RES_7:%.*]] = add i1 [[RES_6]], [[C_8]]
+; CHECK-NEXT:    ret i1 [[RES_7]]
+;
 
   %t.1 = zext i32 %x to i64
   %c.1 = icmp sgt i64 %t.1, 300
@@ -94,11 +97,11 @@ define internal i1 @f.zext(i32 %x, i32 %y) {
 }
 
 define i1 @caller.zext() {
-; CHECK-LABEL:  define i1 @caller.zext() {
-; CHECK-NEXT:    %call.1 = tail call i1 @f.zext(i32 100, i32 -120)
-; CHECK-NEXT:    %call.2 = tail call i1 @f.zext(i32 300, i32 900)
-; CHECK-NEXT:    %res = and i1 %call.1, %call.2
-; CHECK-NEXT:    ret i1 %res
+; CHECK-LABEL: @caller.zext(
+; CHECK-NEXT:    [[CALL_1:%.*]] = tail call i1 @f.zext(i32 100, i32 -120)
+; CHECK-NEXT:    [[CALL_2:%.*]] = tail call i1 @f.zext(i32 300, i32 900)
+; CHECK-NEXT:    [[RES:%.*]] = and i1 [[CALL_1]], [[CALL_2]]
+; CHECK-NEXT:    ret i1 [[RES]]
 ;
   %call.1 = tail call i1 @f.zext(i32 100, i32 -120)
   %call.2 = tail call i1 @f.zext(i32 300, i32 900)
@@ -108,21 +111,21 @@ define i1 @caller.zext() {
 
 ; x = [100, 301)
 define internal i1 @f.sext(i32 %x, i32 %y) {
-; CHECK-LABEL: define internal i1 @f.sext(i32 %x, i32 %y) {
-; CHECK-NEXT:    [[T_1:%.*]] = zext i32 %x to i64
-; CHECK-NEXT:    %c.2 = icmp sgt i64 [[T_1]], 299
-; CHECK-NEXT:    %c.4 = icmp slt i64 [[T_1]], 101
-; CHECK-NEXT:    %res.1 = add i1 false, %c.2
-; CHECK-NEXT:    %res.2 = add i1 %res.1, false
-; CHECK-NEXT:    %res.3 = add i1 %res.2, %c.4
-; CHECK-NEXT:    %t.2 = sext i32 %y to i64
-; CHECK-NEXT:    %c.6 = icmp sgt i64 %t.2, 899
-; CHECK-NEXT:    %c.8 = icmp slt i64 %t.2, -119
-; CHECK-NEXT:    %res.4 = add i1 %res.3, false
-; CHECK-NEXT:    %res.5 = add i1 %res.4, %c.6
-; CHECK-NEXT:    %res.6 = add i1 %res.5, false
-; CHECK-NEXT:    %res.7 = add i1 %res.6, %c.8
-; CHECK-NEXT:    ret i1 %res.7
+; CHECK-LABEL: @f.sext(
+; CHECK-NEXT:    [[TMP1:%.*]] = zext i32 [[X:%.*]] to i64
+; CHECK-NEXT:    [[C_2:%.*]] = icmp sgt i64 [[TMP1]], 299
+; CHECK-NEXT:    [[C_4:%.*]] = icmp slt i64 [[TMP1]], 101
+; CHECK-NEXT:    [[RES_1:%.*]] = add i1 false, [[C_2]]
+; CHECK-NEXT:    [[RES_2:%.*]] = add i1 [[RES_1]], false
+; CHECK-NEXT:    [[RES_3:%.*]] = add i1 [[RES_2]], [[C_4]]
+; CHECK-NEXT:    [[T_2:%.*]] = sext i32 [[Y:%.*]] to i64
+; CHECK-NEXT:    [[C_6:%.*]] = icmp sgt i64 [[T_2]], 899
+; CHECK-NEXT:    [[C_8:%.*]] = icmp slt i64 [[T_2]], -119
+; CHECK-NEXT:    [[RES_4:%.*]] = add i1 [[RES_3]], false
+; CHECK-NEXT:    [[RES_5:%.*]] = add i1 [[RES_4]], [[C_6]]
+; CHECK-NEXT:    [[RES_6:%.*]] = add i1 [[RES_5]], false
+; CHECK-NEXT:    [[RES_7:%.*]] = add i1 [[RES_6]], [[C_8]]
+; CHECK-NEXT:    ret i1 [[RES_7]]
 ;
   %t.1 = sext i32 %x to i64
   %c.1 = icmp sgt i64 %t.1, 300
@@ -145,11 +148,11 @@ define internal i1 @f.sext(i32 %x, i32 %y) {
 }
 
 define i1 @caller.sext() {
-; CHECK-LABEL:  define i1 @caller.sext() {
-; CHECK-NEXT:    %call.1 = tail call i1 @f.sext(i32 100, i32 -120)
-; CHECK-NEXT:    %call.2 = tail call i1 @f.sext(i32 300, i32 900)
-; CHECK-NEXT:    %res = and i1 %call.1, %call.2
-; CHECK-NEXT:    ret i1 %res
+; CHECK-LABEL: @caller.sext(
+; CHECK-NEXT:    [[CALL_1:%.*]] = tail call i1 @f.sext(i32 100, i32 -120)
+; CHECK-NEXT:    [[CALL_2:%.*]] = tail call i1 @f.sext(i32 300, i32 900)
+; CHECK-NEXT:    [[RES:%.*]] = and i1 [[CALL_1]], [[CALL_2]]
+; CHECK-NEXT:    ret i1 [[RES]]
 ;
   %call.1 = tail call i1 @f.sext(i32 100, i32 -120)
   %call.2 = tail call i1 @f.sext(i32 300, i32 900)
@@ -159,18 +162,18 @@ define i1 @caller.sext() {
 
 ; There's nothing we can do besides going to the full range or overdefined.
 define internal i1 @f.fptosi(i32 %x) {
-; CHECK-LABEL: define internal i1 @f.fptosi(i32 %x) {
-; CHECK-NEXT:    %to.double = sitofp i32 %x to double
-; CHECK-NEXT:    %add = fadd double 0.000000e+00, %to.double
-; CHECK-NEXT:    %to.i32 = fptosi double %add to i32
-; CHECK-NEXT:    %c.1 = icmp sgt i32 %to.i32, 300
-; CHECK-NEXT:    %c.2 = icmp sgt i32 %to.i32, 299
-; CHECK-NEXT:    %c.3 = icmp slt i32 %to.i32, 100
-; CHECK-NEXT:    %c.4 = icmp slt i32 %to.i32, 101
-; CHECK-NEXT:    %res.1 = add i1 %c.1, %c.2
-; CHECK-NEXT:    %res.2 = add i1 %res.1, %c.3
-; CHECK-NEXT:    %res.3 = add i1 %res.2, %c.4
-; CHECK-NEXT:    ret i1 %res.3
+; CHECK-LABEL: @f.fptosi(
+; CHECK-NEXT:    [[TO_DOUBLE:%.*]] = sitofp i32 [[X:%.*]] to double
+; CHECK-NEXT:    [[ADD:%.*]] = fadd double 0.000000e+00, [[TO_DOUBLE]]
+; CHECK-NEXT:    [[TO_I32:%.*]] = fptosi double [[ADD]] to i32
+; CHECK-NEXT:    [[C_1:%.*]] = icmp sgt i32 [[TO_I32]], 300
+; CHECK-NEXT:    [[C_2:%.*]] = icmp sgt i32 [[TO_I32]], 299
+; CHECK-NEXT:    [[C_3:%.*]] = icmp slt i32 [[TO_I32]], 100
+; CHECK-NEXT:    [[C_4:%.*]] = icmp slt i32 [[TO_I32]], 101
+; CHECK-NEXT:    [[RES_1:%.*]] = add i1 [[C_1]], [[C_2]]
+; CHECK-NEXT:    [[RES_2:%.*]] = add i1 [[RES_1]], [[C_3]]
+; CHECK-NEXT:    [[RES_3:%.*]] = add i1 [[RES_2]], [[C_4]]
+; CHECK-NEXT:    ret i1 [[RES_3]]
 ;
   %to.double = sitofp i32 %x to double
   %add = fadd double 0.000000e+00, %to.double
@@ -186,11 +189,11 @@ define internal i1 @f.fptosi(i32 %x) {
 }
 
 define i1 @caller.fptosi() {
-; CHECK-LABEL:  define i1 @caller.fptosi() {
-; CHECK-NEXT:    %call.1 = tail call i1 @f.fptosi(i32 100)
-; CHECK-NEXT:    %call.2 = tail call i1 @f.fptosi(i32 300)
-; CHECK-NEXT:    %res = and i1 %call.1, %call.2
-; CHECK-NEXT:    ret i1 %res
+; CHECK-LABEL: @caller.fptosi(
+; CHECK-NEXT:    [[CALL_1:%.*]] = tail call i1 @f.fptosi(i32 100)
+; CHECK-NEXT:    [[CALL_2:%.*]] = tail call i1 @f.fptosi(i32 300)
+; CHECK-NEXT:    [[RES:%.*]] = and i1 [[CALL_1]], [[CALL_2]]
+; CHECK-NEXT:    ret i1 [[RES]]
 ;
   %call.1 = tail call i1 @f.fptosi(i32 100)
   %call.2 = tail call i1 @f.fptosi(i32 300)
@@ -200,18 +203,18 @@ define i1 @caller.fptosi() {
 
 ; There's nothing we can do besides going to the full range or overdefined.
 define internal i1 @f.fpext(i16 %x) {
-; CHECK-LABEL: define internal i1 @f.fpext(i16 %x) {
-; CHECK-NEXT:    %to.float = sitofp i16 %x to float
-; CHECK-NEXT:    %to.double = fpext float %to.float to double
-; CHECK-NEXT:    %to.i64 = fptoui float %to.float to i64
-; CHECK-NEXT:    %c.1 = icmp sgt i64 %to.i64, 300
-; CHECK-NEXT:    %c.2 = icmp sgt i64 %to.i64, 299
-; CHECK-NEXT:    %c.3 = icmp slt i64 %to.i64, 100
-; CHECK-NEXT:    %c.4 = icmp slt i64 %to.i64, 101
-; CHECK-NEXT:    %res.1 = add i1 %c.1, %c.2
-; CHECK-NEXT:    %res.2 = add i1 %res.1, %c.3
-; CHECK-NEXT:    %res.3 = add i1 %res.2, %c.4
-; CHECK-NEXT:    ret i1 %res.3
+; CHECK-LABEL: @f.fpext(
+; CHECK-NEXT:    [[TO_FLOAT:%.*]] = sitofp i16 [[X:%.*]] to float
+; CHECK-NEXT:    [[TO_DOUBLE:%.*]] = fpext float [[TO_FLOAT]] to double
+; CHECK-NEXT:    [[TO_I64:%.*]] = fptoui float [[TO_FLOAT]] to i64
+; CHECK-NEXT:    [[C_1:%.*]] = icmp sgt i64 [[TO_I64]], 300
+; CHECK-NEXT:    [[C_2:%.*]] = icmp sgt i64 [[TO_I64]], 299
+; CHECK-NEXT:    [[C_3:%.*]] = icmp slt i64 [[TO_I64]], 100
+; CHECK-NEXT:    [[C_4:%.*]] = icmp slt i64 [[TO_I64]], 101
+; CHECK-NEXT:    [[RES_1:%.*]] = add i1 [[C_1]], [[C_2]]
+; CHECK-NEXT:    [[RES_2:%.*]] = add i1 [[RES_1]], [[C_3]]
+; CHECK-NEXT:    [[RES_3:%.*]] = add i1 [[RES_2]], [[C_4]]
+; CHECK-NEXT:    ret i1 [[RES_3]]
 ;
   %to.float = sitofp i16 %x to float
   %to.double = fpext float %to.float  to double
@@ -228,11 +231,11 @@ define internal i1 @f.fpext(i16 %x) {
 
 ; There's nothing we can do besides going to the full range or overdefined.
 define i1 @caller.fpext() {
-; CHECK-LABEL:  define i1 @caller.fpext() {
-; CHECK-NEXT:    %call.1 = tail call i1 @f.fpext(i16 100)
-; CHECK-NEXT:    %call.2 = tail call i1 @f.fpext(i16 300)
-; CHECK-NEXT:    %res = and i1 %call.1, %call.2
-; CHECK-NEXT:    ret i1 %res
+; CHECK-LABEL: @caller.fpext(
+; CHECK-NEXT:    [[CALL_1:%.*]] = tail call i1 @f.fpext(i16 100)
+; CHECK-NEXT:    [[CALL_2:%.*]] = tail call i1 @f.fpext(i16 300)
+; CHECK-NEXT:    [[RES:%.*]] = and i1 [[CALL_1]], [[CALL_2]]
+; CHECK-NEXT:    ret i1 [[RES]]
 ;
   %call.1 = tail call i1 @f.fpext(i16 100)
   %call.2 = tail call i1 @f.fpext(i16 300)
@@ -242,17 +245,17 @@ define i1 @caller.fpext() {
 
 ; There's nothing we can do besides going to the full range or overdefined.
 define internal i1 @f.inttoptr.ptrtoint(i64 %x) {
-; CHECK-LABEL: define internal i1 @f.inttoptr.ptrtoint(i64 %x) {
-; CHECK-NEXT:    %to.ptr = inttoptr i64 %x to i8*
-; CHECK-NEXT:    %to.i64 = ptrtoint i8* %to.ptr to i64
-; CHECK-NEXT:    %c.1 = icmp sgt i64 %to.i64, 300
-; CHECK-NEXT:    %c.2 = icmp sgt i64 %to.i64, 299
-; CHECK-NEXT:    %c.3 = icmp slt i64 %to.i64, 100
-; CHECK-NEXT:    %c.4 = icmp slt i64 %to.i64, 101
-; CHECK-NEXT:    %res.1 = add i1 %c.1, %c.2
-; CHECK-NEXT:    %res.2 = add i1 %res.1, %c.3
-; CHECK-NEXT:    %res.3 = add i1 %res.2, %c.4
-; CHECK-NEXT:    ret i1 %res.3
+; CHECK-LABEL: @f.inttoptr.ptrtoint(
+; CHECK-NEXT:    [[TO_PTR:%.*]] = inttoptr i64 [[X:%.*]] to i8*
+; CHECK-NEXT:    [[TO_I64:%.*]] = ptrtoint i8* [[TO_PTR]] to i64
+; CHECK-NEXT:    [[C_1:%.*]] = icmp sgt i64 [[TO_I64]], 300
+; CHECK-NEXT:    [[C_2:%.*]] = icmp sgt i64 [[TO_I64]], 299
+; CHECK-NEXT:    [[C_3:%.*]] = icmp slt i64 [[TO_I64]], 100
+; CHECK-NEXT:    [[C_4:%.*]] = icmp slt i64 [[TO_I64]], 101
+; CHECK-NEXT:    [[RES_1:%.*]] = add i1 [[C_1]], [[C_2]]
+; CHECK-NEXT:    [[RES_2:%.*]] = add i1 [[RES_1]], [[C_3]]
+; CHECK-NEXT:    [[RES_3:%.*]] = add i1 [[RES_2]], [[C_4]]
+; CHECK-NEXT:    ret i1 [[RES_3]]
 ;
   %to.ptr = inttoptr i64 %x to i8*
   %to.i64 = ptrtoint i8* %to.ptr to i64
@@ -267,11 +270,11 @@ define internal i1 @f.inttoptr.ptrtoint(i64 %x) {
 }
 
 define i1 @caller.inttoptr.ptrtoint() {
-; CHECK-LABEL:  define i1 @caller.inttoptr.ptrtoint() {
-; CHECK-NEXT:    %call.1 = tail call i1 @f.inttoptr.ptrtoint(i64 100)
-; CHECK-NEXT:    %call.2 = tail call i1 @f.inttoptr.ptrtoint(i64 300)
-; CHECK-NEXT:    %res = and i1 %call.1, %call.2
-; CHECK-NEXT:    ret i1 %res
+; CHECK-LABEL: @caller.inttoptr.ptrtoint(
+; CHECK-NEXT:    [[CALL_1:%.*]] = tail call i1 @f.inttoptr.ptrtoint(i64 100)
+; CHECK-NEXT:    [[CALL_2:%.*]] = tail call i1 @f.inttoptr.ptrtoint(i64 300)
+; CHECK-NEXT:    [[RES:%.*]] = and i1 [[CALL_1]], [[CALL_2]]
+; CHECK-NEXT:    ret i1 [[RES]]
 ;
   %call.1 = tail call i1 @f.inttoptr.ptrtoint(i64 100)
   %call.2 = tail call i1 @f.inttoptr.ptrtoint(i64 300)
@@ -281,12 +284,12 @@ define i1 @caller.inttoptr.ptrtoint() {
 
 ; Make sure we do not create constant ranges for int to fp casts.
 define i1 @int_range_to_double_cast(i32 %a) {
-; CHECK-LABEL: define i1 @int_range_to_double_cast(i32 %a)
-; CHECK-NEXT:    %r = and i32 %a, 255
-; CHECK-NEXT:    %tmp4 = sitofp i32 %r to double
-; CHECK-NEXT:    %tmp10 = fadd double 0.000000e+00, %tmp4
-; CHECK-NEXT:    %tmp11 = fcmp olt double %tmp4, %tmp10
-; CHECK-NEXT:    ret i1 %tmp11
+; CHECK-LABEL: @int_range_to_double_cast(
+; CHECK-NEXT:    [[R:%.*]] = and i32 [[A:%.*]], 255
+; CHECK-NEXT:    [[TMP4:%.*]] = sitofp i32 [[R]] to double
+; CHECK-NEXT:    [[TMP10:%.*]] = fadd double 0.000000e+00, [[TMP4]]
+; CHECK-NEXT:    [[TMP11:%.*]] = fcmp olt double [[TMP4]], [[TMP10]]
+; CHECK-NEXT:    ret i1 [[TMP11]]
 ;
   %r = and i32 %a, 255
   %tmp4 = sitofp i32 %r to double
@@ -297,13 +300,14 @@ define i1 @int_range_to_double_cast(i32 %a) {
 
 ; Make sure we do not use ranges to propagate info from vectors.
 define i16 @vector_binop_and_cast() {
-; CHECK-LABEL: define i16 @vector_binop_and_cast(
+; CHECK-LABEL: @vector_binop_and_cast(
 ; CHECK-NEXT:  entry:
-; CHECK-NEXT:    %vecinit7 = insertelement <8 x i16> <i16 undef, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, i16 undef, i32 0
-; CHECK-NEXT:    %rem = srem <8 x i16> <i16 2, i16 2, i16 2, i16 2, i16 2, i16 2, i16 2, i16 2>, %vecinit7
-; CHECK-NEXT:    %0 = bitcast <8 x i16> %rem to i128
-; CHECK-NEXT:    %1 = trunc i128 %0 to i16
-; CHECK-NEXT:    ret i16 %1
+; CHECK-NEXT:    [[VECINIT7:%.*]] = insertelement <8 x i16> <i16 undef, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, i16 undef, i32 0
+; CHECK-NEXT:    [[REM:%.*]] = srem <8 x i16> <i16 2, i16 2, i16 2, i16 2, i16 2, i16 2, i16 2, i16 2>, [[VECINIT7]]
+; CHECK-NEXT:    [[TMP0:%.*]] = bitcast <8 x i16> [[REM]] to i128
+; CHECK-NEXT:    [[TMP1:%.*]] = trunc i128 [[TMP0]] to i16
+; CHECK-NEXT:    ret i16 [[TMP1]]
+;
 entry:
   %vecinit7 = insertelement <8 x i16> <i16 undef, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, i16 undef, i32 0
   %rem = srem <8 x i16> <i16 2, i16 2, i16 2, i16 2, i16 2, i16 2, i16 2, i16 2>, %vecinit7


        


More information about the llvm-commits mailing list