1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
2 ; RUN: opt < %s -passes=newgvn -S | FileCheck %s
4 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
5 target triple = "i386-apple-darwin7"
7 define i8 @test(ptr %P) nounwind {
8 ; CHECK-LABEL: define i8 @test(
9 ; CHECK-SAME: ptr [[P:%.*]]) #[[ATTR0:[0-9]+]] {
11 ; CHECK-NEXT: call void @llvm.lifetime.start.p0(i64 32, ptr [[P]])
12 ; CHECK-NEXT: store i8 1, ptr [[P]], align 1
13 ; CHECK-NEXT: call void @llvm.lifetime.end.p0(i64 32, ptr [[P]])
14 ; CHECK-NEXT: [[TMP0:%.*]] = load i8, ptr [[P]], align 1
15 ; CHECK-NEXT: ret i8 [[TMP0]]
18 call void @llvm.lifetime.start.p0(i64 32, ptr %P)
21 call void @llvm.lifetime.end.p0(i64 32, ptr %P)
26 declare void @llvm.lifetime.start.p0(i64 %S, ptr nocapture %P) readonly
27 declare void @llvm.lifetime.end.p0(i64 %S, ptr nocapture %P)