2019-01-29 18:53:42 +08:00
|
|
|
; RUN: llc < %s -asm-verbose=false | FileCheck %s
|
2017-12-09 05:18:21 +08:00
|
|
|
|
2018-09-14 01:13:10 +08:00
|
|
|
; Test that main function with expected signature is not wrapped
|
2017-12-09 05:18:21 +08:00
|
|
|
|
|
|
|
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
|
2018-05-11 01:49:11 +08:00
|
|
|
target triple = "wasm32-unknown-unknown"
|
2017-12-09 05:18:21 +08:00
|
|
|
|
2018-09-14 01:13:10 +08:00
|
|
|
define i32 @main(i32 %a, i8** %b) {
|
|
|
|
ret i32 0
|
2017-12-09 05:18:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK-LABEL: main:
|
2018-11-20 01:10:36 +08:00
|
|
|
; CHECK-NEXT: .functype main (i32, i32) -> (i32)
|
2018-09-14 01:13:10 +08:00
|
|
|
|
|
|
|
; CHECK-NOT: __original_main:
|