projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[WebAssembly] Support constant offsets on loads and stores
[oota-llvm.git]
/
test
/
CodeGen
/
WebAssembly
/
global.ll
diff --git
a/test/CodeGen/WebAssembly/global.ll
b/test/CodeGen/WebAssembly/global.ll
index 818c454a4914a065180dde372f8484fa0e0550e4..ffc73e3c1e3568279512e08196f144a9ca52f72b 100644
(file)
--- a/
test/CodeGen/WebAssembly/global.ll
+++ b/
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