summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/WebAssembly/store.ll
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-11-18 16:12:01 +0000
committerDan Gohman <dan433584@gmail.com>2015-11-18 16:12:01 +0000
commit4ba4816b9701aecbc757f7d806895e114908f309 (patch)
tree004f2a73e6ec83b57785b4ae0e671b8a59c20e89 /llvm/test/CodeGen/WebAssembly/store.ll
parent272d3f17fcaa1018ddc15eb5781ae6064c760e95 (diff)
downloadbcm5719-llvm-4ba4816b9701aecbc757f7d806895e114908f309.tar.gz
bcm5719-llvm-4ba4816b9701aecbc757f7d806895e114908f309.zip
[WebAssembly] Enable register coloring and register stackifying.
This also takes the push/pop syntax another step forward, introducing stack slot numbers to make it easier to see how expressions are connected. For example, the value pushed in $push7 is popped in $pop7. And, this begins an experiment with making get_local and set_local implicit when an operation directly uses or defines a register. This greatly reduces clutter. If this experiment succeeds, it may make sense to do this for const instructions as well. And, this introduces more special code for ARGUMENTS; hopefully this code will soon be obviated by proper support for live-in virtual registers. llvm-svn: 253465
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/store.ll')
-rw-r--r--llvm/test/CodeGen/WebAssembly/store.ll12
1 files changed, 4 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/store.ll b/llvm/test/CodeGen/WebAssembly/store.ll
index 206c31a53a3..cbe5620668b 100644
--- a/llvm/test/CodeGen/WebAssembly/store.ll
+++ b/llvm/test/CodeGen/WebAssembly/store.ll
@@ -8,8 +8,7 @@ target triple = "wasm32-unknown-unknown"
; CHECK-LABEL: sti32:
; CHECK-NEXT: .param i32{{$}}
; CHECK-NEXT: .param i32{{$}}
-; CHECK-NEXT: .local i32, i32{{$}}
-; CHECK-NEXT: i32.store (get_local 0), (get_local 1){{$}}
+; CHECK-NEXT: i32.store $0, $1{{$}}
; CHECK-NEXT: return{{$}}
define void @sti32(i32 *%p, i32 %v) {
store i32 %v, i32* %p
@@ -19,8 +18,7 @@ define void @sti32(i32 *%p, i32 %v) {
; CHECK-LABEL: sti64:
; CHECK-NEXT: .param i32{{$}}
; CHECK-NEXT: .param i64{{$}}
-; CHECK-NEXT: .local i64, i32{{$}}
-; CHECK-NEXT: i64.store (get_local 0), (get_local 1){{$}}
+; CHECK-NEXT: i64.store $0, $1{{$}}
; CHECK-NEXT: return{{$}}
define void @sti64(i64 *%p, i64 %v) {
store i64 %v, i64* %p
@@ -30,8 +28,7 @@ define void @sti64(i64 *%p, i64 %v) {
; CHECK-LABEL: stf32:
; CHECK-NEXT: .param i32{{$}}
; CHECK-NEXT: .param f32{{$}}
-; CHECK-NEXT: .local f32, i32{{$}}
-; CHECK-NEXT: f32.store (get_local 0), (get_local 1){{$}}
+; CHECK-NEXT: f32.store $0, $1{{$}}
; CHECK-NEXT: return{{$}}
define void @stf32(float *%p, float %v) {
store float %v, float* %p
@@ -41,8 +38,7 @@ define void @stf32(float *%p, float %v) {
; CHECK-LABEL: stf64:
; CHECK-NEXT: .param i32{{$}}
; CHECK-NEXT: .param f64{{$}}
-; CHECK-NEXT: .local f64, i32{{$}}
-; CHECK-NEXT: f64.store (get_local 0), (get_local 1){{$}}
+; CHECK-NEXT: f64.store $0, $1{{$}}
; CHECK-NEXT: return{{$}}
define void @stf64(double *%p, double %v) {
store double %v, double* %p
OpenPOWER on IntegriCloud