blob: 8ea9e2804370e1a0158cc08947b6c8762640824f [file] [log] [blame]
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
; RUN: opt < %s -mtriple=arm-none-eabi -passes=globalopt -S | FileCheck %s
@.str = private unnamed_addr constant [10 x i8] c"123456789\00", align 1
define void @foo() {
; CHECK-LABEL: define void @foo() local_unnamed_addr {
; CHECK-NEXT: [[ENTRY:.*:]]
; CHECK-NEXT: [[SOMETHING:%.*]] = alloca [12 x i8], align 1
; CHECK-NEXT: call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 1 dereferenceable(10) [[SOMETHING]], ptr noundef nonnull align 1 dereferenceable(10) @.str, i32 12, i1 false)
; CHECK-NEXT: [[CALL2:%.*]] = call i32 @bar(ptr nonnull [[SOMETHING]])
; CHECK-NEXT: ret void
;
entry:
%something = alloca [10 x i8], align 1
call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 1 dereferenceable(10) %something, ptr noundef nonnull align 1 dereferenceable(10) @.str, i32 10, i1 false)
%call2 = call i32 @bar(ptr nonnull %something)
ret void
}
declare i32 @bar(...)