1 ; Test that the strncpy simplification doesn't crash if datalayout specifies
2 ; 64 bit pointers while length is a 32 bit argument
4 ; RUN: opt < %s -passes=instcombine -S | FileCheck %s
6 target datalayout = "e-p:64:64:64"
8 declare i32 @strncmp(ptr, ptr, i32)
10 define i32 @test6(ptr %str1, ptr %str2) {
11 ; CHECK-LABEL: @test6(
12 ; CHECK: call i32 @strncmp(ptr %str1, ptr %str2, i32 1)
14 %temp1 = call i32 @strncmp(ptr %str1, ptr %str2, i32 1)