2015-08-26 06:23:15 +08:00
|
|
|
; RUN: llc < %s -asm-verbose=false | FileCheck %s
|
|
|
|
|
2016-01-07 11:19:23 +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"
|
2015-08-26 06:23:15 +08:00
|
|
|
|
2015-10-06 08:27:55 +08:00
|
|
|
; CHECK: .globl foo
|
2017-12-06 01:21:57 +08:00
|
|
|
; CHECK: .type foo,@function
|
2015-10-06 08:27:55 +08:00
|
|
|
; CHECK-LABEL: foo:
|
2017-12-06 01:21:57 +08:00
|
|
|
; CHECK: .size foo,
|
|
|
|
define i32* @foo() {
|
|
|
|
ret i32* @bar
|
2015-08-26 06:23:15 +08:00
|
|
|
}
|
2016-12-01 08:11:15 +08:00
|
|
|
|
2017-12-06 01:21:57 +08:00
|
|
|
; CHECK: .type bar,@object
|
|
|
|
; CHECK: .globl bar
|
|
|
|
; CHECK: .size bar, 4
|
|
|
|
@bar = global i32 2
|