mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 16:56:06 +00:00

So far I've been unsuccessful in finding an example where the used constant value is directly observed in the output. This avoids an assert in an intermediate step of value replacement.
14 lines
573 B
LLVM
14 lines
573 B
LLVM
; RUN: llvm-reduce %s -o %t --abort-on-invalid-reduction --delta-passes=arguments --test FileCheck --test-arg %s --test-arg --check-prefixes=INTERESTING --test-arg --input-file
|
|
; RUN: FileCheck %s --input-file %t --check-prefixes=RESULT
|
|
|
|
declare void @uses_ext_ty(target("sometarget.sometype"))
|
|
declare target("sometarget.sometype") @produces_ext_ty()
|
|
|
|
; INTERESTING: @interesting(
|
|
; RESULT: @interesting(
|
|
; RESULT: void @uses_ext_ty()
|
|
define void @interesting(target("sometarget.sometype") %arg) {
|
|
call void @uses_ext_ty(target("sometarget.sometype") %arg)
|
|
ret void
|
|
}
|