diff options
| author | Dan Gohman <dan433584@gmail.com> | 2017-02-22 18:50:20 +0000 |
|---|---|---|
| committer | Dan Gohman <dan433584@gmail.com> | 2017-02-22 18:50:20 +0000 |
| commit | 7ea5adfff4c73c76d52fe5aad3106244b0b0e301 (patch) | |
| tree | 70625b23dcc784cfa6dfb69d1762906b06b1c9bb /llvm/test/MC/WebAssembly/file-headers.ll | |
| parent | f1141285eb1f8bd857bb646ff54b2cacf75b28fc (diff) | |
| download | bcm5719-llvm-7ea5adfff4c73c76d52fe5aad3106244b0b0e301.tar.gz bcm5719-llvm-7ea5adfff4c73c76d52fe5aad3106244b0b0e301.zip | |
[WebAssembly] Implement the wasm binary container header.
Also, update the version number to 0x1, which is what engines are now
expecting.
llvm-svn: 295860
Diffstat (limited to 'llvm/test/MC/WebAssembly/file-headers.ll')
| -rw-r--r-- | llvm/test/MC/WebAssembly/file-headers.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/MC/WebAssembly/file-headers.ll b/llvm/test/MC/WebAssembly/file-headers.ll new file mode 100644 index 00000000000..1e5dd4b160a --- /dev/null +++ b/llvm/test/MC/WebAssembly/file-headers.ll @@ -0,0 +1,9 @@ +; RUN: llc -filetype=obj %s -o - | llvm-readobj -file-headers | FileCheck %s + +target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" +target triple = "wasm32-unknown-unknown-wasm" + +; CHECK: Format: WASM{{$}} +; CHECK: Arch: wasm32{{$}} +; CHECK: AddressSize: 32bit{{$}} +; CHECK: Version: 0x1{{$}} |

