2019-07-16 06:22:10 +08:00
|
|
|
# RUN: llc -mtriple=wasm32-unknown-unknown %s -o - -run-pass=postrapseudos | FileCheck %s
|
2018-11-08 10:35:28 +08:00
|
|
|
|
|
|
|
---
|
|
|
|
name: copy_i32
|
|
|
|
# CHECK-LABEL: copy_i32
|
2019-07-16 06:22:10 +08:00
|
|
|
body: |
|
2018-11-08 10:35:28 +08:00
|
|
|
; CHECK-LABEL: bb.0:
|
|
|
|
; CHECK-NEXT: %0:i32 = COPY_I32 %1:i32
|
2019-10-10 05:42:08 +08:00
|
|
|
; CHECK-NEXT: RETURN
|
2018-11-08 10:35:28 +08:00
|
|
|
bb.0:
|
|
|
|
%0:i32 = COPY %1:i32
|
2019-10-10 05:42:08 +08:00
|
|
|
RETURN implicit-def $arguments
|
2018-11-08 10:35:28 +08:00
|
|
|
...
|
|
|
|
---
|
|
|
|
name: copy_i64
|
|
|
|
# CHECK-LABEL: copy_i64
|
|
|
|
body: |
|
|
|
|
; CHECK-LABEL: bb.0:
|
|
|
|
; CHECK-NEXT: %0:i64 = COPY_I64 %1:i64
|
2019-10-10 05:42:08 +08:00
|
|
|
; CHECK-NEXT: RETURN
|
2018-11-08 10:35:28 +08:00
|
|
|
bb.0:
|
|
|
|
%0:i64 = COPY %1:i64
|
2019-10-10 05:42:08 +08:00
|
|
|
RETURN implicit-def $arguments
|
2018-11-08 10:35:28 +08:00
|
|
|
...
|
|
|
|
---
|
|
|
|
name: copy_f32
|
|
|
|
# CHECK-LABEL: copy_f32
|
2019-07-16 06:22:10 +08:00
|
|
|
body: |
|
2018-11-08 10:35:28 +08:00
|
|
|
; CHECK-LABEL: bb.0:
|
|
|
|
; CHECK-NEXT: %0:f32 = COPY_F32 %1:f32
|
2019-10-10 05:42:08 +08:00
|
|
|
; CHECK-NEXT: RETURN
|
2018-11-08 10:35:28 +08:00
|
|
|
bb.0:
|
|
|
|
%0:f32 = COPY %1:f32
|
2019-10-10 05:42:08 +08:00
|
|
|
RETURN implicit-def $arguments
|
2018-11-08 10:35:28 +08:00
|
|
|
...
|
|
|
|
---
|
|
|
|
name: copy_f64
|
|
|
|
# CHECK-LABEL: copy_f64
|
2019-07-16 06:22:10 +08:00
|
|
|
body: |
|
2018-11-08 10:35:28 +08:00
|
|
|
; CHECK-LABEL: bb.0:
|
|
|
|
; CHECK-NEXT: %0:f64 = COPY_F64 %1:f64
|
2019-10-10 05:42:08 +08:00
|
|
|
; CHECK-NEXT: RETURN
|
2018-11-08 10:35:28 +08:00
|
|
|
bb.0:
|
|
|
|
%0:f64 = COPY %1:f64
|
2019-10-10 05:42:08 +08:00
|
|
|
RETURN implicit-def $arguments
|
2018-11-08 10:35:28 +08:00
|
|
|
...
|
|
|
|
---
|
|
|
|
name: copy_v128
|
|
|
|
# CHECK-LABEL: copy_v128
|
2019-07-16 06:22:10 +08:00
|
|
|
body: |
|
2018-11-08 10:35:28 +08:00
|
|
|
; CHECK-LABEL: bb.0:
|
|
|
|
; CHECK-NEXT: %0:v128 = COPY_V128 %1:v128
|
2019-10-10 05:42:08 +08:00
|
|
|
; CHECK-NEXT: RETURN
|
2018-11-08 10:35:28 +08:00
|
|
|
bb.0:
|
|
|
|
%0:v128 = COPY %1:v128
|
2019-10-10 05:42:08 +08:00
|
|
|
RETURN implicit-def $arguments
|
2018-11-08 10:35:28 +08:00
|
|
|
...
|
2019-07-16 07:04:00 +08:00
|
|
|
---
|
|
|
|
name: copy_exnref
|
|
|
|
# CHECK-LABEL: copy_exnref
|
|
|
|
body: |
|
|
|
|
; CHECK-LABEL: bb.0:
|
|
|
|
; CHECK-NEXT: %0:exnref = COPY_EXNREF %1:exnref
|
2019-10-10 05:42:08 +08:00
|
|
|
; CHECK-NEXT: RETURN
|
2019-07-16 07:04:00 +08:00
|
|
|
bb.0:
|
|
|
|
%0:exnref = COPY %1:exnref
|
2019-10-10 05:42:08 +08:00
|
|
|
RETURN implicit-def $arguments
|
2019-07-16 07:04:00 +08:00
|
|
|
...
|