1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py 2; RUN: opt < %s -instcombine -S | FileCheck %s 3 4target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 5target triple = "x86_64-unknown-linux-gnu" 6 7; Function Attrs: readonly uwtable 8define i1 @dot_ref_s(i32** noalias nocapture readonly dereferenceable(8)) { 9; CHECK-LABEL: @dot_ref_s( 10; CHECK-NEXT: entry-block: 11; CHECK-NEXT: ret i1 false 12; 13entry-block: 14 %loadedptr = load i32*, i32** %0, align 8, !nonnull !0 15 %ptrtoint = ptrtoint i32* %loadedptr to i64 16 %inttoptr = inttoptr i64 %ptrtoint to i32* 17 %switchtmp = icmp eq i32* %inttoptr, null 18 ret i1 %switchtmp 19 20} 21 22; Function Attrs: readonly uwtable 23define i64* @function(i64* noalias nocapture readonly dereferenceable(8)) { 24; CHECK-LABEL: @function( 25; CHECK-NEXT: entry-block: 26; CHECK-NEXT: [[LOADED:%.*]] = load i64, i64* [[TMP0:%.*]], align 8, [[RNG0:!range !.*]] 27; CHECK-NEXT: [[INTTOPTR:%.*]] = inttoptr i64 [[LOADED]] to i64* 28; CHECK-NEXT: ret i64* [[INTTOPTR]] 29; 30entry-block: 31 %loaded = load i64, i64* %0, align 8, !range !1 32 %inttoptr = inttoptr i64 %loaded to i64* 33 ret i64* %inttoptr 34} 35 36 37!0 = !{} 38!1 = !{i64 1, i64 140737488355327} 39