2013-02-20 00:51:44 +08:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-linux-gnu | FileCheck %s
|
|
|
|
|
|
|
|
define i32 @main(i32 %x) nounwind gc "ocaml" {
|
|
|
|
; CHECK: .text
|
2013-11-13 22:01:59 +08:00
|
|
|
; CHECK-NEXT: .globl "caml<stdin>__code_begin"
|
|
|
|
; CHECK-NEXT: "caml<stdin>__code_begin":
|
2013-02-20 00:51:44 +08:00
|
|
|
; CHECK-NEXT: .data
|
2013-11-13 22:01:59 +08:00
|
|
|
; CHECK-NEXT: .globl "caml<stdin>__data_begin"
|
|
|
|
; CHECK-NEXT: "caml<stdin>__data_begin":
|
2013-02-20 00:51:44 +08:00
|
|
|
|
|
|
|
%puts = tail call i32 @foo(i32 %x)
|
|
|
|
ret i32 0
|
|
|
|
|
2013-11-13 22:01:59 +08:00
|
|
|
; CHECK: .globl "caml<stdin>__code_end"
|
|
|
|
; CHECK-NEXT: "caml<stdin>__code_end":
|
2013-02-20 00:51:44 +08:00
|
|
|
; CHECK-NEXT: .data
|
2013-11-13 22:01:59 +08:00
|
|
|
; CHECK-NEXT: .globl "caml<stdin>__data_end"
|
|
|
|
; CHECK-NEXT: "caml<stdin>__data_end":
|
2013-02-20 00:51:44 +08:00
|
|
|
; CHECK-NEXT: .quad 0
|
2013-11-13 22:01:59 +08:00
|
|
|
; CHECK-NEXT: .globl "caml<stdin>__frametable"
|
|
|
|
; CHECK-NEXT: "caml<stdin>__frametable":
|
2013-02-20 00:51:44 +08:00
|
|
|
; CHECK-NEXT: .short 1
|
|
|
|
; CHECK-NEXT: .align 8
|
|
|
|
; CHECK-NEXT: # live roots for main
|
|
|
|
; CHECK-NEXT: .quad .Ltmp0
|
|
|
|
; CHECK-NEXT: .short 8
|
|
|
|
; CHECK-NEXT: .short 0
|
|
|
|
; CHECK-NEXT: .align 8
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i32 @foo(i32)
|