summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/DeadStoreElimination/libcalls2.ll
blob: 0e8d9eade9ee809c9d4e4da5579f8b63e8e192d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: opt -S -basicaa -dse < %s | FileCheck %s

target triple = "x86_64-unknown-linux-gnu"

declare i8* @strncpy(i8* %dest, i8* %src, i32 %n) nounwind
define void @test2(i8* %src) {
; CHECK-LABEL: @test2(
  %B = alloca [16 x i8]
  %dest = getelementptr inbounds [16 x i8], [16 x i8]* %B, i64 0, i64 0
; CHECK: @strncpy
  %call = call i8* @strncpy(i8* %dest, i8* %src, i32 12)
; CHECK: ret void
  ret void
}
OpenPOWER on IntegriCloud