brintos

brintos / llvm-project-archived public Read only

0
0
Text · 589 B · f8b8d18 Raw
22 lines · plain
1; RUN: opt < %s -passes=asan -asan-instrument-dynamic-allocas -S | FileCheck %s2 3target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"4target triple = "x86_64-apple-macosx10.10.0"5 6define i32 @test_promotable_allocas() sanitize_address {7entry:8; CHECK: %0 = alloca i32, align 49; CHECK: store i32 0, ptr %0, align 410; CHECK: %1 = load i32, ptr %0, align 411; CHECK: ret i32 %112 13; CHECK-NOT: __asan_stack_malloc_014; CHECK-NOT: icmp15; CHECK-NOT: call void @__asan_report_store416 17  %0 = alloca i32, align 418  store i32 0, ptr %0, align 419  %1 = load i32, ptr %0, align 420  ret i32 %121}22