mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
663aebf8d6
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145167 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
769 B
LLVM
25 lines
769 B
LLVM
; Tests to make sure intrinsics are automatically upgraded.
|
|
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
|
|
|
|
|
declare void @llvm.prefetch(i8*, i32, i32) nounwind
|
|
|
|
define void @p(i8* %ptr) {
|
|
; CHECK: llvm.prefetch(i8* %ptr, i32 0, i32 1, i32 1)
|
|
tail call void @llvm.prefetch(i8* %ptr, i32 0, i32 1)
|
|
ret void
|
|
}
|
|
|
|
declare i32 @nest_f(i8* nest, i32)
|
|
declare i8* @llvm.init.trampoline(i8*, i8*, i8*)
|
|
|
|
define void @test_trampolines() {
|
|
; CHECK: call void @llvm.init.trampoline(i8* null, i8* bitcast (i32 (i8*, i32)* @nest_f to i8*), i8* null)
|
|
; CHECK: call i8* @llvm.adjust.trampoline(i8* null)
|
|
|
|
call i8* @llvm.init.trampoline(i8* null,
|
|
i8* bitcast (i32 (i8*, i32)* @nest_f to i8*),
|
|
i8* null)
|
|
ret void
|
|
}
|