summaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/Generic/2007-12-17-InvokeAsm.ll
blob: 58415bf1e827b267c7709571b3edb2a245f87fb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
; RUN: llc -no-integrated-as < %s

; The test uses inline assembly with x86-specific constraints.
; UNSUPPORTED: target=nvptx{{.*}}


define fastcc void @bc__support__high_resolution_time__initialize_clock_rate() personality ptr @__gxx_personality_v0 {
entry:
  invoke void asm "rdtsc\0A\09movl %eax, $0\0A\09movl %edx, $1", "=*imr,=*imr,~{dirflag},~{fpsr},~{flags},~{dx},~{ax}"( ptr elementtype( i32) null, ptr elementtype(i32) null )
      to label %.noexc unwind label %cleanup144

.noexc:		; preds = %entry
  ret void

cleanup144:		; preds = %entry
  %exn = landingpad {ptr, i32}
            cleanup
  resume { ptr, i32 } %exn
}

declare i32 @__gxx_personality_v0(...) addrspace(0)