diff options
author | Sam Clegg <sbc@chromium.org> | 2018-07-02 16:03:49 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2018-07-02 16:03:49 +0000 |
commit | 7fecdef5b246419cb0e7f138f8be331064f0a7f7 (patch) | |
tree | 2a3f23a2bdaaf7073d7fe8a2d3c8ee289a77d133 /llvm/test/CodeGen/WebAssembly/offset-fastisel.ll | |
parent | b0004b834bd8449febfa346bd5e695f40675f30c (diff) | |
download | bcm5719-llvm-7fecdef5b246419cb0e7f138f8be331064f0a7f7.tar.gz bcm5719-llvm-7fecdef5b246419cb0e7f138f8be331064f0a7f7.zip |
[WebAssembly] Convert remaining tests from elf to wasm output format
Differential Revision: https://reviews.llvm.org/D48748
llvm-svn: 336116
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/offset-fastisel.ll')
-rw-r--r-- | llvm/test/CodeGen/WebAssembly/offset-fastisel.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/offset-fastisel.ll b/llvm/test/CodeGen/WebAssembly/offset-fastisel.ll index af4ca6f9c99..abad8917e9d 100644 --- a/llvm/test/CodeGen/WebAssembly/offset-fastisel.ll +++ b/llvm/test/CodeGen/WebAssembly/offset-fastisel.ll @@ -3,7 +3,7 @@ ; TODO: Merge this with offset.ll when fast-isel matches better. target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" -target triple = "wasm32-unknown-unknown-elf" +target triple = "wasm32-unknown-unknown" ; CHECK-LABEL: store_i8_with_variable_gep_offset: ; CHECK: i32.add $push[[L0:[0-9]+]]=, $0, $1{{$}} @@ -16,11 +16,11 @@ define void @store_i8_with_variable_gep_offset(i8* %p, i32 %idx) { } ; CHECK-LABEL: store_i8_with_array_alloca_gep: -; CHECK: i32.const $push[[L0:[0-9]+]]=, 0{{$}} -; CHECK: i32.load $push[[L1:[0-9]+]]=, __stack_pointer($pop[[L0]]){{$}} -; CHECK: i32.const $push[[L2:[0-9]+]]=, 32{{$}} -; CHECK: i32.sub $push{{[0-9]+}}=, $pop[[L1]], $pop[[L2]]{{$}} -; CHECK: i32.add $push[[L4:[0-9]+]]=, $pop{{[0-9]+}}, $0{{$}} +; CHECK: get_global $push[[L0:[0-9]+]]=, __stack_pointer +; CHECK: i32.const $push[[L1:[0-9]+]]=, 32{{$}} +; CHECK: i32.sub $push[[L2:[0-9]+]]=, $pop[[L0]], $pop[[L1]]{{$}} +; CHECK: copy_local $push[[L3:[0-9]+]]=, $pop[[L2]] +; CHECK: i32.add $push[[L4:[0-9]+]]=, $pop[[L3]], $0{{$}} ; CHECK: i32.const $push[[L5:[0-9]+]]=, 0{{$}} ; CHECK: i32.store8 0($pop[[L4]]), $pop[[L5]]{{$}} define hidden void @store_i8_with_array_alloca_gep(i32 %idx) { |