diff options
author | Derek Schuff <dschuff@google.com> | 2015-12-05 00:26:39 +0000 |
---|---|---|
committer | Derek Schuff <dschuff@google.com> | 2015-12-05 00:26:39 +0000 |
commit | 9d77952332fcbfadcb407119e09a3609cd23ac7d (patch) | |
tree | e34679f639193438ff7bfc5560fb1d55f6bbb412 /llvm/test/CodeGen/WebAssembly/global.ll | |
parent | 46089867de14228205009bd4991fad0e8529ecc9 (diff) | |
download | bcm5719-llvm-9d77952332fcbfadcb407119e09a3609cd23ac7d.tar.gz bcm5719-llvm-9d77952332fcbfadcb407119e09a3609cd23ac7d.zip |
[WebAssembly] Support constant offsets on loads and stores
This is just prototype for load/store for i32 types. I'll add them to
the rest of the types if we like this direction.
Differential Revision: http://reviews.llvm.org/D15197
llvm-svn: 254807
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/global.ll')
-rw-r--r-- | llvm/test/CodeGen/WebAssembly/global.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/global.ll b/llvm/test/CodeGen/WebAssembly/global.ll index 818c454a491..ffc73e3c1e3 100644 --- a/llvm/test/CodeGen/WebAssembly/global.ll +++ b/llvm/test/CodeGen/WebAssembly/global.ll @@ -11,7 +11,7 @@ target triple = "wasm32-unknown-unknown" ; CHECK: foo: ; CHECK: i32.const $push0=, answer{{$}} -; CHECK-NEXT: i32.load $push1=, $pop0{{$}} +; CHECK-NEXT: i32.load $push1=, 0($pop0){{$}} ; CHECK-NEXT: return $pop1{{$}} define i32 @foo() { %a = load i32, i32* @answer |