diff options
author | Dan Gohman <dan433584@gmail.com> | 2015-11-06 19:45:01 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2015-11-06 19:45:01 +0000 |
commit | 4b96d8d1ff42e5e9427d5f46efab889cfebda279 (patch) | |
tree | 2876e47368d26cf46f1e4a5d360e107d80a1a7a8 /llvm/test/CodeGen/WebAssembly/comparisons_i32.ll | |
parent | 55ea67cea7f9fa45fe066c8670804582ad028faa (diff) | |
download | bcm5719-llvm-4b96d8d1ff42e5e9427d5f46efab889cfebda279.tar.gz bcm5719-llvm-4b96d8d1ff42e5e9427d5f46efab889cfebda279.zip |
[WebAssembly] Make expression-stack pushing explicit
Modelling of the expression stack is evolving. This patch takes another
step by making pushes explicit.
Differential Revision: http://reviews.llvm.org/D14338
llvm-svn: 252334
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/comparisons_i32.ll')
-rw-r--r-- | llvm/test/CodeGen/WebAssembly/comparisons_i32.ll | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/comparisons_i32.ll b/llvm/test/CodeGen/WebAssembly/comparisons_i32.ll index c47bcdf0176..1cf43de99ec 100644 --- a/llvm/test/CodeGen/WebAssembly/comparisons_i32.ll +++ b/llvm/test/CodeGen/WebAssembly/comparisons_i32.ll @@ -14,7 +14,7 @@ target triple = "wasm32-unknown-unknown" ; CHECK-NEXT: set_local 2, pop{{$}} ; CHECK-NEXT: get_local 0{{$}} ; CHECK-NEXT: set_local 3, pop{{$}} -; CHECK-NEXT: eq (get_local 3), (get_local 2){{$}} +; CHECK-NEXT: eq push, (get_local 3), (get_local 2){{$}} ; CHECK-NEXT: set_local 4, pop{{$}} ; CHECK-NEXT: return (get_local 4){{$}} define i32 @eq_i32(i32 %x, i32 %y) { @@ -24,7 +24,7 @@ define i32 @eq_i32(i32 %x, i32 %y) { } ; CHECK-LABEL: ne_i32: -; CHECK: ne (get_local 3), (get_local 2){{$}} +; CHECK: ne push, (get_local 3), (get_local 2){{$}} ; CHECK-NEXT: set_local 4, pop{{$}} define i32 @ne_i32(i32 %x, i32 %y) { %a = icmp ne i32 %x, %y @@ -33,7 +33,7 @@ define i32 @ne_i32(i32 %x, i32 %y) { } ; CHECK-LABEL: slt_i32: -; CHECK: i32.lt_s (get_local 3), (get_local 2){{$}} +; CHECK: i32.lt_s push, (get_local 3), (get_local 2){{$}} ; CHECK-NEXT: set_local 4, pop{{$}} define i32 @slt_i32(i32 %x, i32 %y) { %a = icmp slt i32 %x, %y @@ -42,7 +42,7 @@ define i32 @slt_i32(i32 %x, i32 %y) { } ; CHECK-LABEL: sle_i32: -; CHECK: i32.le_s (get_local 3), (get_local 2){{$}} +; CHECK: i32.le_s push, (get_local 3), (get_local 2){{$}} ; CHECK-NEXT: set_local 4, pop{{$}} define i32 @sle_i32(i32 %x, i32 %y) { %a = icmp sle i32 %x, %y @@ -51,7 +51,7 @@ define i32 @sle_i32(i32 %x, i32 %y) { } ; CHECK-LABEL: ult_i32: -; CHECK: i32.lt_u (get_local 3), (get_local 2){{$}} +; CHECK: i32.lt_u push, (get_local 3), (get_local 2){{$}} ; CHECK-NEXT: set_local 4, pop{{$}} define i32 @ult_i32(i32 %x, i32 %y) { %a = icmp ult i32 %x, %y @@ -60,7 +60,7 @@ define i32 @ult_i32(i32 %x, i32 %y) { } ; CHECK-LABEL: ule_i32: -; CHECK: i32.le_u (get_local 3), (get_local 2){{$}} +; CHECK: i32.le_u push, (get_local 3), (get_local 2){{$}} ; CHECK-NEXT: set_local 4, pop{{$}} define i32 @ule_i32(i32 %x, i32 %y) { %a = icmp ule i32 %x, %y @@ -69,7 +69,7 @@ define i32 @ule_i32(i32 %x, i32 %y) { } ; CHECK-LABEL: sgt_i32: -; CHECK: i32.gt_s (get_local 3), (get_local 2){{$}} +; CHECK: i32.gt_s push, (get_local 3), (get_local 2){{$}} ; CHECK-NEXT: set_local 4, pop{{$}} define i32 @sgt_i32(i32 %x, i32 %y) { %a = icmp sgt i32 %x, %y @@ -78,7 +78,7 @@ define i32 @sgt_i32(i32 %x, i32 %y) { } ; CHECK-LABEL: sge_i32: -; CHECK: i32.ge_s (get_local 3), (get_local 2){{$}} +; CHECK: i32.ge_s push, (get_local 3), (get_local 2){{$}} ; CHECK-NEXT: set_local 4, pop{{$}} define i32 @sge_i32(i32 %x, i32 %y) { %a = icmp sge i32 %x, %y @@ -87,7 +87,7 @@ define i32 @sge_i32(i32 %x, i32 %y) { } ; CHECK-LABEL: ugt_i32: -; CHECK: i32.gt_u (get_local 3), (get_local 2){{$}} +; CHECK: i32.gt_u push, (get_local 3), (get_local 2){{$}} ; CHECK-NEXT: set_local 4, pop{{$}} define i32 @ugt_i32(i32 %x, i32 %y) { %a = icmp ugt i32 %x, %y @@ -96,7 +96,7 @@ define i32 @ugt_i32(i32 %x, i32 %y) { } ; CHECK-LABEL: uge_i32: -; CHECK: i32.ge_u (get_local 3), (get_local 2){{$}} +; CHECK: i32.ge_u push, (get_local 3), (get_local 2){{$}} ; CHECK-NEXT: set_local 4, pop{{$}} define i32 @uge_i32(i32 %x, i32 %y) { %a = icmp uge i32 %x, %y |