Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/Instrumentation/AddressSanitizer/force-dynamic-shadow.ll
; Test -asan-force-dynamic-shadow flag. | ; Test -asan-force-dynamic-shadow flag. | ||||
; | ; | ||||
; RUN: opt -asan -asan-module -S -asan-force-dynamic-shadow=1 < %s | FileCheck %s --check-prefixes=CHECK,CHECK-FDS | ; RUN: %opt_asan -asan -asan-module -S -asan-force-dynamic-shadow=1 < %s | FileCheck %s --check-prefixes=CHECK,CHECK-FDS | ||||
; RUN: opt -asan -asan-module -S -asan-force-dynamic-shadow=0 < %s | FileCheck %s --check-prefixes=CHECK,CHECK-NDS | ; RUN: %opt_asan -asan -asan-module -S -asan-force-dynamic-shadow=0 < %s | FileCheck %s --check-prefixes=CHECK,CHECK-NDS | ||||
target triple = "x86_64-unknown-linux-gnu" | target triple = "x86_64-unknown-linux-gnu" | ||||
define i32 @test_load(i32* %a) sanitize_address { | define i32 @test_load(i32* %a) sanitize_address { | ||||
; First instrumentation in the function must be to load the dynamic shadow | ; First instrumentation in the function must be to load the dynamic shadow | ||||
; address into a local variable. | ; address into a local variable. | ||||
; CHECK-LABEL: @test_load | ; CHECK-LABEL: @test_load | ||||
; CHECK: entry: | ; CHECK: entry: | ||||
Show All 10 Lines |