]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/Generic/2007-12-17-InvokeAsm.ll
Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release):
[FreeBSD/FreeBSD.git] / test / CodeGen / Generic / 2007-12-17-InvokeAsm.ll
1 ; RUN: llc -no-integrated-as < %s
2
3 define fastcc void @bc__support__high_resolution_time__initialize_clock_rate() {
4 entry:
5   invoke void asm "rdtsc\0A\09movl %eax, $0\0A\09movl %edx, $1", "=*imr,=*imr,~{dirflag},~{fpsr},~{flags},~{dx},~{ax}"( i32* null, i32* null )
6       to label %.noexc unwind label %cleanup144
7
8 .noexc:         ; preds = %entry
9   ret void
10
11 cleanup144:             ; preds = %entry
12   %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
13             cleanup
14   resume { i8*, i32 } %exn
15 }
16
17 declare i32 @__gxx_personality_v0(...)