blob: 58cfcaa2b6d89b7e7d820b4767096efc59eb69c9 [file] [log] [blame]
; RUN: llc -mtriple=x86_64-unknown-unknown < %s | FileCheck %s
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Checks that interrupt handler code calls cld before calling an external
;; function.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; CHECK: cld
; CHECK: call
define x86_intrcc void @foo(ptr byval(i8) %frame) {
call void @bar()
ret void
}
declare void @bar()