bolt/deps/llvm-18.1.8/llvm/test/tools/llvm-extract/keep-constinit.ll
2025-02-14 19:21:04 +01:00

12 lines
297 B
LLVM

; RUN: llvm-extract -func foo -keep-const-init -S < %s | FileCheck %s
; RUN: llvm-extract -func foo -S < %s | FileCheck %s --check-prefix=CHECK2
; CHECK: @cv = constant i32 0
; CHECK2: @cv = external constant i32
@cv = constant i32 0
define i32 @foo() {
%v = load i32, ptr @cv
ret i32 %v
}