You've already forked linux-packaging-mono
Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
parent
8016999e4d
commit
64ac736ec5
16
external/llvm/test/Transforms/InstCombine/strncmp-wrong-datalayout.ll
vendored
Normal file
16
external/llvm/test/Transforms/InstCombine/strncmp-wrong-datalayout.ll
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
; Test that the strncpy simplification doesn't crash if datalayout specifies
|
||||
; 64 bit pointers while length is a 32 bit argument
|
||||
;
|
||||
; RUN: opt < %s -instcombine -S | FileCheck %s
|
||||
|
||||
target datalayout = "e-p:64:64:64"
|
||||
|
||||
declare i32 @strncmp(i8*, i8*, i32)
|
||||
|
||||
define i32 @test6(i8* %str1, i8* %str2) {
|
||||
; CHECK-LABEL: @test6(
|
||||
; CHECK: call i32 @strncmp(i8* %str1, i8* %str2, i32 1)
|
||||
|
||||
%temp1 = call i32 @strncmp(i8* %str1, i8* %str2, i32 1)
|
||||
ret i32 %temp1
|
||||
}
|
Reference in New Issue
Block a user