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/select.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/select.ll')
-rw-r--r-- | llvm/test/CodeGen/WebAssembly/select.ll | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/select.ll b/llvm/test/CodeGen/WebAssembly/select.ll index 83b4d13e74b..42dc3848946 100644 --- a/llvm/test/CodeGen/WebAssembly/select.ll +++ b/llvm/test/CodeGen/WebAssembly/select.ll @@ -11,9 +11,9 @@ target triple = "wasm32-unknown-unknown" ; CHECK: set_local [[LOCAL_B:[0-9]]] ; CHECK: get_local 0 ; CHECK: set_local [[LOCAL_A:[0-9]]] -; CHECK: i32.eq (get_local 5), (get_local 6) +; CHECK: i32.eq push, (get_local 5), (get_local 6) ; CHECK: set_local 7, pop -; CHECK: i32.select (get_local 7), (get_local [[LOCAL_A]]), (get_local [[LOCAL_B]]) +; CHECK: i32.select push, (get_local 7), (get_local [[LOCAL_A]]), (get_local [[LOCAL_B]]) define i32 @select_i32(i32 %a, i32 %b, i32 %cond) { %cc = icmp eq i32 %cond, 0 %result = select i1 %cc, i32 %a, i32 %b @@ -25,9 +25,9 @@ define i32 @select_i32(i32 %a, i32 %b, i32 %cond) { ; CHECK: set_local [[LOCAL_B:[0-9]]] ; CHECK: get_local 0 ; CHECK: set_local [[LOCAL_A:[0-9]]] -; CHECK: i32.eq (get_local 5), (get_local 6) +; CHECK: i32.eq push, (get_local 5), (get_local 6) ; CHECK: set_local 7, pop -; CHECK: i64.select (get_local 7), (get_local [[LOCAL_A]]), (get_local [[LOCAL_B]]) +; CHECK: i64.select push, (get_local 7), (get_local [[LOCAL_A]]), (get_local [[LOCAL_B]]) define i64 @select_i64(i64 %a, i64 %b, i32 %cond) { %cc = icmp eq i32 %cond, 0 %result = select i1 %cc, i64 %a, i64 %b @@ -39,9 +39,9 @@ define i64 @select_i64(i64 %a, i64 %b, i32 %cond) { ; CHECK: set_local [[LOCAL_B:[0-9]]] ; CHECK: get_local 0 ; CHECK: set_local [[LOCAL_A:[0-9]]] -; CHECK: i32.eq (get_local 5), (get_local 6) +; CHECK: i32.eq push, (get_local 5), (get_local 6) ; CHECK: set_local 7, pop -; CHECK: f32.select (get_local 7), (get_local [[LOCAL_A]]), (get_local [[LOCAL_B]]) +; CHECK: f32.select push, (get_local 7), (get_local [[LOCAL_A]]), (get_local [[LOCAL_B]]) define float @select_f32(float %a, float %b, i32 %cond) { %cc = icmp eq i32 %cond, 0 %result = select i1 %cc, float %a, float %b @@ -53,9 +53,9 @@ define float @select_f32(float %a, float %b, i32 %cond) { ; CHECK: set_local [[LOCAL_B:[0-9]]] ; CHECK: get_local 0 ; CHECK: set_local [[LOCAL_A:[0-9]]] -; CHECK: i32.eq (get_local 5), (get_local 6) +; CHECK: i32.eq push, (get_local 5), (get_local 6) ; CHECK: set_local 7, pop -; CHECK: f64.select (get_local 7), (get_local [[LOCAL_A]]), (get_local [[LOCAL_B]]) +; CHECK: f64.select push, (get_local 7), (get_local [[LOCAL_A]]), (get_local [[LOCAL_B]]) define double @select_f64(double %a, double %b, i32 %cond) { %cc = icmp eq i32 %cond, 0 %result = select i1 %cc, double %a, double %b |