mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
11 lines
180 B
LLVM
11 lines
180 B
LLVM
|
; RUN: llvm-as < %s | llc -march=alpha | grep rpcc
|
||
|
|
||
|
declare ulong %llvm.readcyclecounter()
|
||
|
|
||
|
ulong %foo() {
|
||
|
entry:
|
||
|
%tmp.1 = call ulong %llvm.readcyclecounter ()
|
||
|
ret ulong %tmp.1
|
||
|
}
|
||
|
|