2009-09-09 07:54:48 +08:00
|
|
|
; RUN: llc < %s -mtriple=i386-pc-mingw32 | FileCheck %s
|
2009-07-09 08:53:44 +08:00
|
|
|
|
2011-02-21 12:50:06 +08:00
|
|
|
; RUN: llc < %s -mtriple=i386-pc-mingw32 -O0 | FileCheck %s -check-prefix=FAST
|
|
|
|
; PR6275
|
|
|
|
|
2009-07-09 08:53:44 +08:00
|
|
|
declare dllimport void @foo()
|
|
|
|
|
|
|
|
define void @bar() nounwind {
|
2010-09-22 13:49:14 +08:00
|
|
|
; CHECK: calll *__imp__foo
|
2011-02-21 12:50:06 +08:00
|
|
|
; FAST: movl __imp__foo, [[R:%[a-z]{3}]]
|
|
|
|
; FAST: calll *[[R]]
|
2009-07-09 08:53:44 +08:00
|
|
|
call void @foo()
|
|
|
|
ret void
|
|
|
|
}
|