2007-04-15-InlineEH.ll 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ; RUN: opt < %s -inline -S | not grep "invoke void asm"
  2. ; PR1335
  3. target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
  4. target triple = "i686-pc-linux-gnu"
  5. %struct.gnat__strings__string_access = type { i8*, %struct.string___XUB* }
  6. %struct.string___XUB = type { i32, i32 }
  7. define void @bc__support__high_resolution_time__clock() {
  8. entry:
  9. call void asm "rdtsc\0A\09movl %eax, $0\0A\09movl %edx, $1", "=*imr,=*imr,~{dirflag},~{fpsr},~{flags},~{dx},~{ax}"( i32* null, i32* null ) nounwind
  10. unreachable
  11. }
  12. define fastcc void @bc__support__high_resolution_time__initialize_clock_rate() personality i32 (...)* @__gxx_personality_v0 {
  13. entry:
  14. invoke void @gnat__os_lib__getenv( %struct.gnat__strings__string_access* null )
  15. to label %invcont unwind label %cleanup144
  16. invcont: ; preds = %entry
  17. invoke void @ada__calendar__delays__delay_for( )
  18. to label %invcont64 unwind label %cleanup144
  19. invcont64: ; preds = %invcont
  20. invoke void @ada__calendar__clock( )
  21. to label %invcont65 unwind label %cleanup144
  22. invcont65: ; preds = %invcont64
  23. invoke void @bc__support__high_resolution_time__clock( )
  24. to label %invcont67 unwind label %cleanup144
  25. invcont67: ; preds = %invcont65
  26. ret void
  27. cleanup144: ; preds = %invcont65, %invcont64, %invcont, %entry
  28. %exn = landingpad {i8*, i32}
  29. cleanup
  30. resume { i8*, i32 } %exn
  31. }
  32. declare i32 @__gxx_personality_v0(...)
  33. declare void @gnat__os_lib__getenv(%struct.gnat__strings__string_access*)
  34. declare void @ada__calendar__delays__delay_for()
  35. declare void @ada__calendar__clock()
  36. define void @bc__support__high_resolution_time___elabb() {
  37. entry:
  38. call fastcc void @bc__support__high_resolution_time__initialize_clock_rate( )
  39. ret void
  40. }