summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-07-15 22:22:10 +0000
committerHeejin Ahn <aheejin@gmail.com>2019-07-15 22:22:10 +0000
commit474009eaea76ad18d66bd620a0044afbcf812dd9 (patch)
tree7c10e63550e57b27c1792bd6daa90fdf0721d2cc
parent292e21d8bce463fb8bb833810f05d4382f61bdd0 (diff)
downloadbcm5719-llvm-474009eaea76ad18d66bd620a0044afbcf812dd9.tar.gz
bcm5719-llvm-474009eaea76ad18d66bd620a0044afbcf812dd9.zip
[WebAssembly] Simplify regcopy.mir
Summary: This deletes the ll templates from the functions because they don't need them (mir files need ll templates only when they have function calls or BB names that are not numbers). This also renames the filename to `reg-copy.mir`, because I'm planning to add some more `reg-*.mir` soon. Reviewers: tlively Subscribers: dschuff, sbc100, jgravelle-google, sunfish, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D64704 llvm-svn: 366140
-rw-r--r--llvm/test/CodeGen/WebAssembly/reg-copy.mir (renamed from llvm/test/CodeGen/WebAssembly/regcopy.mir)33
1 files changed, 5 insertions, 28 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/regcopy.mir b/llvm/test/CodeGen/WebAssembly/reg-copy.mir
index 5115cde6d24..0a362699b81 100644
--- a/llvm/test/CodeGen/WebAssembly/regcopy.mir
+++ b/llvm/test/CodeGen/WebAssembly/reg-copy.mir
@@ -1,32 +1,9 @@
-# RUN: llc %s -o - -run-pass=postrapseudos | FileCheck %s
---- |
- target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
- target triple = "wasm32-unknown-unknown"
+# RUN: llc -mtriple=wasm32-unknown-unknown %s -o - -run-pass=postrapseudos | FileCheck %s
- define void @copy_i32() {
- ret void
- }
-
- define void @copy_i64() {
- ret void
- }
-
- define void @copy_f32() {
- ret void
- }
-
- define void @copy_f64() {
- ret void
- }
-
- define void @copy_v128() {
- ret void
- }
-...
---
name: copy_i32
# CHECK-LABEL: copy_i32
-body: |
+body: |
; CHECK-LABEL: bb.0:
; CHECK-NEXT: %0:i32 = COPY_I32 %1:i32
; CHECK-NEXT: RETURN_VOID
@@ -48,7 +25,7 @@ body: |
---
name: copy_f32
# CHECK-LABEL: copy_f32
-body: |
+body: |
; CHECK-LABEL: bb.0:
; CHECK-NEXT: %0:f32 = COPY_F32 %1:f32
; CHECK-NEXT: RETURN_VOID
@@ -59,7 +36,7 @@ body: |
---
name: copy_f64
# CHECK-LABEL: copy_f64
-body: |
+body: |
; CHECK-LABEL: bb.0:
; CHECK-NEXT: %0:f64 = COPY_F64 %1:f64
; CHECK-NEXT: RETURN_VOID
@@ -70,7 +47,7 @@ body: |
---
name: copy_v128
# CHECK-LABEL: copy_v128
-body: |
+body: |
; CHECK-LABEL: bb.0:
; CHECK-NEXT: %0:v128 = COPY_V128 %1:v128
; CHECK-NEXT: RETURN_VOID
OpenPOWER on IntegriCloud