mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
28627cf011
Summary: This feature is not actually used for anything in the WebAssembly backend, but adding it allows users to get it into the target features sections of their objects, which makes these objects future-compatible. Reviewers: aheejin, dschuff Subscribers: sbc100, jgravelle-google, hiraditya, sunfish, jdoerfert, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D60013 llvm-svn: 357321
17 lines
424 B
LLVM
17 lines
424 B
LLVM
; RUN: llc < %s -mattr=+mutable-globals | FileCheck %s
|
|
|
|
; Test that mutable globals is properly emitted into the target features section
|
|
|
|
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
|
|
target triple = "wasm32-unknown-unknown"
|
|
|
|
define void @foo() {
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: .custom_section.target_features
|
|
; CHECK-NEXT: .int8 1
|
|
; CHECK-NEXT: .int8 43
|
|
; CHECK-NEXT: .int8 15
|
|
; CHECK-NEXT: .ascii "mutable-globals"
|